product.description: Get product details

Description Usage Arguments Details Examples

View source: R/CMEMS_interface.r

Description

Requests details from the CMEMS servers about a specific product, including temporal coverage and depth layers

Usage

1
product.description(x, variable = "missing", quiet = TRUE)

Arguments

x

An object of class CMEMS.config containing the configuration parameters. At a minimum, the python, script, motu, service.id and product.id slots need to be populated.

variable

Specifies the object to return. Valid values are "times" and "depths". All other values, including omission, return an xml object describing the product.

quiet

Logical, indicating whether to supress output

Details

This function returns the description that is associated with the particular product id. The depths result is self explanatory, but the times result can be hard to work with, as it is encoded in ISO 8061 format. See https://github.com/clstoulouse/motu#describe-product for details.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
#Setup a configuration object, using OSTIA as an example
cfg <- CMEMS.config(motu="http://my.cmems-du.eu/motu-web/Motu",
                    service.id = "SST_GLO_SST_L4_REP_OBSERVATIONS_010_011-TDS",
                    product.id = "METOFFICE-GLO-SST-L4-RAN-OBS-SST",
                    variable = c("analysed_sst","analysis_error"))
#Time description is in ISO 8061 format
product.description(cfg,"times")

## End(Not run)

markpayneatwork/RCMEMS documentation built on Jan. 18, 2021, 2:53 a.m.