On Tue, Apr 19, 2011 at 3:24 PM, SMITH, JONATHAN WYNN. (GSFC-6133) <span dir="ltr"><<a href="mailto:jonathan.smith@nasa.gov">jonathan.smith@nasa.gov</a>></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 "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 "animation.gif". There is also something called "animated png"</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&dtg=2011042312&prod=coclbbae&model=e561&tau=000&&region_old=nps&dtg_old=2011042312&prod_old=coclnbna&model_old=e561&tau_old=000&&loop=1">http://portal.nccs.nasa.gov/cgi-yotc/e540_fp_2d_chem.cgi?region=nps&dtg=2011042312&prod=coclbbae&model=e561&tau=000&&region_old=nps&dtg_old=2011042312&prod_old=coclnbna&model_old=e561&tau_old=000&&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:"Times New Roman","serif"">* B Vs -VTL</span><br>
'reinit'<br>'open /Volumes/JWS_1TB/GRADS_CTL_DAT/NEW/plevs_bb.ctl'<br><br>'set mpdset hires'<br>'set display color white'<br>'run <a href="http://rgbset.gs" target="_blank">rgbset.gs</a>'<br>
<br>'c'<br>"set parea 1 10 1 7.5"<br>"set LON -30 30"<br>"set LAT -15 15"<br>"set LEV 200"<br>"set t 0 167"<br>'set grads off'<br>'set gxout shaded'<br>
"set rgb 24 255 120 120"<br>"set clevs 12 24 36 48 60 72 84 96 108 120 132"<br>"set ccols 9 14 4 11 5 13 3 10 7 12 8 2 24"<br>'d (no+no2)*1000000'<br>'set string 1 l 3'<br>'draw string 7.5 8.0' _analysis<br>
"run <a href="http://cbar.gs" target="_blank">cbar.gs</a>"<br>*'swap'<br>*"set gxout stream"<br>*"d U;V"<br>'draw title BB Run NOx (pptv)\at 200 hPa ' _analysis<br>*'printim /Users/jonathanwsmith/WRF_Plots/nox_200/nox_200hPa'timex'.gif x400 y300'<br>
'gxyat -o frame-%02d.png /Users/jonathanwsmith/WRF_Plots/nox_200/nox_200.gx'<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>