Skip to content

Commit

Permalink
Fix for projections using a round earth
Browse files Browse the repository at this point in the history
  • Loading branch information
mpvginde committed Aug 8, 2023
1 parent 57ece43 commit 8856d5c
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"]

Check warning on line 175 in pysteps/visualization/utils.py

View check run for this annotation

Codecov / codecov/patch

pysteps/visualization/utils.py#L174-L175

Added lines #L174 - L175 were not covered by tests

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

0 comments on commit 8856d5c

Please sign in to comment.