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

Region boundaries from gridded mask + comphrehensive tutorials #3

Merged
merged 4 commits into from
May 18, 2023

Conversation

hdrake
Copy link
Owner

@hdrake hdrake commented May 14, 2023

Major changes:

  • Changed high-level API, replacing various function arguments with xgcm.Grid instances

  • Replaced cartesian polygon orientation formula with a spherical polygon one, based on a South-Pole stereographic projection

  • Makes circum-navigating sections more robust

  • Adds tests

  • Introduce new GriddedRegion object which combines section information with grid information

  • Introduced MaskRegions which are initialized from a Boolean mask on the model's tracer grid (uses contourpy to find indices of contours)

  • Renamed class Basin -> Region

Major changes:
- Changed high-level API, replacing various function arguments with `xgcm.Grid` instances
- Replaced cartesian polygon orientation formula with a spherical polygon one, based on a
South-Pole stereographic projection
- Makes circum-navigating sections more robust
- Adds tests

- Introduce new `GriddedRegion` object which combines section information with
grid information
- Introduced `MaskRegions` which are initialized from a Boolean mask
on the model's tracer grid (uses `contourpy` to find indices of contours)
- Renamed class `Basin` -> `Region`

Minor changes:
@hdrake hdrake merged commit fc5b794 into main May 18, 2023
@hdrake hdrake deleted the refactor-using-xgcm-grid-information branch May 18, 2023 15:37
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.

None yet

1 participant