Collection of bias adjustment procedures for multidimensional climate data
Project description
Bias-Adjustment-Python
Collection of different scale- and distribution-based bias adjustment techniques for climatic research. (see examples.ipynb
for help)
Bias adjustment procedures in Python are very slow, so they should not be used on large data sets. A C++ Implementation that works way faster can be found here: https://github.com/btschwertfeger/Bias-Adjustment-Cpp.
Run adjustment:
python3 do_bias_correction.py \
--obs input_data/obs.nc \
--contr input_data/contr.nc \
--scen input_data/scen.nc \
--method linear_scaling \
--variable tas \
--unit '°C' \
--group time.month \
--kind +
Methods implemented by Benjamin T. Schwertfeger:
Method | --method parameter |
---|---|
Linear Scaling | linear_scaling |
Variance Scaling | variance_scaling |
Delta Method | delta_method |
Quantile Mapping | quantile_mapping |
Quantile Delta Mapping | quantile_delta_mapping |
Notes:
- Linear and variance, as well as delta change method require
--group time.month
as argument. - Adjustment methods that apply changes in distributional biasses (QM. QDM, DQM; EQM, ...) need the
--nquantiles
argument set to some integer. - Data sets should have the same spatial resolutions.
- Computation in Python takes some time, so this is only for demonstration. When adjusting large datasets, its best to the C++ implementation mentioned above.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-cmethods-0.5.tar.gz
(10.8 kB
view hashes)
Built Distribution
Close
Hashes for python_cmethods-0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f62b35c8557fd624d4ee63f6dd840c54c6b1dc21e8329bfa1a9d76eae263ca16 |
|
MD5 | 85ffe1cc93fdeb31e8a2a2deb81866e6 |
|
BLAKE2b-256 | 76cd425158b052debdab677a6cbce6485a2b73e987b8743ee287f7db191b361a |