Skip to content

Commit 81c4ee4

Browse files
committed
add depreciation warning
1 parent 351e3de commit 81c4ee4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

goes2go/tools.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from shapely.geometry import Point, Polygon
2121

2222

23+
# TODO: Remove this someday
2324
def field_of_view(G, resolution=60, reduce_abi_fov=0.06):
2425
"""
2526
Create a field-of-view polygon for the GOES data.
@@ -59,8 +60,11 @@ def field_of_view(G, resolution=60, reduce_abi_fov=0.06):
5960
crs is the cartopy coordinate reference system for the instrument
6061
"""
6162
warnings.warn(
62-
"DEPRECIATION. Use the FOV accessor instead `G.FOV.full_disk` or `G.FOV.domain`"
63-
)
63+
"Use the FOV accessor instead `G.FOV.full_disk` or `G.FOV.domain`",
64+
DeprecationWarning,
65+
stacklevel=2,
66+
)
67+
6468
if G.title.startswith("ABI"):
6569
globe_kwargs = dict(
6670
semimajor_axis=G.goes_imager_projection.semi_major_axis,

0 commit comments

Comments
 (0)