Skip to content

Commit

Permalink
Merge Develop Into Main (#165)
Browse files Browse the repository at this point in the history
* proj4 formatting update (#146)

* units=hPa is used in /def get_slp():/

* Update Mercator projection attributes (#163)

* Update Mercator projection attributes

* remove empty test_mercator file

* CI issues (#164)

* CI issues

* Add build env path for Linux.yml

* other updates to ci file

* format more closely to uxarray/comp

* Undo some changes, add python version

* Revert to previous version for 'Run tests'

* Update version in conda recipe

Co-authored-by: Piotr Kasprzyk <[email protected]>
  • Loading branch information
michaelavs and kwadrat authored Mar 16, 2022
1 parent 41034cd commit 086328f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
fail-fast: false
matrix:
os: [ "ubuntu-latest", "macos-latest"]
python-version: [ "3.6", "3.7", "3.8", "3.9" ]
python-version: [ "3.7", "3.8", "3.9", "3.10" ]

steps:
- name: Cancel previous runs
uses: styfle/[email protected].0
uses: styfle/[email protected].1
with:
access_token: ${{ github.token }}
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion conda_recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "1.3.2.6" %}
{% set version = "1.3.3" %}

package:
name: wrf-python
Expand Down
2 changes: 1 addition & 1 deletion src/wrf/g_slp.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_slp(wrfin, timeidx=0, method="cat", squeeze=True,
units (:obj:`str`): The desired units. Refer to the :meth:`getvar`
product table for a list of available units for 'slp'. Default
is 'Pa'.
is 'hPa'.
Returns:
Expand Down
9 changes: 3 additions & 6 deletions src/wrf/projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,9 @@ def __init__(self, central_longitude=0.0,
else:
xlimits[0] = -xlimits[0]

self._xlimits = tuple(xlimits)
self._ylimits = tuple(limits[..., 1])

# Compatibility with cartopy >= 0.17
self._x_limits = self._xlimits
self._y_limits = self._ylimits
self._x_limits = tuple(xlimits)
self._y_limits = tuple(limits[..., 1])

self._threshold = np.diff(self.x_limits)[0] / 720

Expand Down Expand Up @@ -824,7 +821,7 @@ def _cartopy(self):

def _proj4(self):
_proj4 = ("+proj=stere +units=m +a={} +b={} "
"+lat0={} +lon_0={} +lat_ts={} +nadgrids=@null".format(
"+lat_0={} +lon_0={} +lat_ts={} +nadgrids=@null".format(
Constants.WRF_EARTH_RADIUS,
Constants.WRF_EARTH_RADIUS,
self._hemi,
Expand Down

0 comments on commit 086328f

Please sign in to comment.