Browse Source

Merge pull request #62 from hanschen/develop

Minor clarifications for 'as_int' docstrings
lon0
Bill Ladwig 7 years ago committed by GitHub
parent
commit
ff2f561c51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      src/wrf/g_latlon.py

11
src/wrf/g_latlon.py

@ -365,8 +365,8 @@ def ll_to_xy(wrfin, latitude, longitude, timeidx=0, @@ -365,8 +365,8 @@ def ll_to_xy(wrfin, latitude, longitude, timeidx=0,
- 'v': Use the same staggered grid as the v wind component,
which has a staggered south_north (y) dimension.
as_int (:obj:`bool`): Set to True to return the x,y values as
:obj:`int`, otherwise they will be returned as :obj:`float`.
as_int (:obj:`bool`): Set to False to return the x,y values as
:obj:`float`, otherwise they will be returned as :obj:`int`.
Returns:
:class:`xarray.DataArray` or :class:`numpy.ndarray`: The
@ -421,8 +421,8 @@ def ll_to_xy_proj(latitude, longitude, meta=True, squeeze=True, as_int=True, @@ -421,8 +421,8 @@ def ll_to_xy_proj(latitude, longitude, meta=True, squeeze=True, as_int=True,
return :class:`numpy.ndarray` instead of
:class:`xarray.DataArray`. Default is True.
as_int (:obj:`bool`): Set to True to return the x,y values as
:obj:`int`, otherwise they will be returned as :obj:`float`.
as_int (:obj:`bool`): Set to False to return the x,y values as
:obj:`float`, otherwise they will be returned as :obj:`int`.
map_proj (:obj:`int`): Model projection [1=Lambert Conformal,
2=Polar Stereographic, 3=Mercator, 6=Lat-Lon]. Required.
@ -589,9 +589,6 @@ def xy_to_ll_proj(x, y, meta=True, squeeze=True, map_proj=None, truelat1=None, @@ -589,9 +589,6 @@ def xy_to_ll_proj(x, y, meta=True, squeeze=True, map_proj=None, truelat1=None,
return :class:`numpy.ndarray` instead of
:class:`xarray.DataArray`. Default is True.
as_int (:obj:`bool`): Set to True to return the x,y values as
:obj:`int`, otherwise they will be returned as :obj:`float`.
map_proj (:obj:`int`): Model projection [1=Lambert Conformal,
2=Polar Stereographic, 3=Mercator, 6=Lat-Lon]. Required.

Loading…
Cancel
Save