From 81c4ee4f5af3d6223b40726b7a83f80b308213d8 Mon Sep 17 00:00:00 2001 From: Brian Blaylock Date: Mon, 10 Apr 2023 19:01:38 +0000 Subject: [PATCH] add depreciation warning --- goes2go/tools.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/goes2go/tools.py b/goes2go/tools.py index d902b76..86413ea 100644 --- a/goes2go/tools.py +++ b/goes2go/tools.py @@ -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. @@ -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,