Description Usage Arguments Value Author(s) Examples
View source: R/selbox.nclonlat.to.rdata.R
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.
1 | selbox.nclonlat.to.rdata(infile, outfile, varlon, varlat)
|
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. |
Return value of save statement (NULL).
Sven Kotlarski (MeteoSwiss)
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.