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

Home » Public Forums » archive » Re: IDL/PV-Wave - Can they strip headers in binary files?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL/PV-Wave - Can they strip headers in binary files? [message #1242 is a reply to message #1237] Fri, 18 June 1993 06:18 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
gnaa38@aero.gla.ac.uk (Paul Porcelli) writes:

> Could someone tell me how IDL or PV-Wave copes with dislaying data from a
> binary file which has a a header of various types (ie int,float,string) and
> which also defines the number of records in the file.
> Would the header have to be stripped first by another program?
> I am specifically interested in how easy it is to read from a file of
> this type and ouput the data in a graphical format(ie plot etc).
> Are any of the two products more suited to this task?
> Any help will be greatly appreciated.
> Thanks.

IDL and PV-wave both have the same kind of I/O capabilities as a
third-generation language such as FORTRAN and C. (In fact, FORTRAN-style
FORMAT specifications are supported.) This means that you can write a fairly
simple routine to read in and parse the header and data in your table.
Routines for some standard file formats, such as FITS, have already been
written using standard IDL/PV-wave calls. However, it's a fairly simple matter
to write a reader routine yourself if you know what the format of the file is.

Once you've read the data into arrays, you can then plot it in the normal
matter.

Both IDL and PV-wave are likely to be equally capable in reading files. In
fact, a program written in one will probably work in the other.

Bill Thompson
[Message index]
 
Read Message
Read Message
Previous Topic: Test, please ignore
Next Topic: Re: Problems with double precision in IDL

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

Current Time: Sat Oct 11 13:38:34 PDT 2025

Total time taken to generate the page: 1.68065 seconds