[Thread Prev][Thread Next][Index]

[ferret_users] Reading mixed data from binary file



Hello there,
I have such an issue. I need to read some data from binary file which can be read by FORTRAN like this:

READ(IUNIT, END=3000) CDTINTT, DNX, DNY, AMOWEP, AMOSOP, AMOEAP, AMONOP
READ(IUNIT, END=3000) PFLAG(1:30)
READ(IUNIT, END=3000) U10_GR
READ(IUNIT, END=3000) UDIR_GR
READ(IUNIT, END=3000) US_GR
.....

where
CHARACTER  :: CDTINTT*14
REAL    :: DNX, DNY, AMOWEP, AMOSOP, AMOEAP, AMONOP
LOGICAL :: PFLAG(34)
REAL,    ALLOCATABLE :: U10_GR(:,:)  !! WIND SPEED U10 [M/S].
REAL,    ALLOCATABLE :: UDIR_GR(:,:) !! WIND DIRECTION [DEG].
REAL,    ALLOCATABLE :: US_GR(:,:)   !! FRICTION VELOCITY (M/S).

IUNIT it's a label for input file: MAP20101026060000
and IUNIT reflects to OPEN (UNIT=IUNIT,FILE=MAP20101026060000,FORM='FORMATTED',STATUS='OLD',IOSTAT=IOS)

How can I do this in Ferret?
File MAP20101026060000 contains a header and next are 23 blocks of data 132x145.

I attach the file MAP20101026060000.

I'll appreciate any help!

Kind regards,
Szymon Roziewski

Attachment: BLS20101026060000.zip
Description: Zip archive


[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement