GrADS - Script problem

All other topics about postprocessing model data (GrADS and other software), about other numerical weather prediction software (including WRF-NMM and WRF-ARW discussion unrelated to UEMS/WRF EMS), and general meteorology talk go in this forum.
Post Reply
William248
Posts: 1
Joined: Wed May 11, 2016 4:15 pm

GrADS - Script problem

Post by William248 » Wed May 11, 2016 4:27 pm

'm new in GrADS, and I want to extract the temperature data for January 2000, but skipping the time 06 UTC, I'm having a hard time to save this data without the hours of 06 UTC, anyone can help me in what I am doing wrong ?

Code: Select all

'reinit'
'sdfopen temp_ar.nc'

'query time'
time = substr(result,8,2)

i = 1

while(time=06)

'set t 'i
'display air-273.15'
 	
      tk = subwrd(result, 4)
      rc = write("temp.dat", tk)

i = i + 1
endwhile

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest