Skip to content

Missing values are not allowed in subscripted assignments of data frames.  #106

@EricWilliams859

Description

@EricWilliams859

Hi,
I am trying to use this package to download LANDSAT ST, ET, and NDVI tiles. The workflow mostly makes sense for me.
I am having an issue with trying to access the products/records for LANDSAT OLI and ETM C2 L2 data, though. Here is the error I keep getting:
Error in [<-.data.frame(*tmp*, , which(colnames(records) == "cloudcov")[2], :
missing values are not allowed in subscripted assignments of data frames
Here is the code I ran:
x_coords <- c(-102, -102, -109, -109)
y_coords <- c(41, 37, 37, 41)
Colorado1 <- sp::Polygon(cbind(x_coords,y_coords))
Colorado_ <- sp::Polygons(list(Colorado1), ID = "A")
Colorado_Polygons <- sp::SpatialPolygons(list(Colorado_))
set_aoi(Colorado_Polygons)

download tiles

products <- get_products(grouped = T, update_online = F)
records <- is.na(get_records(time_range = c('2020-05-24', '2020-05-30'),
products = 'landsat_ot_c2_l2', na.rm = T))
subset(records, select = -"cloudcov")
This error shows up whether I use is.na() or not. Forgive me for any confusion or rookie mistakes; I just started learning R this year.

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