new_snowprofile: Low-level constructor function for a snowprofile object

Description Usage Arguments Value

View source: R/snowprofile.R

Description

Low-cost, efficient constructor function to be used by users who know what they're doing. If that's not you, use the high-level constructor snowprofile.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
new_snowprofile(
  station = character(),
  station_id = character(),
  datetime = as.POSIXct(NA),
  latlon = as.double(c(NA, NA)),
  elev = double(),
  angle = double(),
  aspect = double(),
  hs = double(),
  type = character(),
  band = character(),
  zone = character(),
  layers = snowprofileLayers()
)

Arguments

station

character string

station_id

character string

datetime

date and time as class POSIXct in most meaningful timezone (timezone can be converted very easily: e.g. print(profile$datetime, tz = 'EST') defaults to '1999-12-31 UTC'

latlon

2-element vector latitude (first), longitude (second)

elev

profile elevation (m)

angle

slope angle (degree)

aspect

slope aspect (degree)

hs

total snow height (cm); if not provided, the field will be derived from the profile layers.

type

character string, must be either 'manual', 'vstation' or 'aggregate'

band

character string describing elevation band as ALP, TL, BTL (alpine, treeline, below treeline)

zone

character string describing the zone or region of the profile location (e.g., BURNABY_MTN)

layers

snowprofileLayers object

Value

snowprofile object


sarp.snowprofile documentation built on July 25, 2020, 5:06 p.m.