<div dir="ltr"><div><div><div><div><div><div><div>Hi <br><br></div>I am trying to read a binary file using the following statements<br><br>dim = (/1440, 720, 7, 2/)<br>amsre_data = fbindirread(swdir + sfilename, 0, dim, &quot;float&quot;)<br><br></div>However, I got the errors as below.<br>fatal:fbindirread: The size implied by the dimension array and record number is greater that the size of the file, can&#39;t continue<br><br></div>This is how FORTRAN read this file.<br>      CHARACTER(1) abuf(1440,720,7)<br>      real, dimension(1440,720,7,2) ::amsr_data<br><br>      OPEN(3,FILE=FILENAME,STATUS=&#39;OLD&#39;,RECL=7257600,<br>     1 ACCESS=&#39;DIRECT&#39;,FORM=&#39;UNFORMATTED&#39;)<br>      do ia=1,2<br>          READ(3,rec=ia) abuf<br>          do iv=1,7<br>                amsr_data(:,:,iv,ia)=real(ICHAR(abuf(:,:,iv)))<br>                where(amsr_data(:,:,iv,ia)&lt;=250)<br>                  amsr_data(:,:,iv,ia)=amsr_data(:,:,iv,ia)*xscale(iv)+xoffset(iv)<br>                endwhere<br>          enddo<br>        enddo<br>        close(3)<br><br></div>I am not sure why the error happens. Here is the link to download data.<br><a href="ftp://ftp.remss.com/amsre/bmaps_v07/y2007/m06/">ftp://ftp.remss.com/amsre/bmaps_v07/y2007/m06/</a><br></div>The file name is like <a class="" href="ftp://ftp.remss.com/amsre/bmaps_v07/y2007/m06/amsre_20070601v7.gz">amsre_20070601v7.gz</a><br><br><br></div>Thank you<br></div>Bruce<br></div>