Skip to content

Commit

Permalink
add depreciation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
blaylockbk committed Apr 10, 2023
1 parent 351e3de commit 81c4ee4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions goes2go/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from shapely.geometry import Point, Polygon


# TODO: Remove this someday
def field_of_view(G, resolution=60, reduce_abi_fov=0.06):
"""
Create a field-of-view polygon for the GOES data.
Expand Down Expand Up @@ -59,8 +60,11 @@ def field_of_view(G, resolution=60, reduce_abi_fov=0.06):
crs is the cartopy coordinate reference system for the instrument
"""
warnings.warn(
"DEPRECIATION. Use the FOV accessor instead `G.FOV.full_disk` or `G.FOV.domain`"
)
"Use the FOV accessor instead `G.FOV.full_disk` or `G.FOV.domain`",
DeprecationWarning,
stacklevel=2,
)

if G.title.startswith("ABI"):
globe_kwargs = dict(
semimajor_axis=G.goes_imager_projection.semi_major_axis,
Expand Down

0 comments on commit 81c4ee4

Please sign in to comment.