[gradsusr] slow animation

Jennifer M Adams jadams21 at gmu.edu
Tue Sep 24 19:34:44 EDT 2019


You can get a smoother looking animation using the ‘set dbuff’ command. It works like this

'set dbuff on'
i=1
while (i<=5)
  'set t 'i
  'set clevs 240 245 250 255 260 265 270 275 280 285 290 295 300 305 310'
  '!sleep 0.25'
  'd t'
  'swap'
  i=i+1
endwhile

—Jennifer


On Sep 23, 2019, at 9:25 AM, Stephen McMillan <smcmillan at planalytics.com<mailto:smcmillan at planalytics.com>> wrote:

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<mailto: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 not
review, copy or distribute this message. If you have
received this communication in error, please notify
the sender immediately by e-mail, and delete the original message.
***************************************************
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://secure-web.cisco.com/1nq_Xs9rHmEmUpKCLD4TApg5oz5ufVbZEheJyIGOaEvceC1dn3IQ0HRZAVPlT3CngFElnLJqYtnIIcaGr5094mO3JN7O34mMPI3Wr1W8ei4s898dQtQjF6UzROHoSi82PnzJTUPJ6YRKun-9fwqoJe_rVkzoOdFQVHQlWxnDE3cjFPATahvUR9xN6PJsLgEHjBQ0SUCGiPWQk6uuf7MZ139xjCkzJljstkDZRp7eHqoShO3Yoh3c_kWjjnrBxvvI7Fm-_L10mcR_s8hTlK_lzx0sA62DCsgZZtiYPQOOv3CQSDoN-I7Q4dr9e3dhhRiQ86XqkZ-cVbrRwnjQPI0fBVkFVVv86zxfE8oSqEpnXBV_uyZ4td7o6nitHzB1y_-0unXWOm36iYchUbFMcS1I4dhFmLRS9BNS2Jg2m0I5S6stHdpEFRJeONZfJ7cCY6Vl9/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr

--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190924/59965d5f/attachment.html>


More information about the gradsusr mailing list