From: <js...@us...> - 2007-12-03 17:30:49
|
Revision: 4567 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4567&view=rev Author: jswhit Date: 2007-12-03 09:30:46 -0800 (Mon, 03 Dec 2007) Log Message: ----------- update basemap example Modified Paths: -------------- trunk/py4science/examples/basemap5.py trunk/py4science/examples/data/sst.nc trunk/py4science/examples/skel/basemap5_skel.py Modified: trunk/py4science/examples/basemap5.py =================================================================== --- trunk/py4science/examples/basemap5.py 2007-12-03 17:15:06 UTC (rev 4566) +++ trunk/py4science/examples/basemap5.py 2007-12-03 17:30:46 UTC (rev 4567) @@ -4,7 +4,7 @@ # can be a local file, a URL for a remote opendap dataset, # or (if PyNIO is installed) a GRIB or HDF file. ncfile = NetCDFFile('data/sst.nc') -sst = ncfile.variables['analysed_sst'][:] +sst = ncfile.variables['sst'][:] lats = ncfile.variables['lat'][:] lons = ncfile.variables['lon'][:] # create Basemap instance for mollweide projection. Modified: trunk/py4science/examples/data/sst.nc =================================================================== (Binary files differ) Modified: trunk/py4science/examples/skel/basemap5_skel.py =================================================================== --- trunk/py4science/examples/skel/basemap5_skel.py 2007-12-03 17:15:06 UTC (rev 4566) +++ trunk/py4science/examples/skel/basemap5_skel.py 2007-12-03 17:30:46 UTC (rev 4567) @@ -5,12 +5,10 @@ # or (if PyNIO is installed) a GRIB or HDF file. # See http://nomads.ncdc.noaa.gov/ for some NOAA OPenDAP datasets. ncfile = NetCDFFile('data/sst.nc') -sst = ncfile.variables['analysed_sst'][:] -# uncommenting the next two lines will -# produce a very similar plot, but will read -# the data over the web instead of from a local file. +# uncommenting the next line will produce a very similar plot, +# but will read the data over the web instead of from a local file. #ncfile = NetCDFFile('http://nomads.ncdc.noaa.gov:8085/thredds/dodsC/oisst/2007/AVHRR/sst4-navy-eot.20071201.nc') -#sst = ncfile.variables['sst'][:] +sst = ncfile.variables['sst'][:] lats = ncfile.variables['lat'][:] lons = ncfile.variables['lon'][:] # Basemap comes with extra colormaps from Generic Mapping Tools This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |