-
Notifications
You must be signed in to change notification settings - Fork 5
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
✨ Add coherent artifact plot functionality #123
Conversation
Sourcery Code Quality Report✅ Merging this PR will increase code quality in the affected files by 0.56%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
Codecov ReportBase: 40.61% // Head: 40.20% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #123 +/- ##
==========================================
- Coverage 40.61% 40.20% -0.41%
==========================================
Files 24 25 +1
Lines 719 771 +52
Branches 98 108 +10
==========================================
+ Hits 292 310 +18
- Misses 427 460 +33
- Partials 0 1 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, corrected some small imperfections in doc strings.
Co-authored-by: Joris Snellenburg <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a lot sebastian. this function is key to the Lego-paper. indeed (the concept of) this function should also work with different input, e.g. concentrations and SA(D)S, or damped oscillations and DOAS. let us give that a try when we zoom again. if indeed we can generalize, then the name can become more generic. we will of course then need arguments to indicate what we want to plot. i foresee now three types of input: (1) IRF derivatives and IRFAS, (2) damped oscillations and DOAS, (3) concentrations and SA(D)S. Since these are all fixed pairs, one named arguments suffices.
Since factoring out the scaling would be just an internal change and affect the user facing API this could be done in a l8er PR. |
This change adds a new plot function
plot_coherent_artifact
which implements #33.Here are some example plots for the DOAS example (currently our only example that uses the coherent artifact):
Change summary
Checklist
Closes issues
Not sure for which other plots #33 applies, so we might want to factor out the scaling and normalization into another helper function thus I'm not marking it as closed.