Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error downloading AVHRR data #29

Open
StefanoMezzini opened this issue Jul 2, 2023 · 0 comments
Open

Error downloading AVHRR data #29

StefanoMezzini opened this issue Jul 2, 2023 · 0 comments

Comments

@StefanoMezzini
Copy link

StefanoMezzini commented Jul 2, 2023

Hi,

I just installed luna to download AVHRR data, and I keep getting the following error:

> library('luna') # for avhrr, modis, sentinel, and landsat data
> 
> getAVHRR(start_date = '1981-06-24',
+          end_date = '1981-06-24',
+          path = 'data/ndvi-rasters/avhrr',
+          overwrite = FALSE,
+          update = FALSE)
Creating index of available AVHRR files on 2023-07-02 
Downloading AVHRR tile for 1981-06-24 
Error in match.arg(method, c("auto", "internal", "wininet", "libcurl",  : 
  'arg' must be NULL or a character vector

The error occurs with both the GitHub version (remotes::install_github("rspatial/luna")) and the version from install.packages("luna", repos = "https://rspatial.r-universe.dev"). I believe it's because download.file doesn't have a default method and getAVHRR can't pass the method argument since the download.file call is missing a ....

Cheers,
Stefano

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant