DamienIrving / climate-analysis

Code used for the analysis and visualisation of climate data during my PhD
MIT License
40 stars 19 forks source link

Generalise plot_map.py for any input projection #23

Closed DamienIrving closed 9 years ago

DamienIrving commented 9 years ago

I would be nice to be able to specify any input projection (e.g. ccrs.PlateCarree(), ccrs.RotatedPole(260, 20)). To do this I've have to use ax.contourf(transform=proj) or ax.contour(transform=proj) etc instead of iplt or qplt, which assume ccrs.PlateCarree().

As explained here, cartopy can handle input data of any longitude range, so you never have to edit the default central_longitude when specifying the input projection (even if your data go from 0 to 360 as opposed to -180 to 180).