-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Blog post showing how to process eclipse photos with SunPy #409
Conversation
Co-authored-by: Albert Y. Shih <ayshih@gmail.com>
Co-authored-by: Albert Y. Shih <ayshih@gmail.com>
"outputs": [], | ||
"source": [ | ||
"im_rgb = np.flipud(matplotlib.image.imread(SOLAR_ECLIPSE_IMAGE))\n", | ||
"im = np.average(im_rgb, axis=2)" |
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.
Do we need to do something like from skimage.color import rgb2gray
instead of an average?
Or does it not matter?
"blur_im = ndimage.gaussian_filter(im, 8)\n", | ||
"mask = blur_im > blur_im.mean() * 3\n", |
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.
Any reason for these "magic" numbers or shall we just gloss over it?
Thanks everyone, hopefully the weather lets us see it tomorrow. |
In preparation for the 2024 eclipse, this blog post shows an example of how to process an eclipse photograph with SunPy using an observation from the 2017 eclipse. This is adapted from here: https://github.com/sunpy/solar-eclipse