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

Home » Public Forums » archive » Re: Speeding up I/O
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: Speeding up I/O [message #38526] Wed, 17 March 2004 08:49 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Ken Knapp" <Ken.Knapp@REMOVEnoaa.gov> wrote in message
news:c39jvi$r1l$1@news.nems.noaa.gov...
> Marc Schellens wrote:
>>
>> The fastest you can get would be to read in one array instead of
>> an array of structures:
>>
>> image = intarr( 128/2 + 1250, 1250)
>> openr,1,file
>> readu,1,image
>> close,1
>>
>> Then you have to separate the header yourself and convert it
>> back to byte.
>
> OK. That sounds good, but is there a good/fast way to get the header
> information back to byte? How about if the header were a mixture of byte
> and int's? It seems to me I'd need some sort of function that would
> allow me to read from one variable to another ... kind of like the ReadS
> routine, but "binary-style"??

Use the BYTE() function with the offset parameter.

-Rick
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ENVI: How to remove vector layer from the list of available vectors programmatically?
Next Topic: Re: dynamically change the layout of widget

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

Current Time: Fri Oct 10 09:32:51 PDT 2025

Total time taken to generate the page: 0.80017 seconds