-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.py
35 lines (34 loc) · 1.18 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from datetime import datetime
config = {
"start_date": datetime(2011, 1, 1),
"station_vector": "../data/Grid/05d_pt_land2.shp",
"station_id_field": "ID",
"output_dir": "../output",
"samples": 10,
"mapping": [
{
"file": "../data/ISIMIP/gfdl-esm4_r1i1p1f1_w5e5_historical_rsds_global_daily_2011_2014.nc",
"netcdfVar": "rsds",
"dssatVar": "SRAD",
"conversion": lambda x: x * 86400 / 1000000,
},
{
"file": "../data/ISIMIP/gfdl-esm4_r1i1p1f1_w5e5_historical_tasmin_global_daily_2011_2014.nc",
"netcdfVar": "tasmin",
"dssatVar": "TMIN",
"conversion": lambda x: x - 273.15,
},
{
"file": "../data/ISIMIP/gfdl-esm4_r1i1p1f1_w5e5_historical_tasmax_global_daily_2011_2014.nc",
"netcdfVar": "tasmax",
"dssatVar": "TMAX",
"conversion": lambda x: x - 273.15,
},
{
"file": "../data/ISIMIP/gfdl-esm4_r1i1p1f1_w5e5_historical_pr_global_daily_2011_2014.nc",
"netcdfVar": "pr",
"dssatVar": "RAIN",
"conversion": lambda x: x * 86400,
},
],
}