[gradsusr] gxyat mulitple file gif animation
Arlindo da Silva
dasilva at alum.mit.edu
Sat Apr 23 21:16:45 EDT 2011
On Tue, Apr 19, 2011 at 3:24 PM, SMITH, JONATHAN WYNN. (GSFC-6133) <
jonathan.smith at nasa.gov> wrote:
> Hello grads users,
>
>
>
> 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.
>
>
>
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:
% convert -adjoin img-???.png animation.gif
This will create an animated GIF file called "animation.gif". There is also
something called "animated png"
http://animatedpng.com/
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:
http://portal.nccs.nasa.gov/cgi-yotc/e540_fp_2d_chem.cgi?region=nps&dtg=2011042312&prod=coclbbae&model=e561&tau=000&®ion_old=nps&dtg_old=2011042312&prod_old=coclnbna&model_old=e561&tau_old=000&&loop=1
Good Luck,
Arlindo
Arlindo
> I tried the following code but was unsuccessful:
>
>
>
> * B Vs -VTL
> 'reinit'
> 'open /Volumes/JWS_1TB/GRADS_CTL_DAT/NEW/plevs_bb.ctl'
>
> 'set mpdset hires'
> 'set display color white'
> 'run rgbset.gs'
>
> 'c'
> "set parea 1 10 1 7.5"
> "set LON -30 30"
> "set LAT -15 15"
> "set LEV 200"
> "set t 0 167"
> 'set grads off'
> 'set gxout shaded'
> "set rgb 24 255 120 120"
> "set clevs 12 24 36 48 60 72 84 96 108 120 132"
> "set ccols 9 14 4 11 5 13 3 10 7 12 8 2 24"
> 'd (no+no2)*1000000'
> 'set string 1 l 3'
> 'draw string 7.5 8.0' _analysis
> "run cbar.gs"
> *'swap'
> *"set gxout stream"
> *"d U;V"
> 'draw title BB Run NOx (pptv)\at 200 hPa ' _analysis
> *'printim /Users/jonathanwsmith/WRF_Plots/nox_200/nox_200hPa'timex'.gif
> x400 y300'
> 'gxyat -o frame-%02d.png
> /Users/jonathanwsmith/WRF_Plots/nox_200/nox_200.gx'
>
> Thanks
>
>
>
>
>
>
>
> *Jonathan Wynn Smith*
>
> *Student Trainee*
>
> *jonathan.smith at nasa.gov*
>
> NASA-Goddard Space Flight Center
>
> Code 613.3-Atmospheric Chemistry and Dynamics Branch
>
> Greenbelt, MD 20771
>
> 301-614-5956
>
>
>
> *Doctoral Candidate*
>
> jw_smith at bison.howard.edu
>
> Howard University Program in Atmospheric Sciences
>
> 2355 6th St NW/408 Thirkield Bldg.
>
> Washington, DC 20059
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
Arlindo da Silva
dasilva at alum.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110423/269725ff/attachment.html
More information about the gradsusr
mailing list