Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

central longitude for NorthPolarStereo

Tags:

cartopy

I'd like to plot a polar stereographic plot of the Northern Hemisphere with 180 at the bottom of the plot so I can emphasize the Pacific region. I'm using the latest cartopy from git, and can make a polar stereographic plot no problem, but I can't work out how to change which longitude is at the bottom of the plot. I tried setting the longitude extent to [-180, 180] but this doesn't help, and the NorthPolarStereo() doesn't accept any keyword arguments like central_longitude. Is this possible currently?

like image 417
ajdawson Avatar asked Oct 06 '22 11:10

ajdawson


1 Answers

For Cartopy 0.17 and matplotlib 3.1.1 (Python 3.7), I got an error in set_extent() with the above solution.

It seems that set_extent() only works this way:

ax1.set_extent([-180, 180, 0, 90], crs=ccrs.PlateCarree())

ax2.set_extent([-179, 179, 0, 90], crs=ccrs.PlateCarree())

So, the rotated image needs some weird longitude boundaries..

like image 54
fedef Avatar answered Oct 10 '22 03:10

fedef