Revision: 8929 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8929&view=rev Author: jswhit Date: 2011-01-18 22:12:52 +0000 (Tue, 18 Jan 2011)
Log Message: ----------- try to use netcdf4-python Modified Paths: -------------- trunk/toolkits/basemap/examples/pnganim.py Modified: trunk/toolkits/basemap/examples/pnganim.py =================================================================== --- trunk/toolkits/basemap/examples/pnganim.py 2011-01-18 22:10:10 UTC (rev 8928) +++ trunk/toolkits/basemap/examples/pnganim.py 2011-01-18 22:12:52 UTC (rev 8929) @@ -9,7 +9,11 @@ import matplotlib.mlab as mlab import numpy.ma as ma import datetime, sys, time, subprocess -from mpl_toolkits.basemap import Basemap, shiftgrid, NetCDFFile, date2index, num2date +from mpl_toolkits.basemap import Basemap, shiftgrid, date2index, num2date +try: + from netCDF4 import Dataset as NetCDFFile +except: + from mpl_toolkits.basemap import NetCDFFile # times for March 1993 'storm of the century' date1 = datetime.datetime(1993,3,10,0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins