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

Home » Public Forums » archive » Re: Speed penalty using START and COUNT with HDF_SD_GETDATA
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: Speed penalty using START and COUNT with HDF_SD_GETDATA [message #26514 is a reply to message #26510] Tue, 04 September 2001 22:52 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"Bob Fugate" <rqfugate@mindspring.com> wrote in message
news:B7BAF61A.2E03%rqfugate@mindspring.com...
> I have a large number of 128x128 pixel arrays stored as SDS's in
> HDF files. Since I am only interested in a 32x32 subset of each
> array, I tried using the START and COUNT keywords to read
> only that part of the array I need ---
> thinking this would be faster and less taxing on memory.
> However, I learned today that it is much faster to read
> in the entire array.
>
> ...
>
> This is a so-so Windows NT machine; IDL 5.4. The data is on a
> server. I have
> a good connection to the server.
>
> Anyone had any similar experiences

I have noticed something similar with IDL's netCDF interface: using the
STRIDE keyword seems to be very inefficient. I got the impression that IDL
is actually reading in the whole array then extracting a subset.

> ...suggestions on how to speed up reading
> only the part of the array I need?

Have you tried copying the file to a local disk? The local disk's caching
may suit the way IDL reads the data better.

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield
National Institute for Water and Atmospheric Research





--
Posted from clam.niwa.cri.nz [202.36.29.1]
via Mailgate.ORG Server - http://www.Mailgate.ORG
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: MPEG_SAVE
Next Topic: Re: cmyk colorcoded postscript file

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

Current Time: Fri Oct 10 23:18:24 PDT 2025

Total time taken to generate the page: 0.80329 seconds