Skip to content

Commit

Permalink
Merge main and simplify change
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiggi committed Mar 14, 2023
1 parent 03dfa7d commit be76c77
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions satpy/writers/cf_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,10 +735,7 @@ def _try_to_get_crs(new_data):
if "area" in new_data.attrs:
if isinstance(new_data.attrs["area"], AreaDefinition):
return new_data.attrs["area"].crs
elif isinstance(new_data.attrs["area"], SwathDefinition):
pass # This is just used to avoid log a warning for SwathDefinition
else:
# at least one test case passes an area of type str
if not isinstance(new_data.attrs["area"], SwathDefinition):
logger.warning(
f"Could not tell CRS from area of type {type(new_data.attrs['area']).__name__:s}. "
"Assuming projected CRS.")
Expand Down

0 comments on commit be76c77

Please sign in to comment.