Skip to content

Commit 8dca14a

Browse files
authored
Fix for projections using a round earth (#336)
1 parent a9d8f59 commit 8dca14a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pysteps/visualization/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ def proj4_to_cartopy(proj4str):
170170
proj_dict["lat_1"],
171171
proj_dict["lat_2"],
172172
)
173+
if "R" in proj_dict.keys():
174+
globe_kwargs["semimajor_axis"] = proj_dict["R"]
175+
globe_kwargs["semiminor_axis"] = proj_dict["R"]
173176

174177
if globe_kwargs:
175178
globe = ccrs.Globe(**globe_kwargs)

0 commit comments

Comments
 (0)