Skip to content

Commit 1af7c83

Browse files
Clarified difference between stochastic and non-stochastic climate variables in doc and readme (#36)
1 parent da71d88 commit 1af7c83

File tree

3 files changed

+46
-43
lines changed

3 files changed

+46
-43
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,14 @@ All methods except the `adjust_3d` function requires that the input data sets on
8181
Except for the variance scaling, all methods can be applied on stochastic and non-stochastic
8282
climate variables. Variance scaling can only be applied on non-stochastic climate variables.
8383

84-
- Stochastic climate variables are those that are subject to random fluctuations
85-
and are not predictable. They have no predictable trend or pattern. Examples of
86-
stochastic climate variables include precipitation, air temperature, and humidity.
87-
88-
- Non-stochastic climate variables, on the other hand, have clear trend and pattern histories
89-
and can be readily predicted. They are often referred to as climate elements and include
90-
variables such as water temperature and air pressure.
84+
- Non-stochastic climate variables are those that can be predicted with relative certainty based
85+
on factors such as location, elevation, and season. Examples of non-stochastic climate variables
86+
include air temperature, air pressure, and solar radiation.
87+
88+
- Stochastic climate variables, on the other hand, are those that exhibit a high degree of
89+
variability and unpredictability, making them difficult to forecast accurately.
90+
Precipitation is an example of a stochastic climate variable because it can vary greatly in timing,
91+
intensity, and location due to complex atmospheric and meteorological processes.
9192

9293
---
9394

cmethods/__init__.py

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -47,30 +47,31 @@ def __init__(self, method: str, available_methods: list):
4747

4848
class CMethods:
4949
"""
50-
The CMethods class serves a collection of bias correction procedures to adjust
51-
time-series of climate data.
52-
53-
The following bias correction techniques are available:
54-
Scaling-based techniques:
55-
* Linear Scaling :func:`cmethods.CMethods.linear_scaling`
56-
* Variance Scaling :func:`cmethods.CMethods.variance_scaling`
57-
* Delta (change) Method :func:`cmethods.CMethods.delta_method`
58-
59-
Distribution-based techniques:
60-
* Quantile Mapping :func:`cmethods.CMethods.quantile_mapping`
61-
* Detrended Quantile Mapping :func:`cmethods.CMethods.detrended_quantile_mapping`
62-
* Quantile Delta Mapping :func:`cmethods.CMethods.quantile_delta_mapping`
63-
64-
Except for the Variance Scaling all methods can be applied on both, stochastic and non-stochastic
65-
variables. The Variance Scaling can only be applied on stochastic climate variables.
66-
67-
Stochastic climate variables are those that are subject to random fluctuations
68-
and are not predictable. They have no predictable trend or pattern. Examples of
69-
stochastic climate variables include precipitation, air temperature, and humidity.
70-
71-
Non-stochastic climate variables, on the other hand, have clear trend and pattern histories
72-
and can be readily predicted. They are often referred to as climate elements and include
73-
variables such as water temperature and air pressure.
50+
The CMethods class serves a collection of bias correction procedures to adjust
51+
time-series of climate data.
52+
53+
The following bias correction techniques are available:
54+
Scaling-based techniques:
55+
* Linear Scaling :func:`cmethods.CMethods.linear_scaling`
56+
* Variance Scaling :func:`cmethods.CMethods.variance_scaling`
57+
* Delta (change) Method :func:`cmethods.CMethods.delta_method`
58+
59+
Distribution-based techniques:
60+
* Quantile Mapping :func:`cmethods.CMethods.quantile_mapping`
61+
* Detrended Quantile Mapping :func:`cmethods.CMethods.detrended_quantile_mapping`
62+
* Quantile Delta Mapping :func:`cmethods.CMethods.quantile_delta_mapping`
63+
64+
Except for the Variance Scaling all methods can be applied on both, stochastic and non-stochastic
65+
variables. The Variance Scaling can only be applied on stochastic climate variables.
66+
67+
- Non-stochastic climate variables are those that can be predicted with relative certainty based
68+
on factors such as location, elevation, and season. Examples of non-stochastic climate variables
69+
include air temperature, air pressure, and solar radiation.
70+
71+
- Stochastic climate variables, on the other hand, are those that exhibit a high degree of
72+
variability and unpredictability, making them difficult to forecast accurately.
73+
Precipitation is an example of a stochastic climate variable because it can vary greatly in timing,
74+
intensity, and location due to complex atmospheric and meteorological processes.
7475
"""
7576

7677
SCALING_METHODS = ["linear_scaling", "variance_scaling", "delta_method"]
@@ -397,10 +398,10 @@ def linear_scaling(
397398
398399
**Additive**:
399400
400-
In Linear Scaling, the long-term monthly mean (:math:`\mu_m`) of the modeled data :math:`T_{sim,h}` is subtracted
401-
from the long-term monthly mean of the reference data :math:`T_{obs,h}` at time step :math:`i`.
402-
This difference in month-dependent long-term mean is than added to the long-term monthly mean for time step :math:`i`,
403-
in the time-series that is to be adjusted (:math:`T_{sim,p}`).
401+
In Linear Scaling, the long-term monthly mean (:math:`\mu_m`) of the modeled data :math:`X_{sim,h}` is subtracted
402+
from the long-term monthly mean of the reference data :math:`X_{obs,h}` at time step :math:`i`.
403+
This difference in month-dependent long-term mean is than added to the value of time step :math:`i`,
404+
in the time-series that is to be adjusted (:math:`X_{sim,p}`).
404405
405406
.. math::
406407
@@ -504,7 +505,7 @@ def variance_scaling(
504505
of the Variance Scaling approach are shown:
505506
506507
**(1)** First, the modeled data of the control and scenario period must be bias-corrected using
507-
the Linear Scaling technique. This corrects the deviation in the mean.
508+
the additive linear scaling technique. This adjusts the deviation in the mean.
508509
509510
.. math::
510511

docs/src/introduction.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,19 @@ The following bias correction techniques are available:
5555

5656
All of these methods are intended to be applied on 1-dimensional time-series climate data.
5757
This module also provides the function :func:`cmethods.CMethods.adjust_3d` that enables
58-
the application of the desired bias correction method on 3-dimensinoal data sets.
58+
the application of the desired bias correction method on 3-dimensional data sets.
5959

6060
Except for the variance scaling, all methods can be applied on stochastic and non-stochastic
6161
climate variables. Variance scaling can only be applied on non-stochastic climate variables.
6262

63-
- Stochastic climate variables are those that are subject to random fluctuations
64-
and are not predictable. They have no predictable trend or pattern. Examples of
65-
stochastic climate variables include precipitation, air temperature, and humidity.
63+
- Non-stochastic climate variables are those that can be predicted with relative certainty based
64+
on factors such as location, elevation, and season. Examples of non-stochastic climate variables
65+
include air temperature, air pressure, and solar radiation.
6666

67-
- Non-stochastic climate variables, on the other hand, have clear trend and pattern histories
68-
and can be readily predicted. They are often referred to as climate elements and include
69-
variables such as water temperature and air pressure.
67+
- Stochastic climate variables, on the other hand, are those that exhibit a high degree of
68+
variability and unpredictability, making them difficult to forecast accurately.
69+
Precipitation is an example of a stochastic climate variable because it can vary greatly in timing,
70+
intensity, and location due to complex atmospheric and meteorological processes.
7071

7172
Examples can be found in the `python-cmethods`_ repository and of course
7273
within this documentation.

0 commit comments

Comments
 (0)