<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Dear All, <br>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. <br><br>STN 24hr 48hr <br>ABC RF T2 RH2 WD10 Ws10 CLOUD RF T2 RH2 WD10 WS10 CLOUD <br> 2.4 296.16 70.15 270 7.96 4<br><br><br>I am using the following script, <br><br>'reinit'<br>'open test.ctl'<br>*******DEfined aall the parameters required, Rainfall, temperature, RH. windspd, wind dir, cloud.********<br>'define x1=rainc(t=4)+rainnc(t=4)'<br>'define x2=rainc(t=28)+rainnc(t=28)'<br>'define x3=rainc(t=52)+rainnc(t=52)'<br>'define t24= t2(t=25)'<br>'define t48= t2(t=49)'<br>'define rh24= rh2(t=25)'<br>
'define rh48= rh2(t=49)'<br>'define ws24= ws10(t=25)'<br>
'define ws48= ws10(t=49)'<br>'define wd24= wd10(t=25)'<br>
'define wd48= wd10(t=49)'<br><br>'set gxout print'<br>'set prnopts %1.2f'<br><br>* 1. KORA <br>'set lat 14.28'<br>'set lon 74.45'<br>*** RAINFALL***********<br>'d x2-x1'<br>rf-kora =sublin(result,2)<br>rc=write('/test/model/uas/rain24.dat',rf-kora,append)<br>'d x3-x2'<br>rc=write('/test/model/uas/rain48.dat',rf-kora ,append)<br>***<br>** temperature *******************<br>'d t24'<br>'dummy=sublin(result,2)'<br>rc=write('/test/model/uas/temp24.dat',dummy,append)<br><br>That is I am able to write all the parameters in SEPARATE files and NOT ALL-TOgether. <br><br>Kindly suggest, how should I write all the parameters in ONE FILE, and alll together in the above format. <br><br>Thanks. <br>Dr Geeta Agnihotri. <br>                                            </body>
</html>