PutSnodasNcdf: Write output of ReadSnodasDepthSweDate to netcdf.

Description Usage Arguments Value See Also Examples

View source: R/snodas.R

Description

PutSnodasNcdf Put the output of ReadSnodasDepthSweDate into a netcdf file.

Usage

1
PutSnodasNcdf(snodasList, outputDir = ".", lat = NULL, lon = NULL)

Arguments

snodasList

The output of ReadSnodasDepthSweDate.

outputDir

Character. The directory path where the output files are to be written.

lat

Optional array of latitude values to be written out. Must be 1D.

lon

Optional array of longitude values to be written out. Must be 1D.

Value

Success if the filename which is (SNODAS_YYYYMMDD.nc), otherwise NULL.

See Also

Other SNODAS: CalcSnodasCoords, GetSnodasDepthSweDate, GetSnodasPointTs, PutSnodasCoordsNcdf, ReadSnodasDepthSweDate

Examples

1
2
3
4
5
6
## Not run: 
snodasGot <- GetSnodasDepthSweDate(as.POSIXct('2015-02-28'))
if(snodasGot) snodasList <- ReadSnodasDepthSweDate(as.POSIXct('2015-02-28'))
PutSnodasNcdf(snodasList)

## End(Not run)

mccreigh/rwrfhydro documentation built on Feb. 28, 2021, 1:53 p.m.