Skip to content

error with getLandsat_records #108

Open

Description

@oscarperezpriego

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.

Activity

  1. EnoLec commented on Feb 28, 2023

    @EnoLec

    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

  2. frederikzi commented on Jul 7, 2023

    @frederikzi

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

  3. EnoLec commented on Jul 7, 2023

    @EnoLec

    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

  4. frederikzi commented on Jul 7, 2023

    @frederikzi

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions