Skip to content

Error running the lsDownload function #4

@ritaaframos

Description

@ritaaframos

I am using the lsSearch and lsDownload function for some weeks now to obtain the landsat images from several seasons and years. It was working fine (mostly) but now I get an error I can't figure out:

#search images with cloud cover less than 30%
PB2014 <- lsSearch(product = "LANDSAT_8_C1",
startDate = as.Date("15-07-2014", "%d-%m-%Y"),
endDate = as.Date("15-09-2014", "%d-%m-%Y"),
cloudCover = c(0,30),
username = "username",
password = "password",
extent = postbreeding) #area, may be raster or poligon

#download the data
lsDownload(searchres = PB2014, #with the test layer
username = "username",
password = "password",
untar = FALSE,
raw.rm = FALSE,
AppRoot = wdir_pb14,
nattempts = 5)

Downloading the images in: /home/ritaramos/Desktop/NDVI/postbreebing2014/Landsat8/raw
Starting Landsat level 1 download process...
Error in charToRaw(enc2utf8(val)) :
argument must be a character vector of length 1

was there a change in the package recently that requires a change in the script?

All the best,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions