GetSnodasDepthSweDate: Get and unpack the SNODAS snow depth and SWE tarball for...

Description Usage Arguments Value See Also Examples

View source: R/snodas.R

Description

GetSnodasDepthSweDate Get and unpack the SNODAS snow depth and SWE tarball for a given date.

Usage

1
2
GetSnodasDepthSweDate(datePOSIXct, outputDir = ".", overwrite = FALSE,
  quiet = TRUE, parallel = (foreach::getDoParWorkers() > 1))

Arguments

datePOSIXct

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

outputDir

The directory where the data are to be archived. This directory is checked to see if the data exist when overwrite=FALSE

overwrite

When false: If the depth and SWE files exist on disk, dont grab the tarball.
When false: If the tarball exists on disk but depth and SWE files dont, just unpack the tarball.
When true: Pull new tarball and overwrite any existing files with the same date.

quiet

Passed to curl, to show it's progress (typcially too fast to matter).

parallel

Logical Defaults to (foreach::getDoParWorkers>1), so if you've set up parallelization it is automatically used.

Value

Logical was the file "got"?

See Also

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

Examples

1
2
snodasGot <- GetSnodasDepthSweDate(as.POSIXct('2015-02-28'),
                                   outputDir = path.expand('~'))

NCAR/rwrfhydro documentation built on Feb. 28, 2021, 12:47 p.m.