Skip to content

Commit

Permalink
refactor: import WGS parameters from cartopy
Browse files Browse the repository at this point in the history
  • Loading branch information
BENR0 committed Jun 14, 2024
1 parent d13528d commit e16203a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pyresample/utils/cartopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
import cartopy.crs as ccrs
import shapely.geometry as sgeom

WGS84_SEMIMAJOR_AXIS = 6378137.0
WGS84_SEMIMINOR_AXIS = 6356752.3142


class Projection(ccrs.Projection):
"""Flexible generic Projection with optionally specified bounds."""
Expand Down Expand Up @@ -81,8 +78,8 @@ def __init__(self,
satellite_height = 35785831
false_easting = 0
false_northing = 0
a = float(WGS84_SEMIMAJOR_AXIS)
b = float(WGS84_SEMIMINOR_AXIS)
a = float(ccrs.WGS84_SEMIMAJOR_AXIS)
b = float(ccrs.WGS84_SEMIMINOR_AXIS)
h = float(satellite_height)

# To find the bound we trace around where the line from the satellite
Expand Down

0 comments on commit e16203a

Please sign in to comment.