comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Reading string data from binary f77 files?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Reading string data from binary f77 files? [message #1640] Thu, 06 January 1994 10:17
scott is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Change in behavior of string constants?
Next Topic: How to use fewer colors for Widget-app-window?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 13:25:57 PDT 2025

Total time taken to generate the page: 0.79960 seconds