get_modscag_data: Function to get MODSCAG data.

Description Usage Arguments Details Value

View source: R/get_modscag_data.R

Description

The function will check for existing processed fsca images in the imagepath. If it doesn't exist, it will check for raw, unprocessed files and mosaic them. If no file exist it will attempt to download them from snowserver and mosaic them.

Usage

1
2
get_modscag_data(doy, yr, type, imagepath, modscagfn = "snow_fraction",
  fveg_correction = TRUE, reso, xmin, xmax, ymin, ymax)

Arguments

doy

day of year

yr

year

type

'NRT' or 'historic'. near realtime download from snowdav or archived data

imagepath

the directory where the mosaiced fsca .tif files exist

modscagfn

'snow_fraction' or 'snow_fraction_canadj'; portion of the filename before the extension to identify canopy corrected or not corrected modscag;

fveg_correction

logical, default TRUE. should fsca be corrected by modscag fveg?

reso

resolution of fsca

xmin

minimum x coordinate of domain

xmax

maximum x coordinate of domain

ymin

minimum y coordinate of domain

ymax

maximum y coordinate of domain

Details

called for its side effect of producing a mosaicked fsca image of the domain

Value

rasterImage of fsca for the simulation date


hoargroup/stationsweRegression documentation built on April 3, 2018, 12:03 p.m.