Closed mpvginde closed 1 year ago
Patch coverage: 33.33%
and project coverage change: -0.02%
:warning:
Comparison is base (
57ece43
) 83.34% compared to head (8856d5c
) 83.33%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hi @mpvginde thanks for the contribution! @pulkkins do you want to take this?
Some projections use a spherical earth. This is indicated in the proj4-string by either
the
+R=...
identifier orby setting the
+a=
and+b=
equal.In both cases the
parse_proj4_string
returns a dict with theR
-key, but this key is not checked byproj4_to_cartopy
resulting in the default WGS84 globe for the cartopy CRS, giving small differences in the locations of the gridpoints.This is now fixed by explicitly checking for the
R
-key inproj4_to_cartopy
and defining the correct globe keywords.I needed this to take advantage of the plot_precip_fields function for plotting precipitation coming from the ALARO NWP model.