This function will extract monthly temperature and precipitation data for a given StudyArea
. In case the projection differs, the data is transformed to the projection of the StudyArea
before extracting the data.
The precipitation/temperature file must be stored in the netCDF format with the years on the Z value.
Input
parameter | description | type |
---|---|---|
tempFileName | path to the temperature file | String |
precFileName | path to the precipitation file | String |
studyArea | A StudyArea object. Obtained with getStudyArea()
|
StudyArea |
years | selected years | numeric vector |
Output
Returns a data.frame
with the columns lon
, lat
, year
, prec_1
... prec_12
and temp_1
, ... temp_12
Notes
- monthly precipitation [cm] and monthly temperature [°C] data is needed
- input data must be stored in the netCDF format with years on the Z value