3.1.0-dev0
SMI
The Soil Moisture Index program.
Loading...
Searching...
No Matches
main.dat
Go to the documentation of this file.
1!> \file main.dat
2!> \brief SMI program configuration file.
3
4!***DROUGHT-INDEX *** Main configuration file ***
5&mainconfig
6 !
7 ! directory iti which output will be written
8 outpath = "./"
9 !
10 ! file and variable name for soil moisture fields
11 ! if read_opt_h is False, kernel density estimator (kde) is fitted and calculated for these values
12 ! if read_opt_h is True, kde is taken from opt_h_file and SMI is calculated for the SM values
13 soilmoist_file = "./check/input_for_check/mHM_Fluxes_States.nc"
14 sm_vname = "SM_Lall"
15 !
16 ! SMI time steps per year
17 ! 12 == SM is monthly
18 ! 365 == SM is daily
19 ncalendarstepsyear = 12
20 ! lag to calculate moving average for inputs
21 ! moving average is calculated for time steps preceeding the current time step
22 !
23 ! Examples:
24 ! 0, 7, 31 == for daily values (no lag, weekly, monthly)
25 lag = 0
26
27 ! -----------------------------------------------------------------------------
28 !
29 ! Apply silverman rule to estimate kernel width
30 !
31 ! Determination how to estimate the kernel width for the kde:
32 ! silverman_h == .TRUE. - 'Silverman rule' is applied for determination of the kernel width - no optimization
33 ! silverman_h == .FALSE. - optimization of the kernel width
34 silverman_h = .true.
35
36 ! -----------------------------------------------------------------------------
37 !
38 ! Use previously calculated kde
39 !
40 ! if .TRUE. kernel widths h and soil moisture sm are read from file "opt_h_file with"
41 ! if .FALSE. kernel widths are optimized or determined by 'Silverman rule', "opt_h_file" and "opt_h_vname" are ignored
42 read_opt_h = .false.
43 opt_h_file = "XXX"
44 opt_h_vname = "kernel_width"
45 opt_h_sm_vname = "SM"
46
47 ! -----------------------------------------------------------------------------
48 !
49 ! External SMI
50 !
51 ! To invert SMI values and for the clustering, SMI values can be provided
52 ! in an external file. For the clustering, this deactivates the SMI estimation,
53 ! which saves some time.
54 ext_smi = .false.
55 ext_smi_file = 'XXX'
56
57 ! -----------------------------------------------------------------------------
58 !
59 ! Invert SMI cdf
60 !
61 ! If .True., then SMI values are read from ext_smi_file. These are transformed
62 ! to soil moisture saturation using the cdf created by soilmoist_file.
63 invert_smi = .false.
64
65 ! -----------------------------------------------------------------------------
66 !
67 ! Cluster Analysis
68 !
69 ! if .TRUE. cluster analysis should be performed
70 do_cluster = .false.
71 ! SMI - treshhold of for defining drought conditions
72 smi_thld = 0.20
73 ! cellsize (edge length) of the grid im [km]
74 cellsize = 4.0
75 ! threshold for cluster formation in space cellsize**2 * thCellClus ~ 640 km2
76 thcellclus = 40
77 ! number cells for joining clusters in time ~ 6400
78 ncellinter = 400
79 ! number of cells per area interval
80 deltaarea = 20
81
82 ! -----------------------------------------------------------------------------
83 !
84 ! Mask file
85 !
86 ! mask is OPTIONAL
87 ! mask to define the domain for which the SMI calculation or clustering is performed
88 maskfname = "XXX"
89 mask_vname = "XXX"
90
91 ! if .TRUE. SMI is evaluated for subregions (e.g. basins) -
92 ! ****CURRENTLY NOT WORKING
93 basin_flag = .false.
94 basinfname = "./test_smi/basin.nc"
95 basin_vname = "basins"
96! ****CURRENTLY NOT WORKING
97/ !end
98