View source: R/snowfitfunctions.R
runNMRSnow | R Documentation |
The function runNMRSnow
runs the multi-layer snow model in NicheMapR
(Kearney and POrter 2017, Ecography 40: 664-674) and can be used
to derive hourly snow depths and temperatures for fitting the simpler model emulator
in microsnow
. Requires NicheMapR
to be installed (https://github.com/mrke/NicheMapR)
runNMRSnow(
weather,
precd,
lat,
long,
snowenv = "Taiga",
zm = 0.002,
snowem = 0.99,
ALTT = 0
)
weather |
a data.frame of weather variables (see details). |
precd |
a vector of daily precipitation (mm). |
lat |
latitude of location for which snow depth and temperature are required (decimal degrees) |
long |
longitude of location for which snow depth and temperature are required (decimal degrees) |
snowenv |
one of |
zm |
optionally, numeric value of roughness length for momentum transfer of snow surface (m) |
snowem |
optionally, snow emissivity (~0.99) speed used in conductivity calculations (m/s) |
ALTT |
elevation of location (m) |
The format and and units of weather
must follow that in the example
dataset climdata
. The paramater snowenv
is used to compute snow density
following Sturm et al (2010) J Hydrometeorology 11: 1380-1393.
a list of the following:
SNOWDEP
vector of predicted snow depth (cm)
SNOWTEMP
vector of predicted snow surface temperature (deg C)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.