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

Home » Public Forums » archive » Re: Reading IEEE floating point on DEC OpenVMS
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: Reading IEEE floating point on DEC OpenVMS [message #4222] Fri, 12 May 1995 00:00
rivers is currently offline  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)
[Message index]
 
Read Message
Previous Topic: Re: Polar plots with aspect ratio =1
Next Topic: Polar plots with aspect ratio =1

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

Current Time: Fri Oct 10 17:48:19 PDT 2025

Total time taken to generate the page: 0.32053 seconds