[gradsusr] How draw a title whith forecast date

Daniele Gandini daniele.gandini at arpa.piemonte.it
Thu Nov 11 10:15:19 EST 2010


Juan Jose,

you can use 'query time'.

'query time'
** the output is for example: Time = 12Z08MAY1996 to 12Z08MAY1996 Mon to Mon

time=subwrd(result,3)
** for ex. 12Z08MAY1996

hour=substr(time,1,2)
day=substr(time,4,2)
month=substr(time,6,3)
year=substr(time,9,4)
dayname=subwrd(result,6)

Buenas tardes.

Daniele



----- Messaggio originale -----
Da: "Juan Jose Amides Figueroa Urbano" <juanjosefigueroa at gmail.com>
A: gradsusr at gradsusr.org
Inviato: Giovedì, 11 novembre 2010 15:39:15
Oggetto: [gradsusr] How draw a title whith forecast date



Hello i am working in a script for display automatic temp and i need draw in a title of the product the date of forecast, i created this code: 



'c' 
'set t 1' 
t = 0 
name = 03 
while (t <= 40) 
'set t 't'' 
'd tc' 
'draw title TEMPERATURA PARA F't' ' CELSIUS 
'printim /home/jjfigueroa/WRF/SALIDAS/temp't'.png' 
'c' 
t= t+1 
endwhile 


and saved in a .gs file ( temp.gs ) for running inside GrADS, the problem is that references to "t" for the date and not the date of forecast, the title would remain so, 
"TEMPERATURA PARA F12 11/11/2010 CELSIUS" for example. 


Thanks for the help. 
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr




More information about the gradsusr mailing list