<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><a href="http://grads.iges.org/grads/gadoc/gradcomdsetfwrite.html">http://grads.iges.org/grads/gadoc/gradcomdsetfwrite.html</a><div>use -ap &nbsp;to append to an existing file.&nbsp;</div><div>--Jennifer</div><div><br><div><br><div><div>On Feb 15, 2011, at 4:12 AM, Geeta Geeta wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; ">Dear all,<span class="Apple-converted-space">&nbsp;</span><br>I want to compute the Mean Rainfall Forecast (for Day 1 and day 2) for a month. I have WRF output (separete 30files for each day) for 30 days.<span class="Apple-converted-space">&nbsp;</span><br><br>So I am extracting day 1 ---- Day N Rainfall forecasts (using fwrite) and I have correspondingly the 30 data and ctl files (for Day 1 Forecast).<span class="Apple-converted-space">&nbsp;</span><br><br>Part of the gs file looks like this: &nbsp;<span class="Apple-converted-space">&nbsp;</span><br>'reinit'<br>'open /store/store_output/08june2000/wrf-outp_d01.ctl'<br>'define r1f8=rainc(t=4)+rainnc(t=4)'<br>'define r2f8=rainc(t=28)+rainnc(t=28)'<br>'set fwrite rain24.dat'<br>'set gxout fwrite'<br>'d r2f8-r1f8'<br><br>*********************<br>'open /store/store_output/11june2009/wrf-outp_d01.ctl'<br>'define r1f11=rainc(t=4)+rainnc(t=4)'<br>'define r2f11=rainc(t=28)+rainnc(t=28)'<br>'set fwrite rain24.dat'<br>'set gxout fwrite'<br>'d r2f11-r1f11'<br>'disable fwrite'<br>*********************<br><br><br>But Grads is writing only the last Record to the file&nbsp; rain24.dat. The output Figures for the 2 days is the Same.<span class="Apple-converted-space">&nbsp;</span><br><br><br>Pls Suggest HOW CAN I write all the 30 days output to ONE file.<span class="Apple-converted-space">&nbsp;</span><br><br>Thanks<span class="Apple-converted-space">&nbsp;</span><br>&nbsp;<br>geeta<br><br>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></div></span></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div>jma@cola.iges.org</div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span> </div><br></div></div></body></html>