View source: R/get_modscag_data.R
get_modscag_data | R Documentation |
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.
get_modscag_data(doy, yr, type, imagepath, modscagfn = "snow_fraction",
fveg_correction = TRUE, reso, xmin, xmax, ymin, ymax)
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 |
called for its side effect of producing a mosaicked fsca image of the domain
rasterImage of fsca for the simulation date
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.