Skip to content

Commit

Permalink
updated warning message to specify the grid
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 committed Jul 10, 2017
1 parent 778fdbb commit 8886a2d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pangaea/xlsm.py
Expand Up @@ -273,7 +273,8 @@ def _raw_coords(self):
def latlon(self):
"""Returns lat,lon arrays
.. warning:: This will always be returned with [0,0] as Northeast and [-1,-1] as Southwest.
.. warning:: The grids always be returned with [0,0]
as Northeast and [-1,-1] as Southwest.
"""
if 'MAP_PROJ' in self._obj.attrs:
lat, lon = wrf.latlon_coords(self._obj, as_np=True)
Expand Down Expand Up @@ -302,7 +303,8 @@ def latlon(self):
def coords(self):
"""Returns y, x coordinate arrays
.. warning:: This will always be returned with [0,0] as Northeast and [-1,-1] as Southwest.
.. warning:: The grids always be returned with [0,0]
as Northeast and [-1,-1] as Southwest.
"""
if not self.coords_projected:
lat, lon = self.latlon
Expand Down Expand Up @@ -413,7 +415,8 @@ def getvar(self, variable,
calc_4d_dim=None):
"""Get variable from model with subset options.
.. warning:: This will always be returned with [0,0] as Northeast and [-1,-1] as Southwest.
.. warning:: The grids will always be returned with [0,0]
as Northeast and [-1,-1] as Southwest.
Parameters
----------
Expand Down

0 comments on commit 8886a2d

Please sign in to comment.