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

Blog post showing how to process eclipse photos with SunPy #409

Merged
merged 17 commits into from
Apr 7, 2024

Conversation

Cadair
Copy link
Member

@Cadair Cadair commented Apr 3, 2024

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

@Cadair Cadair requested a review from wtbarnes April 3, 2024 16:49
@wtbarnes wtbarnes changed the title Very rough first draft of the eclipse example Blog post showing how to process eclipse photos with SunPy Apr 5, 2024
@wtbarnes wtbarnes marked this pull request as ready for review April 5, 2024 16:57
@wtbarnes wtbarnes added the Blog label Apr 5, 2024
wtbarnes and others added 4 commits April 5, 2024 15:18
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)"
Copy link
Contributor

@nabobalis nabobalis Apr 6, 2024

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?

Comment on lines +187 to +188
"blur_im = ndimage.gaussian_filter(im, 8)\n",
"mask = blur_im > blur_im.mean() * 3\n",
Copy link
Contributor

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?

@nabobalis nabobalis merged commit 026a237 into sunpy:main Apr 7, 2024
8 of 9 checks passed
@nabobalis
Copy link
Contributor

Thanks everyone, hopefully the weather lets us see it tomorrow.

@Cadair Cadair deleted the eclipse_blog branch April 8, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants