I'm using basemap to plot a dataset* that has longitude values like so: lon = [0, 2, 4, ..., 356, 358]
I'd like to use Basemap.shiftgrid to transform the longitudes and data to the -180, 180 interval, but I get 'ValueError, cyclic point not included' since 360 isn't among the longitudes. Attached is a version of shiftgrid that attempts to handle the non-cyclic case. There are pseudo-unit-tests that demonstrate the cyclic and non-cyclic case for a 180 degree shift. Thanks, Eric *SST anomalies from http://nomads.ncdc.noaa.gov/thredds/dodsC/ersstv3Agg
shiftgrid.py
Description: Binary data
------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference
_______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel