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

Connect flags #202

Merged
merged 13 commits into from
Mar 25, 2022
Merged

Connect flags #202

merged 13 commits into from
Mar 25, 2022

Conversation

fpavogt
Copy link
Member

@fpavogt fpavogt commented Mar 16, 2022

Description:
This PR introduces several improvements related to flags. First, these now propagate through the process_chunk(), weighted_mean() and delta() functions. Specifically, flags are being combined (bitwise OR) when their associated data points are being combined (in whatever way). Namely, the average of a flagged and un-flagged points will be flagged.

This PR also introduces the possibility to crop descent data during the basic cleanup recipe step of the uaii2022, and fixes a few minor things.

This PR also introduces a new recipe step dedicated to generating the CWS-validation plots (gdp_vs_cws and uc_budget). These now have 3 x-axis (i, tdt, alt), which are all computed "properly". The alt, in particular, is taken as the CWS ref_alt, which itself, is generated from the CWS gph with holes interpolated and outer gaps filled with -99999 and +99999 to easily identify those bad regions (doing so is required to allow back-and-forth interpolation by matplotlib - NaNs are unsuitable).

Error(s) fixed:

Fix #163.

Checklists:

  • New code includes dedicated tests.
  • New code has been linted.
  • New code follows the project's style.
  • New code is compatible with a GPL v3 license.
  • CHANGELOG has been updated.
  • AUTHORS has been updated.

@fpavogt fpavogt self-assigned this Mar 16, 2022
@fpavogt fpavogt marked this pull request as ready for review March 18, 2022 11:31
@fpavogt fpavogt requested a review from modolol as a code owner March 18, 2022 11:31
@fpavogt
Copy link
Member Author

fpavogt commented Mar 18, 2022

@modolol: I'll merge this PR early next week I think. It fixes flags and some plots.

@fpavogt
Copy link
Member Author

fpavogt commented Mar 25, 2022

Merging this to have all the "valid" changes in develop, in anticipation of the fix for #203.

@fpavogt fpavogt merged commit 4e7642e into develop Mar 25, 2022
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.

'tdt' of CWS requires a proper computation of the start time
1 participant