Skip to content
Snippets Groups Projects
Commit 6275d37a authored by David Schäfer's avatar David Schäfer
Browse files

Update SOilMoisture.md

parent b1ff199b
No related branches found
No related tags found
No related merge requests found
......@@ -128,29 +128,27 @@ This Function is based on [1] and all default parameter values are taken from th
## soilMoisture_byFrost
```
soilMoisture_byFrost(soil_temp_variable, tolerated_deviation="1h", frost_level=0)
soilMoisture_byFrost(soil_temp_variable, window="1h", frost_thresh=0)
```
| parameter | data type | default value | description |
|---------------------|---------------------------------------------------------------|---------------|------------------------------------------------------------|
| soil_temp_variable | string | | Name of the soil temperature variable given in the dataset |
| tolerated_deviation | [offset string](docs/ParameterDescriptions.md#offset-strings) | `"1h"` | Window around a value checked for frost events |
| frost_level | float | `0` | Soil temperature to consider as frost |
| parameter | data type | default value | description |
|--------------------|---------------------------------------------------------------|---------------|---------------------------------------------------------------|
| soil_temp_variable | string | | Name of the soil temperature variable given in the dataset |
| window | [offset string](docs/ParameterDescriptions.md#offset-strings) | `"1h"` | Window around a value checked for frost events |
| frost_thresh | float | `0` | Soil temperature below `frost_thresh` are considered as frost |
The function flags Soil moisture measurements by evaluating the soil-frost-level
in the moment of measurement (+/- `tolerated deviation`).
Soil temperatures below "frost_level" are regarded as denoting frozen soil
state and result in the checked soil moisture value to get flagged.
This function flags soil moisture values if the soil temperature
(given in `soil_temp_variable`) drops below `frost_thresh`
within a periode of +/- `window`.
This Function is an implementation of the soil temperature based Soil Moisture
flagging, as presented in:
Dorigo, W. et al: Global Automated Quality Control of In Situ Soil Moisture Data
from the international Soil Moisture Network. 2013. Vadoze Zone J.
doi:10.2136/vzj2012.0097.
This Function is an implementation of the soil temperature based flagging
as presented in [1] and all default parameter values are taken from this
publication.
All parameters default to the values, suggested in this publication.
[1] Dorigo, W. et al: Global Automated Quality Control of In Situ Soil Moisture Data
from the international Soil Moisture Network. 2013. Vadoze Zone J.
doi:10.2136/vzj2012.0097.
## soilMoisture_byPrecipitation
......
......@@ -96,8 +96,8 @@ def flagSoilMoistureBySoilFrost(
field,
flagger,
soil_temp_variable,
tolerated_deviation="1h",
frost_level=0,
window="1h",
frost_thresh=0,
**kwargs
):
......@@ -138,8 +138,8 @@ def flagSoilMoistureBySoilFrost(
if refseries.empty:
return data, flagger
refseries = refseries.reindex(data[field].dropna().index, method="nearest", tolerance=tolerated_deviation)
refseries = refseries[refseries < frost_level].index
refseries = refseries.reindex(data[field].dropna().index, method="nearest", tolerance=window)
refseries = refseries[refseries < frost_thresh].index
flagger = flagger.setFlags(field, refseries, **kwargs)
return data, flagger
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment