-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding method to calculate delta pressure (#338)
* first pass at calculating delta pressure * linting * much better! flattened arrays, warnings, and docstrings * fix warnings (had reverse logic), preserve Xarray attributes * Create test_deltapressure * Update calc_deltapressure.py * Update and rename test_deltapressure to test_deltapressure.py * write tests * pre-commit * pre-commit * fix import * fix imports again * test class inherits from TestCase * wrong py name * change plev to array of floats * fix or remove some tests * Update __init__.py * missing sys import * move to meteorology * tests passing exit() :q '' * add new section and PR functions to documentation * Update src/geocat/comp/meteorology.py Co-authored-by: Anissa Zacharias <[email protected]> * Update src/geocat/comp/meteorology.py Co-authored-by: Anissa Zacharias <[email protected]> * rename methods and fix docstring autolinks * remove conversion to numpy * pre-commit * attempt at docstring for dpres_plev wrapper * dpres_plev docs * attempt at fixing links and docstring * Quick formatting fox * make doc string variable hidden * add line break to wrapper docstring * Update src/geocat/comp/meteorology.py Co-authored-by: Anissa Zacharias <[email protected]> * slash going wrong way * annotation in wrapper * remove unnecessary checks for nan pressure or dims * rm check for dims and nan * Update test/test_meteorology.py Co-authored-by: Heather Craker <[email protected]> * Update src/geocat/comp/__init__.py Co-authored-by: Heather Craker <[email protected]> * Update test/test_meteorology.py * rm test for 4d --------- Co-authored-by: anissa111 <[email protected]> Co-authored-by: Heather Craker <[email protected]>
- Loading branch information
1 parent
3f56f83
commit 46d4044
Showing
5 changed files
with
246 additions
and
9 deletions.
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
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