Skip to content

Commit

Permalink
Fix for projections using a round earth (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpvginde authored Aug 16, 2023
1 parent a9d8f59 commit 8dca14a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pysteps/visualization/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ def proj4_to_cartopy(proj4str):
proj_dict["lat_1"],
proj_dict["lat_2"],
)
if "R" in proj_dict.keys():
globe_kwargs["semimajor_axis"] = proj_dict["R"]
globe_kwargs["semiminor_axis"] = proj_dict["R"]

if globe_kwargs:
globe = ccrs.Globe(**globe_kwargs)
Expand Down

0 comments on commit 8dca14a

Please sign in to comment.