[gradsusr] slow animation

Stephen McMillan smcmillan at planalytics.com
Mon Sep 23 09:25:23 EDT 2019


Hello, you can try something like the following, which uses the "sleep"
command with delay in seconds (or fraction thereof).  You will need to
change the time delay to suit your needs.
Stephen McMillan

'set t 1'
td=0.2;#time delay in seconds
ts=1
while(ts<=119);#loop through timesteps
  'd precipitation(t='ts')'
  '!sleep 'td
  ts=ts+1
endwhile

On Mon, Sep 23, 2019 at 8:46 AM DAME GUEYE <gueye.dame2 at ugb.edu.sn> wrote:

> Hi !
> I wanted a slow animation of a file and I typed the following but it's too
> fast and I want the animation to be a little slower.
> ga-> sdfopen data.nc
> Scanning self-describing file:  data.nc
> SDF file data.nc is open as file 1
> LON set to -59.875 14.875
> LAT set to 0.125 29.875
> LEV set to 0 0
> Time values set: 2003:8:26:3 2003:8:26:3
> E set to 1 1
> ga-> q file
> File 1 :
>   Descriptor: data.nc
>   Binary: data.nc
>   Type = Gridded
>   Xsize = 300  Ysize = 120  Zsize = 1  Tsize = 119  Esize = 1
>   Number of Variables = 1
>      precipitation  0  t,y,x  Accumulated Precipitation
> ga-> set t 1 119
> Time values set: 2003:8:26:3 2003:9:9:21
> ga-> d precipitation
> now what am I going to add or modify ?
> Thanks !
>
> --
> Étudiant en Master 2 à l'UGB
> UFR: Sciences Appliquées  et de Technologies(SAT)
> Département: Physique Appliquée
> Spécialité: Océan-Atmosphère-Climat
> tél: 777069640
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>

-- 
***************************************************The information 
contained in this e-mail message is intended only for the use of the 
recipient(s) named above and may contain information that is privileged, 
confidential, and/or proprietary. If you are not the intended recipient, 
you may notreview, copy or distribute this message. If you havereceived 
this communication in error, please notify the sender immediately by 
e-mail, and delete the original 
message.***************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190923/e5e3d242/attachment.html>


More information about the gradsusr mailing list