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
LASCO_tutorials_and_masking #6576
Conversation
@mwhv2 are you looking for comments on this? Just wanted to check since it's in draft state |
@dstansby I was correcting some of the CI issues before marking it ready. Otherwise, yes! Below are screenshots of the plots produced in the two tutorials. |
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 for the PR @mwhv2 the examples look excellent.
The only issues I have are with the mask calculation method.
Sorry it took so long for a review @mwhv2 |
Can you merge in main please? Hopefully that will fix the failing checks. |
Thanks for the fixes @mwhv2, I will try to get others to review this soon. |
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.
Apart from explaining assume_spherical_screen
the lasco overlay example looks fine. I've left some comments on the other example that would make the code simpler and easier to read.
e3fa537
to
fae3eb4
Compare
fae3eb4
to
27f66e3
Compare
I rebased the PR and fixed hopefully the last few review comments. |
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.
One more request to improve variable names
Adds two LASCO tutorials to the example gallery. mask_occulter creates masks for LASCO C2 and C3 maps.
Co-authored-by: David Stansby <dstansby@gmail.com>
a57a0b2
to
60ea242
Compare
I rebased just to make sure the CI is passing, considering how on fire it has been recently. |
This pull request fixes #6420 and fixes #3098. The tutorial lasco_overlay.py demonstrates the process required to overlay an AIA image onto a processed LASCO C2 image. It doubles as an example to show the usage of hvpy, since the Helioviewer Client is deprecated (#6404).
The tutorial lasco_mask.py is partly based upon a script by @AlthKouloumvakos (in #3098) that shows how to create a custom mask for an unprocessed LASCO C2 image that is downloaded using Fido. Overall, this tutorial combines elements from the current two masking tutorials and could help serve as a guide for creating custom masks.
I have also added the process from the lasco_mask tutorial as a property in the LASCO subclass. This allows a user to generate a LACSO mask (e.g., using
mask = lasco.mask_occulter
) which they can then apply to theirMap
. The bounds I have set for the LASCO C2 mask is based on the specified field of view, as well as in comparison to LASCO C2 data in HelioViewer. C3 data uses the mask recommended in LASCO calibration directory (this way the occulter pylon is also masked). I have not found many examples of LASCO C1 data, so I have not added a mask for this detector (but I would be happy to add one).