[Thread Prev][Thread Next][Index]

Re: [ferret_users] for multiple png or gif file for the use of animation



WANT TO MENTION SOMETHING MORE BUT FORGET IN MY PREVIOUS MAIL



Dear All,
first of all many thanks to all you guys who participate in this discussion, i am very happy in saying that i made my animation from gif files and also created multiple gif file in one go. As  russ and sudheer pointed out my mistake of grave accent whic is not the inverted coma / quote. in this mail i want to explain the steps that i did make the movie from gif files.

1)  first of all i made a script to develop the plot from required calculation. this is the usual script that we are making for our analysis purpose which contain all the analysis step and beautification steps required for plots. i named this script as ohc_mov.jnl (as in my case i want to calculate ocean heat content from 0_700 m so i named it like this, this is the jnl script. i have analyzed ohc from 2005-2016 annually so the plot ohc_0_700_001 means 2005 and so on ).

2) in the above mentioned script after the frame command i made five comments
i) for making png images
ii) for making multiple gif files
iii) for making multiple png files
iv) for making animation specially from gif files.

in this ohc_mov.jnl script you will the label/nouser command so i made it as ohc($stamp) which will automatically put the time step number on the plot which helps to understand the animation in time step.

3) after making the jnl script save it and exit. now you are on ferret command prompt, here you have to use the original file that you use in the jnl scrpit i.e. you have to type USE ohc1_ip.nc then enter. now you have to use repeat command for making multiple gif files with the proper time steps this is the command that i used  repeat/l=1:12 (let li=`l`;define symbol stamp=`li,zw=3`;define symbol filename=ohc_0_700_($stamp);sp rm ($filename).gif;go ohc_mov ohc_year[l=`li`]). now you can see that multiple gif files are creating (for me its 12 files).

4) please make sure that for making animation from gif files you should have installed a software gifsicle. from a simple command in the linux prompt
sudo apt-get install gifsicle

5) now for making animation after the finish of repeat command exit the ferret and come to linux prompt ( hope you installed gifsicle if not then please intall it first then make animation). for this you have to issue the command gifsicle --delay=60 --loop=1 ohc_0_700*.gif > anim.gif ( * is the wild card extension for your multiple gif files means ohc_0_700 is common for all files and * for the next entry, --delay is for speed control and loop is for repetition) 

!!!!!!!!!!!!!!  BUT HERE I AM HAVING A QUESTION TO FERRETERS THAT IF I WANT TO PUT LABEL IN THE DATE FORMAT (e.g. 15-jan-2005 and so on ) / ONLY MOTHS FORMAT / ONLY YEAR FORMAT SO WHAT SHOULD I HAVE TO DO. i mean to say that i want label according to my time series over the plots. so is it possible ?  !!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!  APART FROM THIS I AM A LITTLE QUERY THAT WHAT DOES IT MEANS `LI,ZW=3`. WHAT IS THE FUNCTION OF THIS. ACCORDING TO MY UNDERSTANDING THIS IS THE PLOT NUMBER LIKE 001, 002 AND SO ON IF WE MADE IT ZW=4 THEN THIS WILL BE 0001, 0002 ANS SO ON  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

WILL THIS GIF ANIMATION THAT IS CREATED ANIM.GIF CAN WE RUN ON WINDOWS ALSO IF NOT THEN HOW TO MAKE IT DOES WE HAVE TO CHANGE THE EXTENSION FROM .GIF TO SOMETHING ELSE ?

please reply to my above queries.

but guys please remember the grave accent this have to use instead of quotes which is present above the TAB key. and one more thing that i faced is that pyferret is not creating gif files so for this kind of work you have to use ferret instead of pyferret.

i hope we can make thousands of plot in one go for the peoples working on climatic scale ( decadal or multidecadal scales ) and use those to make animation.

please find the attached script of my animation with all commands. once again thank you all for your supports.

happy to work with ferret and its team.

regards, saurabh



On Fri, Nov 18, 2016 at 10:17 AM, saurabh rathore <rohitsrb2020@xxxxxxxxx> wrote:
Dear All,
first of all many thanks to all you guys who participate in this discussion, i am very happy in saying that i made my animation from gif files and also created multiple gif file in one go. As  russ and sudheer pointed out my mistake of grave accent whic is not the inverted coma / quote. in this mail i want to explain the steps that i did make the movie from gif files.

1)  first of all i made a script to develop the plot from required calculation. this is the usual script that we are making for our analysis purpose which contain all the analysis step and beautification steps required for plots. i named this script as ohc_mov.jnl (as in my case i want to calculate ocean heat content from 0_700 m so i named it like this, this is the jnl script. i have analyzed ohc from 2005-2016 annually so the plot ohc_0_700_001 means 2005 and so on ).

2) in the above mentioned script after the frame command i made five comments
i) for making png images
ii) for making multiple gif files
iii) for making multiple png files
iv) for making animation specially from gif files.

in this ohc_mov.jnl script you will the label/nouser command so i made it as ohc($stamp) which will automatically put the time step number on the plot which helps to understand the animation in time step.

!!!!!!!!!!!!!!  BUT HERE I AM HAVING A QUESTION TO FERRETERS THAT IF I WANT TO PUT LABEL IN THE DATE FORMAT (e.g. 15-jan-2005 and so on ) / ONLY MOTHS FORMAT / ONLY YEAR FORMAT SO WHAT SHOULD I HAVE TO DO. i mean to say that i want label according to my time series over the plots. so is it possible ?  !!!!!!!!!!!!!!!!!!!

3) please make sure that for making animation from gif files you should have installed a software gifsicle. from a simple command in the linux prompt
sudo apt-get install gifsicle

!!!!!!!!!!!!!!!!!!!!  APART FROM THIS I AM A LITTLE QUERY THAT WHAT DOES IT MEANS `LI,ZW=3`. WHAT IS THE FUNCTION OF THIS. ACCORDING TO MY UNDERSTANDING THIS IS THE PLOT NUMBER LIKE 001, 002 AND SO ON IF WE MADE IT ZW=4 THEN THIS WILL BE 0001, 0002 ANS SO ON  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

WILL THIS GIF ANIMATION THAT IS CREATED ANIM.GIF CAN WE RUN ON WINDOWS ALSO IF NOT THEN HOW TO MAKE IT DOES WE HAVE TO CHANGE THE EXTENSION FROM .GIF TO SOMETHING ELSE ?

please reply to my above queries.

but guys please remember the grave accent this have to use instead of quotes which is present above the TAB key. and one more thing that i faced is that pyferret is not creating gif files so for this kind of work you have to use ferret instead of pyferret.

i hope we can make thousands of plot in one go for the peoples working on climatic scale ( decadal or multidecadal scales ) and use those to make animation.

please find the attached script of my animation with all commands. once again thank you all for your supports.

happy to work with ferret and its team.

regards, saurabh

 

On Thu, Nov 17, 2016 at 2:42 PM, Ryo Furue <furue@xxxxxxxxxx> wrote:
Hi folks,

What you seem to miss is that the original script

use coads_climatology

REPEAT/L=1:12 (FILL SST; GO fland; FRAME/file=sst0_`l`.gif)

should work! I copied and pasted it to my Ferret prompt and it did produce the 12 image files sst0_1.gif, sst0_2.gif, . . . , with right images.  The puzzle is why it failed on Saurabh.  Or am I missing something?

Regards,

Ryo



--


REGARDS

Saurabh Rathore
Research Scholar (PhD.)
Centre For Oceans, Rivers, Atmosphere & Land Science Technology
Indian Institute Of Technology, Kharagpur
contact :- 91- 8345984434



--


REGARDS

Saurabh Rathore
Research Scholar (PhD.)
Centre For Oceans, Rivers, Atmosphere & Land Science Technology
Indian Institute Of Technology, Kharagpur
contact :- 91- 8345984434

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement