Skip to content
New issue

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

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

Already on GitHub? # to your account

error with getLandsat_records #108

Open
oscarperezpriego opened this issue Feb 7, 2023 · 4 comments
Open

error with getLandsat_records #108

oscarperezpriego opened this issue Feb 7, 2023 · 4 comments

Comments

@oscarperezpriego
Copy link

I am trying to get the following Landsat product as
images <- getLandsat_records(time_range = c("1993-03-01", "1993-04-01"),
products = "landsat_tm_c2_l2")

from which it gives me the following error

Searching records for product name 'landsat_tm_c2_l2'...
Recieving available product levels from USGS-EROS ESPA...
Error in [<-.data.frame(*tmp*, , which(colnames(records) == "cloudcov")[2], :
missing values are not allowed in subscripted assignments of data frames

By tracking this error, It seems the error comes from .translate_records function

Any solution very much appreciated.
Note: While this error is taken when using my Mac M1, the error does not show up in my Windows laptop.

@EnoLec
Copy link

EnoLec commented Feb 28, 2023

Hi, I am having the exact same issue while trying to download:

get_records(time_range = c("2020-05-15", "2020-05-30"), products = "landsat_ot_c2_l1")

However, I'm working on a Windows computer

@frederikzi
Copy link

Hi, did you manage to fix this? I'm having the same problem on a windows computer.

@EnoLec
Copy link

EnoLec commented Jul 7, 2023

Hi,
Unfortunately, no... I changed my plans and used the Bulk Download tool instead (https://espa.cr.usgs.gov/). I would still be interested if someone found the solution

@frederikzi
Copy link

Thanks for the tip. I think I may have solved it. The solution is available on my github. I will also create a pull request.

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

No branches or pull requests

3 participants