Browse Source

Fixed formatting issues and typos with vertcros and interpline, and fixed some bogus references in some computation routines.

main
Bill Ladwig 8 years ago
parent
commit
cf7286294d
  1. 8
      src/wrf/computation.py
  2. 6
      src/wrf/interp.py

8
src/wrf/computation.py

@ -589,7 +589,7 @@ def uvmet(u, v, lat, lon, cen_long, cone, meta=True, units="m s-1"): @@ -589,7 +589,7 @@ def uvmet(u, v, lat, lon, cen_long, cone, meta=True, units="m s-1"):
unstaggered, but must be at least two dimensions. If staggered,
the rightmost dimensions are south_north x west east.
IF staggered, the rightmost dimensions are south_north_stag x
If staggered, the rightmost dimensions are south_north_stag x
west_east.
lat (:class:`xarray.DataArray` or :class:`numpy.ndarray`): The
@ -630,7 +630,7 @@ def uvmet(u, v, lat, lon, cen_long, cone, meta=True, units="m s-1"): @@ -630,7 +630,7 @@ def uvmet(u, v, lat, lon, cen_long, cone, meta=True, units="m s-1"):
cen_long (:obj:`float`): The standard longitude for the map projection.
cone (:obj:`float`): The cone factor used for the map project. IF the
cone (:obj:`float`): The cone factor used for the map project. If the
projection is not a conic projection, the *cone* is simply 1.0.
For conic projections, the cone factor is given by:
@ -1093,7 +1093,7 @@ def ctt(pres_hpa, tkel, qv, qcld, height, terrain, qice=None, meta=True, @@ -1093,7 +1093,7 @@ def ctt(pres_hpa, tkel, qv, qcld, height, terrain, qice=None, meta=True,
See Also:
:meth:`wrf.getvar`, :meth:`wrf.cfrac`
:meth:`wrf.getvar`, :meth:`wrf.cloudfrac`
"""
@ -1185,7 +1185,7 @@ def dbz(pres, tkel, qv, qr, qs=None, qg=None, use_varint=False, @@ -1185,7 +1185,7 @@ def dbz(pres, tkel, qv, qr, qs=None, qg=None, use_varint=False,
See Also:
:meth:`wrf.getvar`, :meth:`wrf.cfrac`
:meth:`wrf.getvar`
"""

6
src/wrf/interp.py

@ -151,7 +151,7 @@ def vertcross(field3d, vert, levels=None, missing=Constants.DEFAULT_FILL, @@ -151,7 +151,7 @@ def vertcross(field3d, vert, levels=None, missing=Constants.DEFAULT_FILL,
stagger (:obj:`str`): If using latitude, longitude coordinate pairs
for *start_point*, *end_point*, or *pivot_point*,
set the appropriate grid staggering type for *field2d*. By default,
set the appropriate grid staggering type for *field3d*. By default,
the mass grid is used. The options are:
- 'm': Use the mass grid (default).
@ -165,7 +165,7 @@ def vertcross(field3d, vert, levels=None, missing=Constants.DEFAULT_FILL, @@ -165,7 +165,7 @@ def vertcross(field3d, vert, levels=None, missing=Constants.DEFAULT_FILL,
coordinates, and must be specified if *wrfin* is None. Default
is None.
pivot_point (:class`wrf.CoordPair`, optional): A coordinate pair for
pivot_point (:class:`wrf.CoordPair`, optional): A coordinate pair for
the pivot point, which indicates the location through which
the plane will pass. Must also specify *angle*. The coordinate
pair can be in x,y grid coordinates or latitude, longitude
@ -331,7 +331,7 @@ def interpline(field2d, pivot_point=None, @@ -331,7 +331,7 @@ def interpline(field2d, pivot_point=None,
not be used when working with x,y coordinates. Default
is None.
pivot_point (:class`wrf.CoordPair`, optional): A coordinate pair for
pivot_point (:class:`wrf.CoordPair`, optional): A coordinate pair for
the pivot point, which indicates the location through which
the plane will pass. Must also specify *angle*. The coordinate
pair can be in x,y grid coordinates or latitude, longitude

Loading…
Cancel
Save