Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix various issues and tune some filtering parameters #78

Merged
merged 5 commits into from
Mar 31, 2022
Merged

Conversation

adehecq
Copy link
Owner

@adehecq adehecq commented Mar 31, 2022

  • fix small issues with TimeSeries4
  • rename TimeSeries4 into TimeSeries_full (for clarity)
  • increase min date difference threshold to at least 4 years
  • filter steep slopes and disable ill-working NMAD filter
  • increase bin size to 100 m as in Dussaillant et al (2019) and Hugonnet et al. (2021)

Fixes #71 .

@adehecq adehecq merged commit 75e50b3 into master Mar 31, 2022
@@ -842,7 +840,7 @@ def fname_func(pair_id):
min_date = np.percentile(ds.time, 2)
max_date = np.percentile(ds.time, 98)
time_delta_max = int((max_date - min_date).astype('timedelta64[D]') / np.timedelta64(1, 'D'))
time_delta_min = int(time_delta_max * 0.1)
time_delta_min = min(4*365, int(time_delta_max * 0.5))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ddem bin filtering too strict for CL_NPI
2 participants