| cms_download_stac {CopernicusMarine} | R Documentation | 
List and get STAC files for a Copernicus marine product
Description
 Full marine data sets can be downloaded using the
SpatioTemporal Asset Catalogs (STAC). Use these functions to list download locations and get
the files.
Usage
cms_download_stac(
  file_tibble,
  destination,
  show_progress = TRUE,
  overwrite = FALSE
)
cms_list_stac_files(product, layer)
cms_stac_properties(product, layer)
Arguments
| file_tibble | A  | 
| destination | A  | 
| show_progress | A  | 
| overwrite | A  | 
| product | An identifier (type  | 
| layer | The name of a desired layer within a product (type  | 
Value
In case of cms_stac_properties a dplyr::tibble() is returned with some
product properties, It is used as precursor for cms_list_stac_files.
In case of cms_list_stac_files a dplyr::tibble() is returned containing
available URLs (for the specified product and layer) and some meta information is returned.
In case of cms_download_stac an invisible logical value is returned, indicating whether
all requested files are successfully stored at the destination path. A list of responses
(of class httr2::response()) for all requested download links is included as attribute
to the result.
Author(s)
Pepijn de Vries
Examples
## Not run: 
## List some STAC properties for a specific product and layer
cms_stac_properties(
  product       = "GLOBAL_ANALYSISFORECAST_PHY_001_024",
  layer         = "cmems_mod_glo_phy-cur_anfc_0.083deg_P1D-m"
)
## Get the available files for a specific product and layer:
file_tibble <-
  cms_list_stac_files("GLOBAL_ANALYSISFORECAST_PHY_001_024",
                      "cmems_mod_glo_phy-cur_anfc_0.083deg_P1D-m")
dest <- tempdir()
## download the first file from the file_tibble to 'dest'
cms_download_stac(file_tibble[1,, drop = FALSE], dest)
## End(Not run)