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
{{ message }}
Repository navigation
MapPanel plots correctly with isobars but not isotherms #4192
You found yourself right at an odd Cartopy defaults quirk! By default, the named Natural Earth features from Cartopy are filtered through an "auto scaler" setting their scale from coarse to fine based on the extent of the axes. We mirror this explicitly in MapPanel for our named layers, but the default hard cutoff to go from a medium scale to a coarser one is over 50 deg of lat and lon extent. You'll notice that your temperature image is slightly zoomed out with an extent that, surprise, barely grows larger than that 50 deg/each threshold.
You can verify this by inspecting the extents directly, or just changing your mp.contours values. I tried 9, 15, etc. Or you can just crank up the total number of contours eg mp.contours = 25. Note the extent shrinks and the features pop in. Blame upstream contour autoscaling :)
You can avoid this by either fixing your extent using mp.area, by name ('uslcc' is close here) or by tuple : (lon_left, lon_right, lat_bottom, lat_top); or by passing in features with specific scales to MapPanel.layers, eg
We might look to make the interface to MapPanel.area a bit cleaner, as it was messy when I was playing around trying to pull lon/lat extents from the DataSet. Or we could take an opinionated approach on the feature scaling on our named features. But otherwise call it luck of the draw()!
I'll leave this open a bit in case we decide to open any new issue on those points. Thanks for the clear report as ever.
Hmm, I guess I'm concerned that the extent of the map changes based on the presence or absence of certain contours. I haven't tested this, but I imagine the same plot settings, but at different times, would shift around the map a bit (and therefore cause Canadian provinces to appear or disappear seemingly at random because of the auto-scaler) as the isotherms change from one time to the next. That's not good.
I'm surprised the map changes at all depending on the contours. I had hoped that not specifying MapPanel.area was equivalent to GEMPAK's GAREA=grid, but evidently this is not the case, and that means #4161 really is a feature request (create a new alias MapPanel.area = 'grid' that does exactly what GEMPAK does, that is, show the entire grid, no more, no less, assuming you leave the projection unspecified) rather than just a documentation update.
Activity
dcamron commentedon Nov 3, 2026
You found yourself right at an odd Cartopy defaults quirk! By default, the named Natural Earth features from Cartopy are filtered through an "auto scaler" setting their scale from coarse to fine based on the extent of the axes. We mirror this explicitly in MapPanel for our named layers, but the default hard cutoff to go from a medium scale to a coarser one is over 50 deg of lat and lon extent. You'll notice that your temperature image is slightly zoomed out with an extent that, surprise, barely grows larger than that 50 deg/each threshold.
You can verify this by inspecting the extents directly, or just changing your
mp.contoursvalues. I tried 9, 15, etc. Or you can just crank up the total number of contours egmp.contours = 25. Note the extent shrinks and the features pop in. Blame upstream contour autoscaling :)You can avoid this by either fixing your extent using
mp.area, by name ('uslcc'is close here) or bytuple : (lon_left, lon_right, lat_bottom, lat_top); or by passing in features with specific scales toMapPanel.layers, egWe might look to make the interface to
MapPanel.areaa bit cleaner, as it was messy when I was playing around trying to pull lon/lat extents from the DataSet. Or we could take an opinionated approach on the feature scaling on our named features. But otherwise call it luck of thedraw()!I'll leave this open a bit in case we decide to open any new issue on those points. Thanks for the clear report as ever.
sgdecker commentedon Nov 4, 2026
Hmm, I guess I'm concerned that the extent of the map changes based on the presence or absence of certain contours. I haven't tested this, but I imagine the same plot settings, but at different times, would shift around the map a bit (and therefore cause Canadian provinces to appear or disappear seemingly at random because of the auto-scaler) as the isotherms change from one time to the next. That's not good.
I'm surprised the map changes at all depending on the contours. I had hoped that not specifying
MapPanel.areawas equivalent to GEMPAK's GAREA=grid, but evidently this is not the case, and that means #4161 really is a feature request (create a new aliasMapPanel.area = 'grid'that does exactly what GEMPAK does, that is, show the entire grid, no more, no less, assuming you leave the projection unspecified) rather than just a documentation update.dcamron commentedon Nov 5, 2026
With that captured in the other issue, I'll close this.