-
Notifications
You must be signed in to change notification settings - Fork 29
/
config.py
100 lines (84 loc) · 3.88 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
"""
This is the COSIPY configuration (init) file.
Please make your changes here.
"""
#-----------------------------------
# SIMULATION PERIOD
#-----------------------------------
# Zhadang
time_start = '2009-01-01T06:00'
time_end = '2009-01-10T00:00'
# Hintereisferner
#time_start = '2018-09-17T08:00'
#time_end = '2019-07-03T13:00'
#-----------------------------------
# FILENAMES AND PATHS
#-----------------------------------
time_start_str=(time_start[0:10]).replace('-','')
time_end_str=(time_end[0:10]).replace('-','')
data_path = './data/'
# Zhadang example
input_netcdf= 'Zhadang/Zhadang_ERA5_2009.nc'
output_netcdf = 'Zhadang_ERA5_'+time_start_str+'-'+time_end_str+'.nc'
# Hintereisferner example
#input_netcdf = 'HEF/HEF_input.nc'
#output_netcdf = 'hef.nc'
#-----------------------------------
# RESTART
#-----------------------------------
restart = False # set to true if you want to start from restart file
#-----------------------------------
# STAKE DATA
#-----------------------------------
stake_evaluation = False
stakes_loc_file = './data/input/HEF/loc_stakes.csv' # path to stake location file
stakes_data_file = './data/input/HEF/data_stakes_hef.csv' # path to stake data file
eval_method = 'rmse' # how to evaluate the simulations ('rmse')
obs_type = 'snowheight' # What kind of stake data is used 'mb' or 'snowheight'
#-----------------------------------
# STANDARD LAT/LON or WRF INPUT
#-----------------------------------
# Dimensions
WRF = False # Set to True if you use WRF as input
northing = 'lat' # name of dimension in in- and -output
easting = 'lon' # name of dimension in in- and -output
if WRF:
northing = 'south_north' # name of dimension in WRF in- and output
easting = 'west_east' # name of dimension in WRF in- and output
# Interactive simulation with WRF
WRF_X_CSPY = False
#-----------------------------------
# COMPRESSION of output netCDF
#-----------------------------------
compression_level = 2 # Choose value between 1 and 9 (highest compression)
# Recommendation: choose 1, 2 or 3 (higher not worthwhile, because of needed time for writing output)
#-----------------------------------
# PARALLELIZATION
#-----------------------------------
slurm_use = False # use SLURM
workers = None # setting is used only without SLURM usage; number of workers (cores); with "None" all available cores are used
local_port = 8786 # port for local cluster
#-----------------------------------
# WRITE FULL FIELDS
#-----------------------------------
full_field = False # write full fields (2D data) to file
if WRF_X_CSPY:
full_field = True
#-----------------------------------
# TOTAL PRECIPITATION
#-----------------------------------
force_use_TP = False # If total precipitation and snowfall in input data;
# use total precipitation
#-----------------------------------
# CLOUD COVER FRACTION
#-----------------------------------
force_use_N = False # If cloud cover fraction and incoming longwave radiation
# in input data use cloud cover fraction
#-----------------------------------
# SUBSET (provide pixel values)
#-----------------------------------
tile = False
xstart = 20
xend = 40
ystart = 20
yend = 40