wbm_load.R
Functions: wbm_load()
- Uses the raster package to load WBM output files into R
- Reads multiple yearly WBM files into a single raster stack
- Only loads one variable
spatial_aggregation.R
Functions:
spatial_aggregation()
- Given gridded data and a polygon shapefile, aggregates grid values to polygons.
- Option: sum or average over polygons.
- If sum is used, the function assumes the data is in mm and aggregates to km3 using either input grid area, or calculates grid area.
global.sum()
- Given gridded data, sums or averages all grids.
- If sum, then input is assumed to be mm and output is in km3. Uses either input grid area, or calculates grid area.
global.sum.stack() NOTE: this function should be updated/merged with global.sum()
spatial.agg.ts()
linear_val.R
Functions:
linear_reg()
linear_val()
map_r2() *NOTE: need to make legend placement option, or at least place legend outside of map boundaries
NSE.R
Functions: NSE()
get_USGS_data.R
Functions: get_USGS_data()
FDC.R Functions: FDC()