transNcdfRotate: transNcdfRotate

Description Usage Arguments Details Value Author(s)

View source: R/transNcdfRotate.R

Description

transpose Ncdf datacube

Usage

1
2
transNcdfRotate(data.object, file.name.out = "none", 
    file.con = c(), var.name = c())

Arguments

data.object

RNetCDF file connection or R array: data object to be transposed.

file.name.out

character string: name of the ncdf file created for the results. Default 'none' means that no results file is created.

file.con

RNetCDF file connection: link to the data object to be transposed. Supplying both data.object and file.con only makes sense if data.object is an array which saves time as the data does not have to be loaded again.

var.name

character string: name of the variable to transpose. If not gives, this name is tried to be inferred by using readNcdfVarName.

Details

convenience function to transpose an arbitrary datacube in a ncdf file into a datacube with dimensions [latitude (decreasing) , longitude (increasing), time (increasing)].

Value

array: transposed datacube

Author(s)

Jannis v. Buttlar, Thomas Wutzler


bgctw/ncdfTools documentation built on Jan. 29, 2020, 1:16 p.m.