oceandata_timeperiod_map: Time periods and abbreviations used in Oceancolor URLs and...

Description Usage Arguments Value References See Also

View source: R/oceandata_handler.R

Description

Time periods and abbreviations used in Oceancolor URLs and file names Oceancolor data file URLs need to be mapped to a file system hierarchy that mirrors the one used on the Oceancolor web site. For example, https://oceancolor.gsfc.nasa.gov/cgi/l3/V2016044.L3m_DAY_NPP_PAR_par_9km.nc or https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/V2016044.L3m_DAY_NPP_PAR_par_9km.nc (obtained from the OceanColor visual browser or file search facility) map to https://oceandata.sci.gsfc.nasa.gov/VIIRS/Mapped/Daily/9km/par/2016/V2016044.L3m_DAY_NPP_PAR_par_9km.nc (in the Oceancolor file browse interface). RAADSync will store the local copy of this file as oceandata.sci.gsfc.nasa.gov/VIIRS/Mapped/Daily/9km/par/2016/V2016044.L3m_DAY_NPP_PAR_par_9km.nc The oceandata_timeperiod_map function maps the URL time period component ("DAY" in this example) to the corresponding directory name ("Daily")

Usage

1
oceandata_timeperiod_map(abbrev, error_no_match = FALSE)

Arguments

abbrev

string: the time period abbreviation from the URL (e.g. "DAY" for daily, "SCSP" for seasonal spring climatology)

error_no_match

logical: should an error be thrown if the abbrev is not matched?

Value

Either the time period string corresponding to the abbreviation, if abbrev supplied, or a data.frame of all abbreviations and time period strings if abbrev is missing

References

https://oceandata.sci.gsfc.nasa.gov/

See Also

oceandata_platform_map oceandata_parameter_map


AustralianAntarcticDataCentre/raadsync documentation built on May 5, 2019, 8:14 a.m.