Skip to content

Commit

Permalink
Move AreaDefinition.from_cf() PROJ warning suppression to Pyresample
Browse files Browse the repository at this point in the history
  • Loading branch information
pnuu committed Dec 14, 2023
1 parent d0993fd commit 2da1840
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions satpy/readers/satpy_cf_nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,15 +318,8 @@ def get_dataset(self, ds_id, ds_info):

def get_area_def(self, dataset_id):
"""Get area definition from CF complient netcdf."""
import warnings

try:
with warnings.catch_warnings():
warnings.filterwarnings("ignore",
message=r"You will likely lose important projection information",
category=UserWarning)
# FIXME: This should be silenced in Pyresample
area = AreaDefinition.from_cf(self.filename)
area = AreaDefinition.from_cf(self.filename)
return area
except ValueError:
# No CF compliant projection information was found in the netcdf file or
Expand Down

0 comments on commit 2da1840

Please sign in to comment.