Re: Reading IEEE floating point on DEC OpenVMS [message #4222] |
Fri, 12 May 1995 00:00 |
rivers
Messages: 228 Registered: March 1991
|
Senior Member |
|
|
In article <3otpao$c66@elna.ethz.ch>, system@ir.phys.chem.ethz.ch (Ulrich Schmitt, Phys. Chem., ETH Zurich) writes:
> Is there a way in PV-WAVE or IDL for DEC OpenVMS to read an unformatted
> external data file which contains IEEE 4-byte and 8-byte floating point
> numbers?
Yes, use the BYTEORDER rotine with the keywords XDRTOF or XDRTOD.
Example:
data = intarr(1024)
openr, lun, /get, /block, 'myfile.dat'
readu, lun, data
byteorder, data, /xdrtof
____________________________________________________________
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars3.uchicago.edu (Internet)
|
|
|