View source: R/mf_list_collections_cloud.R
| mf_list_collections_cloud | R Documentation |
CMR is paginated to discover every LPCLOUD collection supported by modisfast. For each collection, the function tests up to 'n_granules' granules (newest first), including a single pixel data request. A successful sample does not imply that every granule or date is available.
mf_list_collections_cloud(
collections = NULL,
time_range = NULL,
n_granules = 2L,
verbose = "inform"
)
collections |
Optional character vector of collection names, for example 'c("MOD11A1.061", "VNP43MA4.002")'. By default check LP DAAC MODIS collections from the modisfast catalogue and tiled VIIRS '.002' collections published by LPCLOUD in CMR. |
time_range |
Optional one or two Dates restricting sampled granules. |
n_granules |
Number of granules to check per collection (default 2). |
verbose |
Character string: '"quiet"', '"inform"' (default), or '"debug"'. Controls progress messages. |
A data.frame with collection, collection_id, status, tested, succeeded, checked_at, and detail. Status is 'operational' when all sampled granules served one pixel, 'partial' when only some did, 'unavailable' when none did, and 'no_granules' when CMR found none for the chosen dates. 'unverified' means no suitable two-dimensional variable was found. These statuses apply only to the granules sampled at 'checked_at'.
## Not run:
Sys.setenv(EARTHDATA_TOKEN = "your Earthdata bearer token")
status <- mf_list_collections_cloud("VJ121A2.002")
subset(status, status == "operational")
mf_list_collections_cloud("VJ121A2.002",
time_range = as.Date(c("2026-01-01", "2026-01-30")))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.