-
Notifications
You must be signed in to change notification settings - Fork 416
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
Derivatives & map factors #2743
Merged
Merged
Changes from all commits
Commits
Show all changes
83 commits
Select commit
Hold shift + click to select a range
9473dfd
Mockup/draft implementation of using a projection-correct vector deri…
jthielen 391a7c2
Minimum commit for vorticity+xarray testing
dcamron e17c2db
Provide some test drafts and fixtures
dcamron 7c4ada2
Improve agreement with GEMPAK
dopplershift 7fc8ae8
Fix logic error determining when to calculate factors
dopplershift 14dd8c3
Fix generation of scale arrays to produce DataArrays
dopplershift 4550661
Update test values for new computation
dopplershift c3b8bc5
Refactor eliminate the need for unused function arguments
dopplershift 5d616d5
Adjust sign in correction
dopplershift 538bc6f
Consolidate check on dimensions
dopplershift fc59a21
Add test for vorticity on geographic grid
dopplershift 080341e
Dynamically update function signature and docstrings
dopplershift 0e7781c
Fix up divergence test and add another
dopplershift 5da1800
Update deformation calculations using _vector_derivative
dopplershift cdca1a9
Remove unused GFS global dataset fixture
dopplershift 8ae745d
Clean up some flake8 warnings
dopplershift dbab1ff
Update absolute_vorticity for proper vector derivative handling
dopplershift e7bd0a1
Fix up some ordering in function docstrings
dopplershift f8f9890
Make sure all newly added function arguments are kw-only
dopplershift e22b8a8
Remove unneeded comment
dopplershift cac5334
Remove unneeded test fixtures
dopplershift 0940bee
Fix spelling
dopplershift b55ba9d
Fix up lat/lon handling to allow proper xarray broadcasting
dopplershift 8b28b9b
Fix numpy handling broken by previous commit
dopplershift 848d4b7
Add geospatial gradient
dcamron 75529ff
Update frontogenesis for spatial calc
dcamron 21de52c
Update q_vector for spatial calc
dcamron 5b71230
Update geostrophic_wind for spatial calc
dcamron 36ae749
Update ageostrophic_wind for spatial
dcamron 648ddbd
Update advection for spatial calc
dcamron 38389dd
Add z-x "cross-sections" test for advection
dcamron 83a364e
Update inertial_advective_wind for spatial calc
dcamron 9fdba53
Update baroclinic pv for spatial calc
dcamron f11000d
Add spatial+4d test for baroclinic pv
dcamron 1b9924e
Remove unused gradient import
dcamron 4d267b6
Fix grid coordinates for non-lat/lon case
dopplershift b0fabed
Fix up coordinate assignment for p and m scale arrays
dopplershift d8488dd
Clean up
dopplershift 0b2ffb6
Remove new-style type hint
dopplershift 4ea11af
DOC: Add parallel/meridional scales to docstrings
dopplershift b0dace8
Update potential_vorticity_barotropic for new derivatives
dopplershift d2d71ab
Remove unused import of add_grid_arguments_from_xarray
dopplershift 094ced1
Add vector_derivative and geospatial gradient to func table
dopplershift 50bd892
Docstring improvements
dopplershift 58e775a
Add parametrized geospatial_gradient test
dcamron c2d5623
Simplify casting scale to xarray
dopplershift 7cc5c12
Assume a lat/lon PyPROJ CRS for 1D lat/lon coords
dopplershift 8a770ae
Assume a CRS for 1D lat/lon when finding dx/dy
dopplershift 5c58496
Add test for projected deltas at pole
dcamron bf78ebd
Update error message
dopplershift e9cd4b6
Fix reference to pyproj.crs.CRS
dopplershift 358e0ee
Fix up some docstring errors
dopplershift 129d7e8
Update test values based on new implementation
dopplershift a55bc8e
Bump minimum PyPROJ to 2.6 for get_factors()
dopplershift 12908f6
Fix u-first behavior of geospatial_gradient
dcamron 0bcc445
Fix up absolute_vorticity docstring
dopplershift 041e0a6
Reduce code duplication using a fixture
dopplershift 49a9376
Move geog_data fixture to conftest
dopplershift 3323cd1
Bump PyProj minimum to 2.6.1
dopplershift 306101f
Update see also
dcamron 4288e7a
Flatten vector_derivative output
dcamron 03cdccd
Add preprocessing decorators
dcamron bf1ae26
Add geospatial_laplacian
dcamron 34aca8a
Simplify test to use fixture arrays
dcamron a61224e
Add test for geospatial_laplacian
dcamron 3b125ce
Add geospatial_laplacian to doc table
dcamron c869409
Collapse _vector_derivative to public function
dcamron 043775d
Remove add_grid_arguments_from_xarray
dopplershift 2c13191
Add some more tests for nominal_lat_lon_grid_deltas
dopplershift e735fde
Expand testing for parse_grid_arguments
dopplershift a348461
Add test for parse_grid_arguments with unknown coordinates
dopplershift 6b9b7aa
Remove unused line from test
dopplershift 3741258
Use correct wrapping syntax
dcamron 0c839c9
Add test for geospatial_gradient return_only
dcamron a585e4a
Add test for vector_derivative return_only
dcamron 287b942
Expand test docstring placeholder
dcamron e31427a
Add test for unknown dimensions
dopplershift de5872e
Add xarray vertical advection test
dcamron 79b258a
Remove unnecessary dict construction
dcamron f4bbd69
Rename units in vertical advection test
dcamron 74c6008
Add advection escape in dz parsing
dcamron 55e0132
Test 1-d vertical advection with xarray
dcamron f963218
Fix test for minimum xarray
dcamron File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check notice
Code scanning / CodeQL
Cyclic import