Skip to content

Conversation

@alasdairwilson
Copy link
Member

Thoughts on this very simple upscaling example?

I also added a new piece of error handling to rebin as the current message when you use scale factors > 1 is misleading

(e.g. 2 is an integer factor)

@Cadair Cadair added this to the 2.4.0 milestone Oct 30, 2025
@hayesla
Copy link
Member

hayesla commented Nov 4, 2025

hmm sorry to be a stopper here, but should we really be encouraging people to upscale data? it may come across that you are getting "better" resolution which is not true? especially with an aia example?

I like idea having some docs to show functionality - how about downscaling?

@alasdairwilson
Copy link
Member Author

alasdairwilson commented Nov 4, 2025 via email

@alasdairwilson alasdairwilson changed the title docs: add example using reproject to upscale resolution docs: add example using reproject to change wcs resolution Nov 18, 2025
Changing the resolution of an NDCube
=====================================

This example shows how to change the resolution of an NDCube by reprojecting to a finer grid.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think to what @hayesla said we should talk about when to use this and when to use rebin here, and a big health warning etc.

Comment on lines +23 to +24
image_data = fits.getdata(AIA_171_IMAGE)
image_header = fits.getheader(AIA_171_IMAGE)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
image_data = fits.getdata(AIA_171_IMAGE)
image_header = fits.getheader(AIA_171_IMAGE)
image_data = fits.getdata(AIA_171_IMAGE, ext=1)
image_header = fits.getheader(AIA_171_IMAGE, ext=1)

@Cadair Cadair modified the milestones: 2.4.0, 2.5.0 Dec 3, 2025
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.

3 participants