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

Home » Public Forums » archive » Reading non-standard variable sizes
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 non-standard variable sizes [message #81398] Fri, 07 September 2012 13:44
Brian Daniel is currently offline  Brian Daniel
Messages: 80
Registered: July 2009
Member
I'm attempting to read values from a binary file with some strange variable formats. Specifically, I have a field of data that uses 9 bytes. No IDL data format has 9 bytes. I can do the following:

data = bytarr(9)
ReadU, lun, data

And lun will be ready to read the next variable, but how do I convert the 9 byte variable into a single 8-byte double number?

Unfortunately, I can't change the format of this data because its a standard. Thanks for your interest.

-Brian
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Display and Navigate Image in IDL 8.2
Next Topic: PANTHEON

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

Current Time: Wed Oct 08 18:36:28 PDT 2025

Total time taken to generate the page: 0.00389 seconds