Learn R Programming

RCMIP5 (version 1.2.0)

restoreMissingDims: Restore missing and/or degenerate dimensions in the data

Description

Restore missing and/or degenerate dimensions in the data

Usage

restoreMissingDims(dims, dimNames, lonArr, latArr, ZArr, thisTimeRaw, verbose)

Arguments

dims
the data array just loaded from the NetCDF
dimNames
vector of dimensions names present in file
lonArr
numeric vector of longitude values
latArr
numeric vector of latitude values
ZArr
numeric vector of Z values
thisTimeRaw
numeric vector of time values
verbose
logical. Print info as we go?

Value

The data array with restored dimensions.