ReadSnodasDepthSweDate: Read snodas snow depth and SWE into memory for a given date.

Description Usage Arguments Value See Also Examples

View source: R/snodas.R

Description

ReadSnodasDepthSweDate Read (from local disk into memory) the SNODAS snow depth and SWE for a given date.

Usage

1
ReadSnodasDepthSweDate(datePOSIXct, outputDir = ".")

Arguments

datePOSIXct

The date in POSIXct format for which data is desired. Only whole days matter.

outputDir

The directory where the data are archived.

Value

A list with a SWE and a depth matrix.

See Also

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

Examples

1
2
3
4
5
snodasGot <- GetSnodasDepthSweDate(as.POSIXct('2015-02-28'),
                                   outputDir = path.expand('~'))
if(snodasGot) snodasList <- ReadSnodasDepthSweDate(as.POSIXct('2015-02-28'),
                                   outputDir = path.expand('~'))
unlink(path.expand('~/us_ssmv1103*.dat.gz'))

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