Reading string data from binary f77 files? [message #1640] |
Thu, 06 January 1994 10:17 |
scott
Messages: 17 Registered: January 1994
|
Junior Member |
|
|
I have binary files of model output that are set up with a bunch of header
info, including a list of the names of the fields contained in the file.
The files are written in IEEE binary by fortran 77 programs. I can read
everything just fine into IDL by opening the file code like
..
ARRAY1 = FLTARR(im,jm,lm)
OPENR, 1, 'model.output', /F77_UNFORMATTED
READU, 1, ARRAY1
..
etc.
The only trouble seems to be in reading the strings which are supposed to
be the names of the fields (titles for the plots I make with IDL). I have
been trying variations on
title = StrArr(100)
readu, 1, title
All I get is an array of 100 nulls.
Even reading a single character string like this:
name = '123'
readu, 1, header
doesn't work.
Any ideas?
Thanks for your help. emailed or posted responses will be greatly
appreciated.
--
A. Scott Denning (303)491-8346
<scott@abyss.atmos.colostate.edu>
Dept. of Atmospheric Science
Colorado State University
Fort Collins, CO 80523
|
|
|