<div><span style="font-family: ËÎÌå, arial, Verdana, sans-serif; line-height: 16.7999992370605px;">Dear Sir,</span><div style="font-family: ËÎÌå, arial, Verdana, sans-serif; line-height: 16.7999992370605px;"><br></div><div style="font-family: ËÎÌå, arial, Verdana, sans-serif; line-height: 16.7999992370605px;">I am reading the TRMM 3B42RT data with ncl, the data is writen in a direct format with only one record. But in this record, there are a header, 3 short integer and 1 byte arrays.</div><div style="font-family: ËÎÌå, arial, Verdana, sans-serif; line-height: 16.7999992370605px;"><br></div><div style="font-family: ËÎÌå, arial, Verdana, sans-serif; line-height: 16.7999992370605px;">I am trying to read it with fbindirread, but the data is not OK.</div><div style="font-family: ËÎÌå, arial, Verdana, sans-serif; line-height: 16.7999992370605px;"><br></div><div style="font-family: ËÎÌå, arial, Verdana, sans-serif; line-height: 16.7999992370605px;"><div>The fortran code to read the file is as following:</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; READ ( iunit, REC=1, ERR=100, IOSTAT=iostat ) head (1:2880),</div><div>&nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;( ( i2p (i, j), i = 1, LN ), j = 1, LT ),</div><div>&nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;( ( i2e (i, j), i = 1, LN ), j = 1, LT ),</div><div>&nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;( ( np1 (i, j), i = 1, LN ), j = 1, LT ),</div><div>&nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;( ( i2u (i, j), i = 1, LN ), j = 1, LT )</div></div><div style="font-family: ËÎÌå, arial, Verdana, sans-serif; line-height: 16.7999992370605px;"><br></div><div style="font-family: ËÎÌå, arial, Verdana, sans-serif; line-height: 16.7999992370605px;">The NCL code i want to read the file is as followed,</div><div style="font-family: ËÎÌå, arial, Verdana, sans-serif; line-height: 16.7999992370605px;"><br></div><div style="font-family: ËÎÌå, arial, Verdana, sans-serif; line-height: 16.7999992370605px;">head = fbindirread("<span style="font-family: Î¢ÈíÑźÚ, tahoma, verdana, sans-serif; font-size: 12px; line-height: 22px; background-color: rgb(246, 246, 246);">3B42RT.<span t="7" data="2013071318" style="border-bottom-width: 1px; border-bottom-style: dashed; border-bottom-color: rgb(204, 204, 204); z-index: 1;">2013071318</span>.7.bin</span><span style="line-height: 1.2;">",0,(/2880/),"Character")</span></div><div style="font-family: ËÎÌå, arial, Verdana, sans-serif; line-height: 16.7999992370605px;">trmm1 = fbindirread("<span style="font-family: Î¢ÈíÑźÚ, tahoma, verdana, sans-serif; font-size: 12px; line-height: 22px; background-color: rgb(246, 246, 246);">3B42RT.<span t="7" data="2013071318" style="border-bottom-width: 1px; border-bottom-style: dashed; border-bottom-color: rgb(204, 204, 204); z-index: 1;">2013071318</span>.7.bin</span><span style="line-height: 1.2;">",1,(/480,1440/),"short")</span></div><div style="font-family: ËÎÌå, arial, Verdana, sans-serif; line-height: 16.7999992370605px;"><div style="line-height: 16.7999992370605px;">trmm2 = fbindirread("<span style="font-family: Î¢ÈíÑźÚ, tahoma, verdana, sans-serif; font-size: 12px; line-height: 22px; background-color: rgb(246, 246, 246);">3B42RT.<span t="7" data="2013071318" style="border-bottom-width: 1px; border-bottom-style: dashed; border-bottom-color: rgb(204, 204, 204); z-index: 1;">2013071318</span>.7.bin</span><span style="line-height: 1.2;">",2,(/480,1440/),"short")</span></div></div><div style="font-family: ËÎÌå, arial, Verdana, sans-serif; line-height: 16.7999992370605px;"><div style="line-height: 16.7999992370605px;"><div style="line-height: 16.7999992370605px;"><div style="line-height: 16.7999992370605px;">trmm3 = fbindirread("<span style="font-family: Î¢ÈíÑźÚ, tahoma, verdana, sans-serif; font-size: 12px; line-height: 22px; background-color: rgb(246, 246, 246);">3B42RT.<span t="7" data="2013071318" style="border-bottom-width: 1px; border-bottom-style: dashed; border-bottom-color: rgb(204, 204, 204); z-index: 1;">2013071318</span>.7.bin</span><span style="line-height: 1.2;">",3,(/480,1440/),"byte")</span></div><div><div style="line-height: 16.7999992370605px;"><div style="line-height: 16.7999992370605px;">trmm4 = fbindirread("<span style="font-family: Î¢ÈíÑźÚ, tahoma, verdana, sans-serif; font-size: 12px; line-height: 22px; background-color: rgb(246, 246, 246);">3B42RT.<span t="7" data="2013071318" style="border-bottom-width: 1px; border-bottom-style: dashed; border-bottom-color: rgb(204, 204, 204); z-index: 1;">2013071318</span>.7.bin</span><span style="line-height: 1.2;">",4,(/480,1440/),"short")</span></div><div><span style="line-height: 1.2;"><br></span></div><div>If i set the parameter "rec_num" 0,1,2,3,4 all to 0, the results is also wrong.</div></div></div></div></div></div><div style="font-family: ËÎÌå, arial, Verdana, sans-serif; line-height: 16.7999992370605px;"><br></div><div style="font-family: ËÎÌå, arial, Verdana, sans-serif; line-height: 16.7999992370605px;"><span style="line-height: 16.7999992370605px;">How to read this file?&nbsp;</span>Attached are the fortran code and a sample data.</div><div style="font-family: ËÎÌå, arial, Verdana, sans-serif; line-height: 16.7999992370605px;"><br>I am waiting for your quick reply. Thanks a lot.<br><br>--<br>yours,<br>Best regards,<br><br>Yuchun</div></div>