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

DRAFT: HEALPix to UGRID #1147

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft

DRAFT: HEALPix to UGRID #1147

wants to merge 18 commits into from

Conversation

philipc2
Copy link
Member

@philipc2 philipc2 commented Feb 3, 2025

Closes #1097

Overview

  • Implements a Grid.from_healpix(resolution_level, nest, pixels_only) classmethod that constructs a UGRID-compliant representation of a HEALPix Grid
  • The HEALPix grid can be loaded as "coordinates-only", meaning that only the pixels are stored, with boundaries (i.e. face_node_connectivity, node_lonandnode_lat` computed when the user requires them (i.e. for plotting)
  • User Guide section on working with HEALPix Grids

Examples

image image image image

@philipc2 philipc2 self-assigned this Feb 3, 2025
@philipc2 philipc2 linked an issue Feb 3, 2025 that may be closed by this pull request
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

nside: int, ipix: Any, nest: bool = False, lonlat: bool = False
) -> Tuple[Any, Any, Any, Any]:
if nest:
fu = hp._chp.nest2ang_uv
Copy link
Member

@erogluorhan erogluorhan Feb 4, 2025

Choose a reason for hiding this comment

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

Please put TO-DO for these that clarifies we will start using healpix user API once this issues is addressed

Copy link
Member Author

Choose a reason for hiding this comment

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

Will do! Haven't had a chance to create the docstrings yet for any of the functions.

@rajeeja
Copy link
Contributor

rajeeja commented Feb 4, 2025

how do you get healpix mesh data, what is the format? do you have an example?

@rajeeja rajeeja self-requested a review February 5, 2025 03:11
@philipc2
Copy link
Member Author

philipc2 commented Feb 5, 2025

how do you get healpix mesh data, what is the format? do you have an example?

I've put a few examples in #1028 which are a good read

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.

Implement Grid.from_healpix
4 participants