Skip to content

Commit

Permalink
Fix angle_to_direction types
Browse files Browse the repository at this point in the history
  • Loading branch information
zbruick authored and dopplershift committed Sep 30, 2022
1 parent 1e8a0a3 commit aa59ac8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@
('py:class', 'namedtuple'), ('py:class', 'list of tuples'),
('py:class', 'Mapper'), ('py:class', 'All'), ('py:class', 'points'),
('py:obj', '__all__'), ('py:class', 'sequence of ints'),
('py:obj', 'cartopy.crs')]
('py:obj', 'cartopy.crs'), ('py:class', 'iterable of str'),
('py:obj', 'metpy'), ('py:class', "'auto'")]

# Tweak how docs are formatted
napoleon_use_rtype = False
Expand Down
2 changes: 1 addition & 1 deletion docs/userguide/startingguide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ Station Plots
Station plots display surface or upper-air station data in a concise manner. The creation of
these plots is made straightforward with MetPy. MetPy supplies the ability to create each
station plot and place the points on the map. The creation of 2-D cartographic maps, commonly
used in meteorology for observational and model visualization, relies upon the :mod:`CartoPy`
used in meteorology for observational and model visualization, relies upon the :mod:`cartopy`
library. This package handles projections and transforms to make sure your data is plotted in
the correct location.

Expand Down
4 changes: 2 additions & 2 deletions src/metpy/calc/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1383,9 +1383,9 @@ def angle_to_direction(input_angle, full=False, level=3):
Parameters
----------
input_angle : numeric or array-like numeric
input_angle : float or array-like
Angles such as 0, 25, 45, 360, 410, etc.
full : boolean
full : bool
True returns full text (South), False returns abbrieviated text (S)
level : int
Level of detail (3 = N/NNE/NE/ENE/E... 2 = N/NE/E/SE... 1 = N/E/S/W)
Expand Down

0 comments on commit aa59ac8

Please sign in to comment.