setup_modeldata: setup modeldata based on fsca or rcn as predictor

View source: R/setup_modeldata.R

setup_modeldataR Documentation

setup modeldata based on fsca or rcn as predictor

Description

setup modeldata based on fsca or rcn as predictor

Usage

setup_modeldata(snoteltoday.sp, phvsnotel, simfsca, SNOW_VAR, PHV_VARS,
  PATH_RCNDOWNLOAD)

Arguments

snoteltoday.sp

spatialpoints data frame of the pillow data for the simulation date

phvsnotel

dataframe containing the physiographic values for the pixels that contain pillow stations

simfsca

raster. modscag image of fsca for the simulation date

SNOW_VAR

character string identifying the snow related regression variable. this should have been setup in the runfile

PHV_VARS

formula with the independent physiographic variables for the regression

PATH_RCNDOWNLOAD

path for the location of recondata*.nc files used with SNOW_VAR is 'rcn'

Value

a list with 3 items. 1. dataframe with all variables needed to fit the regression model 2. dataframe with all variables needed to predict on the same grid as the fsca image 3. a formula for predicting


hoargroup/stationsweRegression documentation built on Feb. 4, 2024, 7:21 a.m.