Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SaQC
Manage
Activity
Members
Labels
Plan
Issues
35
Issue boards
Milestones
Wiki
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rdm-software
SaQC
Commits
1a5b2c77
Commit
1a5b2c77
authored
5 years ago
by
Bert Palm
🎇
Browse files
Options
Downloads
Patches
Plain Diff
refactored spellingmistake, updated docs
parent
5d6fe027
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!14
WIP: Expose the function parameter 'field' to the config
Pipeline
#2556
passed with stage
in 8 minutes and 44 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/funcs/SoilMoisture.md
+20
-20
20 additions, 20 deletions
docs/funcs/SoilMoisture.md
saqc/funcs/soil_moisture_tests.py
+2
-0
2 additions, 0 deletions
saqc/funcs/soil_moisture_tests.py
saqc/funcs/spike_detection.py
+2
-2
2 additions, 2 deletions
saqc/funcs/spike_detection.py
with
24 additions
and
22 deletions
docs/funcs/SoilMoisture.md
+
20
−
20
View file @
1a5b2c77
...
...
@@ -20,15 +20,15 @@ soilMoisture_spikes(raise_factor=0.15, deriv_factor=0.2,
smooth_window="3h")
```
| parameter | default value |
|---------------|---------------|
| raise_factor |
`0.15`
|
| deriv_factor |
`0.2`
|
| noise_func |
`"CoVar"`
|
| noise_window |
`"12h"`
|
| noise_thresh |
`1`
|
| smooth_window |
`"3h"`
|
| parameter |
data type |
default value |
|---------------|---------------
------------------------------------------------|---------------
|
| raise_factor |
float |
`0.15`
|
| deriv_factor |
float |
`0.2`
|
| noise_func |
[
string
](
#noise-detection-functions
)
|
`"CoVar"`
|
| noise_window |
[
offset string
](
docs/ParameterDescriptions.md#offset-strings
)
|
`"12h"`
|
| noise_thresh |
float |
`1`
|
| smooth_window |
[
offset string
](
docs/ParameterDescriptions.md#offset-strings
)
|
`"3h"`
|
| smooth_poly_deg | integer |
`2`
|
The Function is a wrapper around
`flagSpikes_spektrumBased`
with a set of default parameters referring to [1]. For a complete description of
...
...
@@ -49,17 +49,17 @@ soilMoisture_breaks(thresh_rel=0.1, thresh_abs=0.01,
smooth=False, smooth_window="3h", smooth_poly_deg=2)
```
| parameter | default value |
|-----------------------|---------------|
| thresh_rel |
`0.1`
|
| thresh_abs |
`0.01`
|
| first_der_factor |
`10`
|
| first_der_window |
`"12h"`
|
| scnd_der_ratio_range |
`0.05`
|
| scnd_der_ratio_thresh |
`10.0`
|
| smooth |
`False`
|
| smooth_window |
`"3h"`
|
| smooth_poly_deg |
`2`
|
| parameter |
data type |
default value |
|-----------------------|---------------
------------------------------------------------|---------------
|
| thresh_rel |
float |
`0.1`
|
| thresh_abs |
float |
`0.01`
|
| first_der_factor |
float |
`10`
|
| first_der_window |
[
offset string
](
docs/ParameterDescriptions.md#offset-strings
)
|
`"12h"`
|
| scnd_der_ratio_range |
float |
`0.05`
|
| scnd_der_ratio_thresh |
float |
`10.0`
|
| smooth |
bool |
`False`
|
| smooth_window |
[
offset string
](
docs/ParameterDescriptions.md#offset-strings
)
|
`"3h"`
|
| smooth_poly_deg |
integer |
`2`
|
The Function is a wrapper around
`breaks_spektrumBased`
...
...
This diff is collapsed.
Click to expand it.
saqc/funcs/soil_moisture_tests.py
+
2
−
0
View file @
1a5b2c77
...
...
@@ -25,6 +25,7 @@ def flagSoilmoistureSpikes(
noise_window
=
"
12h
"
,
noise_thresh
=
1
,
smooth_window
=
"
3h
"
,
smooth_poly_deg
=
2
,
**
kwargs
):
...
...
@@ -45,6 +46,7 @@ def flagSoilmoistureSpikes(
noise_window
=
noise_window
,
noise_thresh
=
noise_thresh
,
smooth_window
=
smooth_window
,
smooth_poly_deg
=
smooth_poly_deg
,
**
kwargs
)
...
...
This diff is collapsed.
Click to expand it.
saqc/funcs/spike_detection.py
+
2
−
2
View file @
1a5b2c77
...
...
@@ -275,7 +275,7 @@ def flagSpikes_spektrumBased(
noise_window
=
"
12h
"
,
noise_thresh
=
1
,
smooth_window
=
None
,
smooth_p
l
oy_deg
=
2
,
smooth_po
l
y_deg
=
2
,
**
kwargs
,
):
"""
...
...
@@ -376,7 +376,7 @@ def flagSpikes_spektrumBased(
end_slice
=
spike
+
smooth_window
scnd_derivate
=
savgol_filter
(
dataseries
[
start_slice
:
end_slice
],
window_length
=
smoothing_periods
,
polyorder
=
smooth_p
l
oy_deg
,
deriv
=
2
,
dataseries
[
start_slice
:
end_slice
],
window_length
=
smoothing_periods
,
polyorder
=
smooth_po
l
y_deg
,
deriv
=
2
,
)
length
=
scnd_derivate
.
size
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment