Skip to content

Conversation

@PaulJWright
Copy link
Member

@PaulJWright PaulJWright commented Nov 30, 2023

Addition of a function to reproject sunpy.map.Map objects to a common observer.

Leaving this as a draft, but the idea is that this would end up closing #5

Closes #5

@PaulJWright PaulJWright changed the title addition of reprojection function Addition of re-projection to a common observer Nov 30, 2023
@PaulJWright PaulJWright marked this pull request as draft November 30, 2023 12:11
Comment on lines +6 to +7


Copy link
Member Author

Choose a reason for hiding this comment

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

add __all__

from astropy.coordinates import SkyCoord


def reproject_instrument(
Copy link
Contributor

Choose a reason for hiding this comment

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

Names are hard but a think should rename this changes scale and distance of observer of a map using reproject it not the full retroject? Should prob also support the reproject keywords.

0 * u.arcsec,
0 * u.arcsec,
frame="helioprojective",
rsun=sunpy_map.reference_coordinate.rsun,
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you checked if the rsun value in the reprojected maps is scaled properly, I assume it is but good to check. I know its a draft but some tests would be good later

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, this is a good plan. I am not sure if this is the way to do it, but a start

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.

Magnetogram re-projection

2 participants