On Tue, Apr 19, 2011 at 3:24 PM, SMITH, JONATHAN WYNN. (GSFC-6133) <span dir="ltr">&lt;<a href="mailto:jonathan.smith@nasa.gov">jonathan.smith@nasa.gov</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">Hello grads users,</p><p class="MsoNormal"> </p><p class="MsoNormal">I want to use the gxyat to put hundreds of hourly images into one an animated gif or png file.  How do I do this?  I see gxyat in grad’s bin directory?  I want to avoid having to copy and paste a thousand frames one at a time into software.</p>
<p class="MsoNormal"> </p></div></div></blockquote><div><br></div><div>The way I do this is to first create a PNG image for each frame (with a script, of course).  Suppose you name your files img-001.png, img-002, .... You then use the ImageMagick &quot;convert utility to create an animated GIF file  with a single command:</div>
<div><br></div><div>% convert -adjoin img-???.png animation.gif</div><div><br></div><div>This will create an animated GIF file called &quot;animation.gif&quot;. There is also something called &quot;animated png&quot;</div>
<div><br></div><div>     <a href="http://animatedpng.com/">http://animatedpng.com/</a></div><div><br></div><div>but as far as I can tell it is not (yet) widely recognized. For displaying animations in websites is preferable to keep the individual PNG files in a separate directory and do some java scripting as to give the user some control on the animation speed, etc. Here is an example:</div>
<div><br></div><div><a href="http://portal.nccs.nasa.gov/cgi-yotc/e540_fp_2d_chem.cgi?region=nps&amp;dtg=2011042312&amp;prod=coclbbae&amp;model=e561&amp;tau=000&amp;&amp;region_old=nps&amp;dtg_old=2011042312&amp;prod_old=coclnbna&amp;model_old=e561&amp;tau_old=000&amp;&amp;loop=1">http://portal.nccs.nasa.gov/cgi-yotc/e540_fp_2d_chem.cgi?region=nps&amp;dtg=2011042312&amp;prod=coclbbae&amp;model=e561&amp;tau=000&amp;&amp;region_old=nps&amp;dtg_old=2011042312&amp;prod_old=coclnbna&amp;model_old=e561&amp;tau_old=000&amp;&amp;loop=1</a> </div>
<div><br></div><div>   Good Luck,</div><div><br></div><div>      Arlindo</div><div><br></div><div><br></div><div><br></div><div>    Arlindo</div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">I tried the following code but was unsuccessful:</p><p class="MsoNormal"> </p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">* B Vs -VTL</span><br>
&#39;reinit&#39;<br>&#39;open /Volumes/JWS_1TB/GRADS_CTL_DAT/NEW/plevs_bb.ctl&#39;<br><br>&#39;set mpdset hires&#39;<br>&#39;set display color white&#39;<br>&#39;run <a href="http://rgbset.gs" target="_blank">rgbset.gs</a>&#39;<br>
<br>&#39;c&#39;<br>&quot;set parea 1 10 1 7.5&quot;<br>&quot;set LON -30 30&quot;<br>&quot;set LAT -15 15&quot;<br>&quot;set LEV 200&quot;<br>&quot;set t 0 167&quot;<br>&#39;set grads off&#39;<br>&#39;set gxout shaded&#39;<br>
&quot;set rgb 24 255 120 120&quot;<br>&quot;set clevs 12 24 36 48 60 72 84 96 108 120 132&quot;<br>&quot;set ccols 9 14 4 11 5 13 3 10 7 12 8 2 24&quot;<br>&#39;d (no+no2)*1000000&#39;<br>&#39;set string 1 l 3&#39;<br>&#39;draw string 7.5 8.0&#39; _analysis<br>
&quot;run <a href="http://cbar.gs" target="_blank">cbar.gs</a>&quot;<br>*&#39;swap&#39;<br>*&quot;set gxout stream&quot;<br>*&quot;d U;V&quot;<br>&#39;draw title BB Run NOx (pptv)\at 200 hPa &#39; _analysis<br>*&#39;printim /Users/jonathanwsmith/WRF_Plots/nox_200/nox_200hPa&#39;timex&#39;.gif x400 y300&#39;<br>
&#39;gxyat -o frame-%02d.png /Users/jonathanwsmith/WRF_Plots/nox_200/nox_200.gx&#39;<br><br></p><p class="MsoNormal">Thanks</p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal">
<b><span style="font-size:12.0pt">Jonathan Wynn Smith</span></b></p><p class="MsoNormal"><i>Student Trainee</i></p><p class="MsoNormal"><u><a href="mailto:jonathan.smith@nasa.gov" target="_blank">jonathan.smith@nasa.gov</a></u></p>
<p class="MsoNormal">NASA-Goddard Space Flight Center</p><p class="MsoNormal">Code 613.3-Atmospheric Chemistry and Dynamics Branch </p><p class="MsoNormal">Greenbelt, MD 20771</p><p class="MsoNormal"><a href="tel:301-614-5956" value="+13016145956" target="_blank">301-614-5956</a></p>
<p class="MsoNormal"> </p><p class="MsoNormal"><i>Doctoral Candidate</i></p><p class="MsoNormal"><a href="mailto:jw_smith@bison.howard.edu" target="_blank">jw_smith@bison.howard.edu</a></p><p class="MsoNormal">Howard University Program in Atmospheric Sciences</p>
<p class="MsoNormal">2355 6th St NW/408 Thirkield Bldg.</p><p class="MsoNormal">Washington, DC 20059</p><p class="MsoNormal"> </p></div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>