[ncl-talk] how to read a fortran binary file using fbinrecread

xiaoming Hu yuanfangcan at hotmail.com
Tue Mar 3 11:09:08 MST 2015


Hello 

In fortran I have:
    ids=1;
  open(10,file='./test.dat',form='unformatted',access='sequential')
  write(10)((h(i,j),i=ids,ide),j=jds,jde)


In ncl I tried to use
   h    = fbinrecread ("./test.dat",0, (/jde,ide/),"float")
to read

But I got 
warning:fbinrecread: size specified is greater than record size, filling with missing values
fatal:fbinrecread: an error occurred reading the requested record. Something is wrong with the FORTRAN binary file.
fatal:Execute: Error occurred at or near line 11 in file conwomap_2.ncl

Can anybody help? 

Thanks a lot!

Xiaoming 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150303/b7091eb4/attachment.html 


More information about the ncl-talk mailing list