You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
To get a south polar stereo map from lat = -40 to lat = -90, you must call gv.set_map_boundary(ax, [-180, 180], [ -40, 90])
which is conter-intuitive
@tingvan it sounds like you're seeing something different with the attribute error. Could you create a new issue with a minimal, reproducible, example to replicate the problem you're seeing. It would be great to see the imports, relevant code snippet, and Python environment info (conda list should give you this information) to help diagnose the problem.
We're looking into the original issue, i.e. making the map_boundary function more intuitive for use with south polar stereo projections.
As mentioned in the original issue, the following code achieves the desired outcome, but the required map_boundary settings are not intuitive:
import geocat.viz as gv
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import cartopy.feature as cfeature
fig = plt.figure(figsize=(8.5,11))
projection = ccrs.SouthPolarStereo()
ax = plt.axes(projection=projection)
ax.add_feature(cfeature.LAND, color='silver',zorder=1)
gv.set_map_boundary(ax, [-180, 180], [ -40, 90])
plt.show()
Describe the bug
To get a south polar stereo map from lat = -40 to lat = -90, you must call
gv.set_map_boundary(ax, [-180, 180], [ -40, 90])
which is conter-intuitive
To Reproduce
Expected behavior
Intuitive values for latitudes range should be
gv.set_map_boundary(ax, [-180, 180], [ -90,-40])
but this produces a blank map
And, by the way, the pole latitiude could be implicit for Polar Stereo projections!
OS:
see #210
Environment
see #210
The text was updated successfully, but these errors were encountered: