get.data: Retrieve and convert data to correct units and dimensions.

View source: R/support_functions.R

get.dataR Documentation

Retrieve and convert data to correct units and dimensions.

Description

Retrieve and convert data to correct units and dimensions.

Usage

get.data(f, v, subset, src.units, dim.axes)

Arguments

f

The NetCDF file to retrieve data from; an object of class ncdf4.

v

The variable to retrieve data from.

subset

The subset to retrieve.

src.units

The source units to convert data from.

dim.axes

The dimension axes to be used.

dest.units

The destination units to convert to.

Details

This function retrieves NetCDF data for the specified subset from the specified file and variable; converts from src.units to dest.units, transposes the data to (T, S) dimensionality, and returns the result.

Value

The retrieved and massaged data.

Examples

get.data(f, "pr", list(Y=3), "kg m-2 s-1", "kg m-2 s-1", c(X="lon",Y="lat",T="time"))


ECA-D/ecad_indices_grid documentation built on Nov. 23, 2022, 6:04 a.m.