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 CRS support for queries #58

Merged
merged 22 commits into from
Nov 15, 2024
Merged

Add CRS support for queries #58

merged 22 commits into from
Nov 15, 2024

Conversation

mpiannucci
Copy link
Contributor

@mpiannucci mpiannucci commented Nov 12, 2024

Requires CF grid mapping on the target dataset, otherwise nothing is projected

  • Project query based on cf coordinates
  • Selection tests
  • Update README
  • Output projection
  • Plugin test

cc @dcherian

tests/test_select.py Outdated Show resolved Hide resolved
@mpiannucci mpiannucci marked this pull request as ready for review November 15, 2024 19:27
@mpiannucci
Copy link
Contributor Author

This is ready for a review as a first implementation

tests/test_cf_router.py Outdated Show resolved Hide resolved
tests/test_cf_router.py Outdated Show resolved Hide resolved
tests/test_select.py Outdated Show resolved Hide resolved
always_xy=True,
)

# TODO: Handle rotated pole
Copy link
Contributor

Choose a reason for hiding this comment

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

i thought we figured this out.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This only matters if the user has input a rotated coord system as the target coordinate system. Which i may be comfortable ignoring for now...

Copy link

codecov bot commented Nov 15, 2024

Codecov Report

Attention: Patch coverage is 87.95181% with 10 lines in your changes missing coverage. Please review.

Project coverage is 86.66%. Comparing base (434d6b9) to head (501417b).
Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
xpublish_edr/plugin.py 60.00% 6 Missing ⚠️
xpublish_edr/geometry/common.py 94.00% 3 Missing ⚠️
xpublish_edr/geometry/area.py 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #58      +/-   ##
==========================================
+ Coverage   79.02%   86.66%   +7.64%     
==========================================
  Files           6       11       +5     
  Lines         205      390     +185     
==========================================
+ Hits          162      338     +176     
- Misses         43       52       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@abkfenris abkfenris left a comment

Choose a reason for hiding this comment

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

Starting to really dig into the fancy stuff!

@mpiannucci mpiannucci merged commit 04affad into main Nov 15, 2024
23 checks passed
@mpiannucci mpiannucci deleted the matt/crs-projection branch November 15, 2024 22:11
@dcherian
Copy link
Contributor

dcherian commented Nov 15, 2024

Starting to really dig into the fancy stuff!

image

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.

3 participants