<p><b>mhoffman@lanl.gov</b> 2012-06-15 09:36:08 -0600 (Fri, 15 Jun 2012)</p><p>BRANCH COMMIT --land ice<br>
A few minor updates to the python script for plotting MPAS output fields.<br>
</p><hr noshade><pre><font color="gray">Modified: branches/land_ice_projects/grid_tools/plot_mpas_field.py
===================================================================
--- branches/land_ice_projects/grid_tools/plot_mpas_field.py        2012-06-15 05:13:30 UTC (rev 1983)
+++ branches/land_ice_projects/grid_tools/plot_mpas_field.py        2012-06-15 15:36:08 UTC (rev 1984)
@@ -19,12 +19,13 @@
       raise ImportError('No netCDF module found')
 
 
+print &quot;** Gathering information.  (Invoke with 'python plot_mpas_field.py --help' for more details. All arguments are optional)&quot;
 parser = OptionParser()
-parser.add_option(&quot;-f&quot;, &quot;--file&quot;, dest=&quot;filename&quot;, help=&quot;file to visualize&quot;, metavar=&quot;FILE&quot;)
-parser.add_option(&quot;-v&quot;, &quot;--var&quot;, dest=&quot;variable&quot;, help=&quot;variable to visualize; use 'uMag' for velocity magnitude&quot;, metavar=&quot;VAR&quot;)
-parser.add_option(&quot;-t&quot;, &quot;--time&quot;, dest=&quot;time&quot;, help=&quot;time step to visualize (0 based)&quot;, metavar=&quot;TIME&quot;)
-parser.add_option(&quot;-l&quot;, &quot;--level&quot;, dest=&quot;vertlevel&quot;, help=&quot;vertical level to visualize (0 based)&quot;, metavar=&quot;LEVEL&quot;)
-parser.add_option(&quot;-s&quot;, &quot;--save&quot;, action=&quot;store_true&quot;, dest=&quot;saveimages&quot;, help=&quot;include this flag to save plots as files&quot;)
+parser.add_option(&quot;-f&quot;, &quot;--file&quot;, dest=&quot;filename&quot;, help=&quot;file to visualize; default: output.nc&quot;, metavar=&quot;FILE&quot;)
+parser.add_option(&quot;-v&quot;, &quot;--var&quot;, dest=&quot;variable&quot;, help=&quot;variable to visualize; use 'uMag' for velocity magnitude; default: thickness&quot;, metavar=&quot;VAR&quot;)
+parser.add_option(&quot;-t&quot;, &quot;--time&quot;, dest=&quot;time&quot;, help=&quot;time step to visualize (0 based), default: 0&quot;, metavar=&quot;TIME&quot;)
+parser.add_option(&quot;-l&quot;, &quot;--level&quot;, dest=&quot;vertlevel&quot;, help=&quot;vertical level to visualize (0 based); default: 0&quot;, metavar=&quot;LEVEL&quot;)
+parser.add_option(&quot;-s&quot;, &quot;--save&quot;, action=&quot;store_true&quot;, dest=&quot;saveimages&quot;, help=&quot;include this flag to save plot as .png file&quot;)
 parser.add_option(&quot;-n&quot;, &quot;--nodisp&quot;, action=&quot;store_true&quot;, dest=&quot;hidefigs&quot;, help=&quot;include this flag to not display plots (usually used with -s)&quot;)
 parser.add_option(&quot;-x&quot;, &quot;--max&quot;, dest=&quot;maximum&quot;, help=&quot;maximum for color bar&quot;, metavar=&quot;MAX&quot;)
 parser.add_option(&quot;-m&quot;, &quot;--min&quot;, dest=&quot;minimum&quot;, help=&quot;minimum for color bar&quot;, metavar=&quot;MIN&quot;)
@@ -32,7 +33,6 @@
 
 options, args = parser.parse_args()
 
-print &quot;** Gathering information.  (Invoke with 'python plot_mpas_field.py --help' for more details.)&quot;
 if not options.filename:
         print &quot;No filename provided. Using output.nc.&quot;
         options.filename = &quot;output.nc&quot;
@@ -61,7 +61,7 @@
 f = NetCDFFile(options.filename,'r')
 
 # Get grid stuff
-times = f.variables['xtime']
+#times = f.variables['xtime']  # Not needed unless trying to print actual time stamp
 xCell = f.variables['xCell']
 yCell = f.variables['yCell']
 xEdge = f.variables['xEdge']

</font>
</pre>