Create an object BasinsObs
from SAFRAN grid
Usage
createBasinsObs(files, dfMailles, cfg = loadConfig())
Arguments
- files
character containing list of NetCFD DRIAS2020 files to read for precipitation and evaporation and for both historical and RCP periods for a given climatic scenario
- dfMailles
data.frame with correspondence between SAFRAN cells and intermediate basins
- cfg
a config object. Configuration to use. See loadConfig for details
Value
A list of class BasinsObs
containing:
DatesR
: POSIXt vector of dates required to create the GR model and CemaNeige module inputsP
: matrix containing precipitation in [mm per time step]. Column names correspond to node IDsTemp
: matrix containing mean temperature in [°C]. Column names correspond to node IDsE
: matrix containing potential evaporation in [mm per time step]. Column names correspond to node IDs