nc2ts: Convert netCDF to time series

Description Usage Arguments Value

View source: R/utils-nc.R

Description

Convert netCDF file to a time series using the area-weighted mean (based on the latitudes in the netCDF file).

Usage

1
2
3
4
5
6
7
8
nc2ts(
  filename,
  varid,
  timeid = "time",
  latid = "lat",
  lonid = "lon",
  plot = TRUE
)

Arguments

filename

Filename for the netCDF input (relative or absolute path).

varid

String with the main variable identifier.

timeid

String with the time dimension identifier.

latid

String with the latitude dimension identifier.

lonid

String with the longitude dimension identifier.

plot

Boolean flag to indicate whether a plot for the time series should be generated.

Value

Tibble with the time and mean values.


special-uor/codos documentation built on Jan. 7, 2022, 2:32 a.m.