Valid: YY.MM.DD HH:MM

Mandelli Alessandro mandelli.alessandro at TISCALI.IT
Thu Jan 6 16:21:33 EST 2005


Angel Dimitrov wrote:
>  Hi,
>
>  Can you help me to plot the "Valid: YY.MM.DD HH:MM HHZ" field in
> GrADS?

'q time'
tempo = subwrd(result,3)

Suppose it gives something like

tempo = "03Z19JAN2005"

Then you can do:

HHZ=substr(tempo,1,3)
Day=substr(tempo,4,2)
Month=substr(tempo,6,3)
Year=substr(tempo,9,4)

At this point you can:

'draw title Valid: 'HHZ' 'Day' 'Month' 'Year

If you want to change JAN by 01, then you have to do something like

if (Month="JAN")
        MM="01"
endif
if (Month="FEB")
        MM="02"
endif

......



Ciao

p.s. I'll be in Poland for one week starting tomorrow.
Talk to you again on January 13th.



More information about the gradsusr mailing list