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 ...@@ -128,29 +128,27 @@ This Function is based on [1] and all default parameter values are taken from th
## soilMoisture_byFrost ## 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 | | parameter | data type | default value | description |
|---------------------|---------------------------------------------------------------|---------------|------------------------------------------------------------| |--------------------|---------------------------------------------------------------|---------------|---------------------------------------------------------------|
| soil_temp_variable | string | | Name of the soil temperature variable given in the dataset | | 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 | | window | [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 | | 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 This function flags soil moisture values if the soil temperature
in the moment of measurement (+/- `tolerated deviation`). (given in `soil_temp_variable`) drops below `frost_thresh`
Soil temperatures below "frost_level" are regarded as denoting frozen soil within a periode of +/- `window`.
state and result in the checked soil moisture value to get flagged.
This Function is an implementation of the soil temperature based Soil Moisture This Function is an implementation of the soil temperature based flagging
flagging, as presented in: as presented in [1] and all default parameter values are taken from this
publication.
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.
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 ## soilMoisture_byPrecipitation
......
...@@ -96,8 +96,8 @@ def flagSoilMoistureBySoilFrost( ...@@ -96,8 +96,8 @@ def flagSoilMoistureBySoilFrost(
field, field,
flagger, flagger,
soil_temp_variable, soil_temp_variable,
tolerated_deviation="1h", window="1h",
frost_level=0, frost_thresh=0,
**kwargs **kwargs
): ):
...@@ -138,8 +138,8 @@ def flagSoilMoistureBySoilFrost( ...@@ -138,8 +138,8 @@ def flagSoilMoistureBySoilFrost(
if refseries.empty: if refseries.empty:
return data, flagger return data, flagger
refseries = refseries.reindex(data[field].dropna().index, method="nearest", tolerance=tolerated_deviation) refseries = refseries.reindex(data[field].dropna().index, method="nearest", tolerance=window)
refseries = refseries[refseries < frost_level].index refseries = refseries[refseries < frost_thresh].index
flagger = flagger.setFlags(field, refseries, **kwargs) flagger = flagger.setFlags(field, refseries, **kwargs)
return data, flagger 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