Skip to content

Check if a point is inside the polygon on the spherical surface - #911

Closed
hongyuchen1030 wants to merge 1 commit into
mainfrom
is-point-in-polygon-function
Closed

hongyuchen1030 wants to merge 1 commit into
mainfrom
is-point-in-polygon-function

Conversation

@hongyuchen1030

Copy link
Copy Markdown
Contributor

Closes #905

Overview

Modify the existing _is_pole_point_inside function such that it checks if the given point is inside the polygon

Expected Usage

import uxarray as ux

grid_path = "/path/to/grid.nc"
data_path = "/path/to/data.nc"

uxds = ux.open_dataset(grid_path, data_path)

# this is how you use this function
some_output = uxds.some_function()

# this is another way to use this function
other_output = uxds.some_function(some_param = True)

PR Checklist

General

  • An issue is linked created and linked
  • Add appropriate labels
  • Filled out Overview and Expected Usage (if applicable) sections

Testing

  • Adequate tests are created if there is new functionality
  • Tests cover all possible logical paths in your function
  • Tests are not too basic (such as simply calling a function and nothing else)

Documentation

  • Docstrings have been added to all new functions
  • Docstrings have updated with any function changes
  • Internal functions have a preceding underscore (_) and have been added to docs/internal_api/index.rst
  • User functions have been added to docs/user_api/index.rst

Examples

  • Any new notebook examples added to docs/examples/ folder
  • Clear the output of all cells before committing
  • New notebook files added to docs/examples.rst toctree
  • New notebook files added to new entry in docs/gallery.yml with appropriate thumbnail photo in docs/_static/thumbnails/

@hongyuchen1030 hongyuchen1030 linked an issue Aug 27, 2024 that may be closed by this pull request
@hongyuchen1030 hongyuchen1030 self-assigned this Aug 27, 2024
@philipc2

philipc2 commented Dec 7, 2024

Copy link
Copy Markdown
Member

Closing this since it duplicates #1056

@philipc2 philipc2 closed this Dec 7, 2024
@aaronzedwick aaronzedwick removed a link to an issue Jan 9, 2025
@erogluorhan
erogluorhan deleted the is-point-in-polygon-function branch September 26, 2025 17:48
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.

2 participants