selbox.nclonlat.to.rdata: Create RData file with grid lattitudes and longitudes

Description Usage Arguments Value Author(s) Examples

View source: R/selbox.nclonlat.to.rdata.R

Description

selbox.nclonlat.to.rdata reads two fields (real-world longitude and latitude) from a netcdf file and stores them in an RData file. List name coords with two components: $longrid: Matrix(nx,ny) containing real-world longitudes. $latgrid: Matrix(nx,ny) containing real-world latitudes.

Usage

1
selbox.nclonlat.to.rdata(infile, outfile, varlon, varlat)

Arguments

infile

Netcdf filename (file has to contain real-word lon and lat fields).

outfile

RData filename for output.

varlon

Variable name for real-world longitude in netcdf file.

varlat

Variable name for real-world latitude in netcdf file.

Value

Return value of save statement (NULL).

Author(s)

Sven Kotlarski (MeteoSwiss)

Examples

1
2
3
4
5
## Not run: 
# Write netcdf longitudes and latitudes to Rdata file
selbox.nclonlat.to.rdata(file.netcdf,file.rdata,'longitude','latitude')

## End(Not run)

SvenKotlarski/qmCH2018 documentation built on July 14, 2019, 7:39 p.m.