You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Collection of different scale- and distribution-based bias adjustments for climatic research. This methods are part of the bachelor thesis of Benjamin T. Schwertfeger.
4
+
During this thesis, many of these methods have also been implemented in C++.
5
+
This can be found here: [https://github.com/btschwertfeger/Bias-Adjustment-Cpp](https://github.com/btschwertfeger/Bias-Adjustment-Cpp).
6
+
7
+
There is also a Jupyter Notebook that serves as example.
8
+
____
9
+
## Run adjustment:
10
+
```bash
11
+
python3 do_bias_correction.py \
12
+
--obs input_data/obs.nc \
13
+
--contr input_data/contr.nc \
14
+
--scen input_data/scen.nc \
15
+
--method linear_scaling \
16
+
--variable tas \
17
+
--unit '°C' \
18
+
--group time.month \
19
+
--kind +
20
+
```
21
+
____
22
+
## Methods implemented by Benjamin T. Schwertfeger:
23
+
|Method|`--method` parameter|
24
+
|-----|-----|
25
+
|Linear Scaling| linear_scaling|
26
+
|Variance Scaling|variance_scaling|
27
+
|Delta Method|delta_method|
28
+
|Quantile Mapping|quantile_mapping|
29
+
|Quantile Delta Mapping|quantile_delta_mapping|
30
+
31
+
## Methods adapted from [xclim](https://xclim.readthedocs.io/en/stable/sdba.html):
32
+
|Method|`--method` parameter|
33
+
|-----|-----|
34
+
|Empirical Quantile Mapping|xclim_eqm|
35
+
|Detrended Quantile Mapping|xclim_dqm|
36
+
|Quantile Delta Mapping|xclime_qdm|
37
+
38
+
39
+
____
40
+
# Notes:
41
+
- Linear and variance, as well as delta change method require `--group time.month` as argument.
42
+
- Adjustment methods that apply changes in distributional biasses (QM. QDM, DQM; EQM, ...) need the `--nquantiles` argument set to some integer.
43
+
- Data sets should have the same spatial resolutions.
44
+
- Computation in Python takes some time, so this is only for demonstration. When adjusting large datasets, its best to the C++ implementation mentioned above.
0 commit comments