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 #38529 is a reply to message #38526] Wed, 17 March 2004 05:19 Go to previous messageGo to previous message
Ken Knapp is currently offline  Ken Knapp
Messages: 14
Registered: April 2003
Junior Member
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"??


>
> Anyway, this method is almost as fast as it gets (almost like C).
> About 80% faster than the one using structures on my machine.
>
> HDH,
> marc
>

--
***** to reply remove the _REMOVE_ *****

Ken Knapp Ken.Knapp@_REMOVE_noaa.gov
Remote Sensing and Applications Division
National Climatic Data Center
151 Patton Ave
Asheville, NC 28806
828-271-4339 (voice) 828-271-4328 (fax)
[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: Sat Oct 11 05:22:30 PDT 2025

Total time taken to generate the page: 0.95896 seconds