IDL/PV-Wave


Using the IDL/PV-Wave Interface

The IDL/PV-Wave interface is only for reading. In the future file writing may be supported, but there hasn't been a need for this as of yet. The reader is very simplistic right now so you must convert files to native byte order using the convert2native utility in order for this reader to understand the file. Likewise, there is support for reading attributes but annotation reading has been delayed due to lack of interest in the short term.

The procedures are contained in the file ieeereader.pro. They can be read into IDL using the command .run ieeereader.pro. You can configure this file to autoload by breaking the routines ieeeopen, ieeeclose, ieeeread, and ieeereadattr into separate files named procedurename.pro.



Opening and Closing Files

Like openr you must open a file handle to access the IEEEIO files in IDL.

IDL Function
filedescriptor=ieeeopen('filename.raw')

This function opens a file descriptor for reading. Currently the IDL interface is a read-only interface.

To close an IEEEIO filedescriptor and reclaim its resources you use ieeeclose.

IDL Procedure
ieeeclose,filedescriptor Closes the filedescriptor. It will also deallocate any existing IDL handles when I get this thing converted to use dynamic datastructures.


Querying File Information

IDL Function ieeendatasets(descriptor)
Returns number of datasets in the file

IDL Function ieeenattribs(descriptor,datasetnumber)
Returns number of attributes bound to a particular dataset.


Reading Datasets

IDL Procedure ieeeread,filedescriptor[,datasetnumber]
The datasetnumber defaults to 0 if you don't specify
Named Params
The following switches affect Data allocation/management

Reading Attributes

IDL Procedure
ieeereadattr,descriptor,[datasetnumber]
datasetnumber defaults to 0 if not specified
Named parameters are
Data reading is affected by the following flags

John Shalf
Last modified: Wed Apr 9 11:41:11 MDT