nc4add.stations: Combine or append netCDF files for stations into one. Used...

View source: R/addstations2nc.R

nc4add.stationsR Documentation

Combine 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

Description

Combine 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

Usage

nc4add.stations(x, fname, verbose = FALSE)

Arguments

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

See Also

write2ncdf4.station as.station retrieve.station

Examples

## 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)


metno/esd documentation built on Feb. 25, 2025, 6:44 p.m.