[gradsusr] Regarding the text output in a file.

Geeta Geeta geeta124 at hotmail.com
Mon May 2 03:21:07 EDT 2011


Dear All, 
I am facing problem in writing the output in TEXT format. I want to extract the 24hr and 48hr Rainfall, all the surface parameters from WRF at a STATION LOCATION and write the output in ONE LINE. Eg. 

STN    24hr                                                                     48hr 
ABC     RF     T2       RH2    WD10  Ws10  CLOUD        RF   T2    RH2   WD10  WS10  CLOUD 
          2.4    296.16  70.15   270     7.96     4


I am using the following script, 

'reinit'
'open test.ctl'
*******DEfined aall the parameters required, Rainfall, temperature, RH. windspd, wind dir, cloud.********
'define x1=rainc(t=4)+rainnc(t=4)'
'define x2=rainc(t=28)+rainnc(t=28)'
'define x3=rainc(t=52)+rainnc(t=52)'
'define t24= t2(t=25)'
'define t48= t2(t=49)'
'define rh24= rh2(t=25)'

'define rh48= rh2(t=49)'
'define ws24= ws10(t=25)'

'define ws48= ws10(t=49)'
'define wd24= wd10(t=25)'


'define wd48= wd10(t=49)'

'set gxout print'
'set prnopts %1.2f'

*   1. KORA   
'set lat 14.28'
'set lon 74.45'
*** RAINFALL***********
'd x2-x1'
rf-kora =sublin(result,2)
rc=write('/test/model/uas/rain24.dat',rf-kora,append)
'd x3-x2'
rc=write('/test/model/uas/rain48.dat',rf-kora ,append)
***
**  temperature   *******************
'd t24'
'dummy=sublin(result,2)'
rc=write('/test/model/uas/temp24.dat',dummy,append)

That is I am able to write all the parameters in SEPARATE files and NOT ALL-TOgether. 

Kindly suggest, how should I write all the parameters in ONE FILE, and alll together in the above format. 

Thanks. 
Dr Geeta Agnihotri. 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110502/026bcf3c/attachment-0003.html 


More information about the gradsusr mailing list