Skip to content

Commit 086328f

Browse files
michaelavskwadrat
andauthored
Merge Develop Into Main (NCAR#165)
* proj4 formatting update (NCAR#146) * units=hPa is used in /def get_slp():/ * Update Mercator projection attributes (NCAR#163) * Update Mercator projection attributes * remove empty test_mercator file * CI issues (NCAR#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 <ciri@ciri.pl>
1 parent 41034cd commit 086328f

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
os: [ "ubuntu-latest", "macos-latest"]
23-
python-version: [ "3.6", "3.7", "3.8", "3.9" ]
23+
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
2424

2525
steps:
2626
- name: Cancel previous runs
27-
uses: styfle/cancel-workflow-action@0.9.0
27+
uses: styfle/cancel-workflow-action@0.9.1
2828
with:
2929
access_token: ${{ github.token }}
3030
- name: Checkout

conda_recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set version = "1.3.2.6" %}
1+
{% set version = "1.3.3" %}
22

33
package:
44
name: wrf-python

src/wrf/g_slp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def get_slp(wrfin, timeidx=0, method="cat", squeeze=True,
6363
6464
units (:obj:`str`): The desired units. Refer to the :meth:`getvar`
6565
product table for a list of available units for 'slp'. Default
66-
is 'Pa'.
66+
is 'hPa'.
6767
6868
Returns:
6969

src/wrf/projection.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,9 @@ def __init__(self, central_longitude=0.0,
7676
else:
7777
xlimits[0] = -xlimits[0]
7878

79-
self._xlimits = tuple(xlimits)
80-
self._ylimits = tuple(limits[..., 1])
81-
8279
# Compatibility with cartopy >= 0.17
83-
self._x_limits = self._xlimits
84-
self._y_limits = self._ylimits
80+
self._x_limits = tuple(xlimits)
81+
self._y_limits = tuple(limits[..., 1])
8582

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

@@ -824,7 +821,7 @@ def _cartopy(self):
824821

825822
def _proj4(self):
826823
_proj4 = ("+proj=stere +units=m +a={} +b={} "
827-
"+lat0={} +lon_0={} +lat_ts={} +nadgrids=@null".format(
824+
"+lat_0={} +lon_0={} +lat_ts={} +nadgrids=@null".format(
828825
Constants.WRF_EARTH_RADIUS,
829826
Constants.WRF_EARTH_RADIUS,
830827
self._hemi,

0 commit comments

Comments
 (0)