[gradsusr] Fwrite contd.

Geeta Geeta geeta124 at hotmail.com
Wed Jan 28 02:49:37 EST 2015


Hi Davide and all other users. 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. 
Following was my CTL file. 
DSET ^3B42.1104%d2.%h2z.7.precipitation.binoptions templateTITLE  Precipitation estimatesUNDEF  -9999.9XDEF 1440 LINEAR  -179.875 0.25YDEF  400 LINEAR  -49.875  0.25ZDEF   1 LEVELS 1000TDEF 8 LINEAR  06z22apr2011  3hrVARS 1data  0   99  3B42 TRMM precipitation estimates [mm/3hr]ENDVARS
NOW in MY gs file, I forced grads to write the data. 'reinit''open rfaccum.ctl''define rf1=data(t=1)''define rf2=data(t=2)''define rf3=data(t=3)''define rf4=data(t=4)''define rf5=data(t=5)''define rf6=data(t=6)''define rf7=data(t=7)''define rf8=data(t=8)''define rf=rf1+rf2+rf3+rf4+rf5+rf6+rf7+rf8''d rf''printim figure1.gif''set x 1 1440''set y 1 400 ''set fwrite  Obs22apr2011.bin''set gxout fwrite''d rf''disable fwrite'I got same size of O/P file Obs22apr2011.bin. 2304000 Jan 27 14:17 3B42.110423.00z.7.precipitation.bin-rw-r--r--    1 model    staff       2304000 Jan 27 14:18 3B42.110423.03z.7.precipitation.bin-rw-r--r--    1 model    staff       2304000 Jan 27 14:22 3B42_daily.2011.04.22.7.bin-rw-r--r--    1 model    staff       2304000 Jan 28 13:12 Obs22apr2011.bin
Now when I PLOT Obs22apr2011.bin file, It is only plotting the eastern hemisphere. (Figures attached). Following is the CTL file------SET Obs22apr2011.binoptions big_endianTITLE  Precipitation estimatesUNDEF  -9999.9XDEF  1440 LINEAR -179.875 0.25YDEF  400 LINEAR  -49.875  0.25ZDEF   1 LEVELS 1000TDEF 1 LINEAR  00z22apr2011  1dyVARS 1data  0   99  3B42 TRMM precipitation estimates [mm/3hr]ENDVARS~~~~~~~~~~~~~~~"dailyrf.ctl" 11 lines, 305 characters

Kindly suggest. 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150128/653f5946/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: figure1.gif
Type: image/gif
Size: 74313 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20150128/653f5946/attachment-0002.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fig2.gif
Type: image/gif
Size: 34481 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20150128/653f5946/attachment-0003.gif 


More information about the gradsusr mailing list