<p><b>mhoffman@lanl.gov</b> 2013-01-31 23:19:48 -0700 (Thu, 31 Jan 2013)</p><p>BRANCH COMMIT - land ice<br>
Minor updates to viz scripts.<br>
</p><hr noshade><pre><font color="gray">Modified: branches/land_ice_projects/grid_tools/animate_mpas_field.py
===================================================================
--- branches/land_ice_projects/grid_tools/animate_mpas_field.py        2013-01-31 21:37:47 UTC (rev 2408)
+++ branches/land_ice_projects/grid_tools/animate_mpas_field.py        2013-02-01 06:19:48 UTC (rev 2409)
@@ -125,6 +125,7 @@
 markersize = 70
 markershape = 'h'
 
+t=0
 plt.scatter(xCell[:], yCell[:], markersize, var_slice[0,:], marker=markershape, edgecolors='none', vmin=minval, vmax=maxval)
 plt.colorbar()
 if options.mask:
@@ -133,7 +134,7 @@
 plt.title( plottitle + ' at time '+ xtime[0,:].tostring().strip()  )
 plt.draw()
 if options.saveimages:
-        plotname =  varname + '.000.'  + options.filename + '.png' 
+        plotname =  varname + '.' + '{0:04d}'.format(t) + '.'  + options.filename + '.png' 
         plt.savefig(plotname)
         print 'Saved plot as ' + plotname
 

Modified: branches/land_ice_projects/grid_tools/plot_mpas_field.py
===================================================================
--- branches/land_ice_projects/grid_tools/plot_mpas_field.py        2013-01-31 21:37:47 UTC (rev 2408)
+++ branches/land_ice_projects/grid_tools/plot_mpas_field.py        2013-02-01 06:19:48 UTC (rev 2409)
@@ -136,7 +136,7 @@
 print '** Beginning to create plot.'
 fig = plt.figure(1, facecolor='w')
 ax = fig.add_subplot(111, aspect='equal')
-plt.scatter(xCell[:], yCell[:], 60, var_slice, marker='h', edgecolors='none', vmin=minval, vmax=maxval)
+plt.scatter(x[:], y[:], 60, var_slice, marker='h', edgecolors='none', vmin=minval, vmax=maxval)
 plt.colorbar()
 plt.title( plottitle )
 plt.draw()

</font>
</pre>