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

Add method(s) to transform mapped data between projections #403

Open
ortk95 opened this issue Sep 27, 2024 · 0 comments
Open

Add method(s) to transform mapped data between projections #403

ortk95 opened this issue Sep 27, 2024 · 0 comments
Labels
api Related to the Python API (public methods etc.) backend Related to the backend (coordinate conversion, SPICE etc.) backplane Related to backplanes enhancement New feature or request idea Something that might be a good enhancement

Comments

@ortk95
Copy link
Owner

ortk95 commented Sep 27, 2024

Inspired by #399 (reply in thread)

It would be useful to add some method(s) to transform mapped data between different projections. E.g. to take a rectangular projection then transform it to orthographic. This would be a logical extension of the observed image -> map transformations that are currently possible. Some potential use cases:

  • Merging multiple observations, then projecting to e.g. orthographic - as in Novice user question(s) on GUI #399 (reply in thread)_
  • Simulating the view of a planet at a given time (i.e. take a reference basemap image, then transform it to orthographic/stereographic) - this would probably want to be a separate method to the above, as it would make sense to use the image backplanes for this.

I already have some similar code in https://github.com/ortk95/reproject-data that can be used as a starting point for this. Logically, I think this new method(s?) would go in BodyXY - e.g. something like BodyXY.transform_map_projection() and BodyXY.simulate_observation_from_map(). Most (/all?) of the internal projection logic could re-use the existing mapping code in PlanetMapper.

This would also obviously be worth documenting properly, including adding some examples to the tutorials page.

@ortk95 ortk95 added enhancement New feature or request idea Something that might be a good enhancement backend Related to the backend (coordinate conversion, SPICE etc.) api Related to the Python API (public methods etc.) backplane Related to backplanes labels Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to the Python API (public methods etc.) backend Related to the backend (coordinate conversion, SPICE etc.) backplane Related to backplanes enhancement New feature or request idea Something that might be a good enhancement
Projects
None yet
Development

No branches or pull requests

1 participant