subsetsnowmodel | R Documentation |
The function 'subsetsnowmodel' subsets snow model outputs as returned by [runsnowmodel()]
subsetsnowmodel(snowmod, subs)
snowmod |
a list of model outputs from the snow model as returned by [runsnowmodel()]. |
subs |
a vector of index values indicating which hours to select form the snow model |
# Run full snow model (takes ~90 seconds)
climdata$temp <- climdata$temp - 8 # Make it colder so there is snow
micropoint <- runpointmodel(climdata, reqhgt = 0.05, dtmcaerth, vegp, soilc) # Make it colder so there is snow
smod <- runsnowmodel(climdata, micropoint, vegp, soilc, dtmcaerth)
# Subset snow model using subset point model
smicropoint <- subsetpointmodel(micropoint, tstep = "month", what = "tmax")
smods <- subsetsnowmodel(smod, smicropoint$subs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.