View source: R/GridTSExtract.R
GridTSExtract | R Documentation |
Extracts a time series from a NetCDF lon&lat coordinate grid
GridTSExtract( nco, lonid = "longitude", latid = "latitude", timeid = "date", measurementsid = "sea_level_anomaly", coord = c(-165, 74), radius = 0, dlon = 2, dlat = 4 )
nco |
The NetCDF object (open with "nc_open" from the "ncdf4" library) |
lonid |
The variable id for longitude vector. e.g.: "longitude" |
latid |
The variable id for latitude vector. e.g.: "latitude" |
timeid |
The variable id for the time vector. e.g.: "date" |
measurementsid |
The variable id for the measurements vector. e.g.: "sea_level_anomaly" |
coord |
The center coordinate for the TS grid area. e.g.: c(lon,lat) i.e. c(-164,74) |
radius |
The square radius of the TS grid. e.g: 0=1x1 grid, 1=3x3 grid, 2=5x5 grid etc. |
dlon |
Number of data points for each degree longitude |
dlat |
Number of data points for each degree latitude |
Time series from grid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.