GetNWCSnowPoints: Get and unpack National Water Center SWE and snow depth point...

Description Usage Arguments Value Examples

View source: R/nohrsc_get.R

Description

GetNWCSnowPoints Get and unpack National Water Center snow observations for a given hour and unpack the data. Data is stored in text file format.

Usage

1
2
GetNWCSnowPoints(datePOSIXct, outDir = ".", overwrite = FALSE,
  quiet = TRUE)

Arguments

datePOSIXct

the date in POSIXct format for which the data is desired. The format needs to be YYYY-MM-DD HH:MM:SS.

outDir

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

overwrite

when false: If depth and SWE files exist on disk, don't grab the zip file.
When false: If the zip file exists on disk but depth and SWE files don't, just unzip the zip files.
When true: Pull new zip and overwrite any existing files with the same date.

quiet

logical passed to curl , to show it's progress.

Value

Logical was the file "got".

Examples

1
2
3
4
5
## Not run: 
NWCSnowGot <- GetNWCSnowPoints(as.POSIXct('2015-02-01 12:00:00'),
 outDir = '/home/karsten/snow_obs')
 
## End(Not run)

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