powered by
These functions provide support to work with doc_collectionsobjects.
doc_collections
collections_length(): shows how many items there are in the doc_items object.
collections_length()
doc_items
collections_matched(): shows how many items matched the search criteria.
collections_matched()
collections_fetch(): request all STAC Items through pagination.
collections_fetch()
collections_next(): fetches a new page from STAC service.
collections_next()
collections_next(collections, ...)collections_matched(collections, matched_field)collections_length(collections)collections_fetch(collections, ..., progress = TRUE, matched_field = NULL)
collections_matched(collections, matched_field)
collections_length(collections)
collections_fetch(collections, ..., progress = TRUE, matched_field = NULL)
collections_length(): an integer value.
integer
collections_matched(): returns an integer value if the STAC web server does support this extension. Otherwise returns NULL.
NULL
collections_fetch(): a doc_items with all matched items.
a doc_collections object.
additional arguments. See details.
a character vector with the path where is the number of collections returned.
character
a logical indicating if a progress bar must be shown or not. Defaults to TRUE.
logical
TRUE
Ellipsis argument (...) appears in different items functions and has distinct purposes:
...
collections_fetch() and collections_next(): ellipsis is used to pass additional httr options to GET method, such as add_headers or set_cookies.
httr
if (FALSE) { # doc_items object stac("https://cmr.earthdata.nasa.gov/stac/LPCLOUD") |> collections() |> get_request() |> collections_fetch() }
Run the code above in your browser using DataLab