View source: R/addstations2nc.R
nc4add.stations | R Documentation |
write2ncdf4.station
with the argument append=TRUE also saves data chunk-wise. Another function is
ncrcat
which reads all data and attributes in listed files and sacve them into a new file for all the
inputs combined.
Rasmus.Benestad, met.no, 2023-07-31Combine or append netCDF files for stations into one. Used with write2ncdf4.station to bypass memory demand/limitations.
The write2ncdf4.station
with the argument append=TRUE also saves data chunk-wise. Another function is
ncrcat
which reads all data and attributes in listed files and sacve them into a new file for all the
inputs combined.
Rasmus.Benestad, met.no, 2023-07-31
nc4add.stations(x, fname, verbose = FALSE)
x |
a station object |
fname |
list with file names of netCDF files with station data |
verbose |
used for debugging and diagnostics of executing the code |
out |
name of the output file |
namelength |
- see write2ncdf4.station |
prec |
precision |
offset |
offset value for the data |
scale |
scaling value for the data |
missval |
missing value |
torg |
time origin |
it |
index time - selection of time interval unless NULL |
stid |
selection of station IDs unless set to NULL |
write2ncdf4.station as.station retrieve.station
## Not run:
ncfiles <- list.files(path='~/Downloads/ecad2nc4',pattern='.ecad.nc',full.names=TRUE)
nc4combine.stations(ncfiles,out=paste0('~/Downloads/',variable,'.ecad.nc'))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.