GridTSExtract: Grid Time Series Extractor

View source: R/GridTSExtract.R

GridTSExtractR Documentation

Grid Time Series Extractor

Description

Extracts a time series from a NetCDF lon&lat coordinate grid

Usage

GridTSExtract(
  nco,
  lonid = "longitude",
  latid = "latitude",
  timeid = "date",
  measurementsid = "sea_level_anomaly",
  coord = c(-165, 74),
  radius = 0,
  dlon = 2,
  dlat = 4
)

Arguments

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

Value

Time series from grid


MathiasVendt/TSAIB documentation built on May 4, 2022, 11:34 p.m.