Description Usage Arguments Value References
View source: R/oceandata_handler.R
Parameter names 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_parameter_map
function maps the URL parameter component ("NPP_PAR_par" in this example) to the corresponding directory name ("par").
1 | oceandata_parameter_map(platform, urlparm, error_no_match = FALSE)
|
platform |
character: the platform abbreviation (currently one of "Q" (Aquarius), "C" (CZCS), "H" (HICO), "M" (MERIS), "A" (MODISA), "T" (MODIST), "O" (OCTS), "S" (SeaWiFS), "V" (VIIRS) |
urlparm |
string: the parameter component of the URL (e.g. "KD490_Kd_490" for MODIS diffuse attenuation coefficient at 490 nm) |
error_no_match |
logical: should an error be thrown if the urlparm is not matched? |
Either the directory string corresponding to the URL code, if abbrev
supplied, or a data.frame of all URL regexps and corresponding directory name strings if urlparm
is missing
https://oceandata.sci.gsfc.nasa.gov/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.