mco_get_swe_basins: Download and process the Montana SNOTEL Snow Water Equivalent...

View source: R/mco_get_swe_basins.R

mco_get_swe_basinsR Documentation

Download and process the Montana SNOTEL Snow Water Equivalent dataset from the NRCS National Water and Climate Center

Description

Download and process the Montana SNOTEL Snow Water Equivalent dataset from the NRCS National Water and Climate Center

Usage

mco_get_swe_basins(date = "latest", huc = 6, min_stations = 3)

Arguments

date

A character string of either the date (in yyyy-mm-dd format) or "latest" to get the latest records. Defaults to "latest".

huc

An integer indicating the Watershed Boundary Hydrological Unit level, either "6" or "8", over which to aggregate station data. Defaults to 6.

min_stations

An integer indicating the minimum number of stations that must be available in a region in order to calculate a regional average SWE. Defaults to 3.

Value

A simple feature collection with 9 fields:

  • WBD code — the WBD identifier

  • Watershed — the WBD watershed name

  • Stations — the count of stations aggregated to generate a value for the watershed

  • SWE (in) — the mean of Snow Water Equivalent (in) start of day values of stations in the watershed

  • SWE 1981-2010 Median (in) — the mean of normal (1981-2010) average Snow Water Equivalent (in) start of day values of stations in the watershed

  • Percent SWE⁠SWE (in)⁠ / ⁠SWE 1981-2010 Median (in)⁠

Examples

## Not run: 
mco_get_swe_basins()

## End(Not run)

mt-climate-office/mcor documentation built on March 27, 2024, 6:30 p.m.