<div dir="ltr"><div><div><div><div><div><div><div>Dear Geeta,<br><br></div>use the "q fwrite" command on the GrADS.<br><br></div>This gives you the machine byte order and the undef value.<br></div>Edit the .CTL file and put the numbers and try to plot.<br><br></div>This will work.<br></div>All the best.<br><br></div>Regards<br></div>Pyarimohan<br><div><div><div><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 28, 2015 at 8:49 AM, Geeta Geeta <span dir="ltr"><<a href="mailto:geeta124@hotmail.com" target="_blank">geeta124@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">Hi Davide and all other users. <div>This message is in continuation to my earlier e-mail in the previous Volume. I have to sum up all the 8 3 hourly TRMM binary files. </div><div><br></div><div><div>Following was my CTL file. </div><div><br></div><div>DSET ^3B42.1104%d2.%h2z.7.precipitation.bin</div><div>options template</div><div>TITLE Precipitation estimates</div><div>UNDEF -9999.9</div><div>XDEF 1440 LINEAR -179.875 0.25</div><div>YDEF 400 LINEAR -49.875 0.25</div><div>ZDEF 1 LEVELS 1000</div><div>TDEF 8 LINEAR 06z22apr2011 3hr</div><div>VARS 1</div><div>data 0 99 3B42 TRMM precipitation estimates [mm/3hr]</div><div>ENDVARS</div></div><div><br></div><div>NOW in MY gs file, I forced grads to write the data. </div><div><div>'reinit'</div><div>'open rfaccum.ctl'</div><div>'define rf1=data(t=1)'</div><div>'define rf2=data(t=2)'</div><div>'define rf3=data(t=3)'</div><div>'define rf4=data(t=4)'</div><div>'define rf5=data(t=5)'</div><div>'define rf6=data(t=6)'</div><div>'define rf7=data(t=7)'</div><div>'define rf8=data(t=8)'</div><div>'define rf=rf1+rf2+rf3+rf4+rf5+rf6+rf7+rf8'</div><div>'d rf'</div><div>'printim figure1.gif'</div><div><b><u><i>'set x 1 1440'</i></u></b></div><div><b><u><i>'set y 1 400 '</i></u></b></div><div><b><u><i>'set fwrite Obs22apr2011.bin'</i></u></b></div><div>'set gxout fwrite'</div><div>'d rf'</div><div>'disable fwrite'</div></div><div>I got same size of O/P file <b style="font-size:12pt"><u><i>Obs22apr2011.bin. </i></u></b></div><div><b><u><i><div>2304000 Jan 27 14:17 3B42.110423.00z.7.precipitation.bin</div><div>-rw-r--r-- 1 model staff 2304000 Jan 27 14:18 3B42.110423.03z.7.precipitation.bin</div><div>-rw-r--r-- 1 model staff 2304000 Jan 27 14:22 3B42_daily.2011.04.22.7.bin</div><div>-rw-r--r-- 1 model staff 2304000 Jan 28 13:12 Obs22apr2011.bin</div><div style="font-size:12pt"><br></div><div style="font-size:12pt">Now when I PLOT Obs22apr2011.bin file, It is only plotting the eastern hemisphere. (Figures attached). </div><div style="font-size:12pt">Following is the CTL file------</div><div style="font-size:12pt"><div style="font-size:12pt">SET Obs22apr2011.bin</div><div style="font-size:12pt">options big_endian</div><div style="font-size:12pt">TITLE Precipitation estimates</div><div style="font-size:12pt">UNDEF -9999.9</div><div style="font-size:12pt">XDEF 1440 LINEAR -179.875 0.25</div><div style="font-size:12pt">YDEF 400 LINEAR -49.875 0.25</div><div style="font-size:12pt">ZDEF 1 LEVELS 1000</div><div style="font-size:12pt">TDEF 1 LINEAR 00z22apr2011 1dy</div><div style="font-size:12pt">VARS 1</div><div style="font-size:12pt">data 0 99 3B42 TRMM precipitation estimates [mm/3hr]</div><div style="font-size:12pt">ENDVARS</div><div style="font-size:12pt">~</div><div style="font-size:12pt">~</div><div style="font-size:12pt">~</div><div style="font-size:12pt">~</div><div style="font-size:12pt">~</div><div style="font-size:12pt">~</div><div style="font-size:12pt">~</div><div style="font-size:12pt">~</div><div style="font-size:12pt">~</div><div style="font-size:12pt">~</div><div style="font-size:12pt">~</div><div style="font-size:12pt">~</div><div style="font-size:12pt">~</div><div style="font-size:12pt">~</div><div style="font-size:12pt">~</div><div style="font-size:12pt">"dailyrf.ctl" 11 lines, 305 characters</div><div><br></div><div><br></div><div>Kindly suggest. </div></div></i></u></b></div><div><br></div>                                            </div></div>
<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" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>