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

Home » Public Forums » archive » Re: Multi-band sampling strategy
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: Multi-band sampling strategy [message #72183 is a reply to message #72174] Tue, 17 August 2010 23:35 Go to previous messageGo to previous message
Maxwell Peck is currently offline  Maxwell Peck
Messages: 61
Registered: February 2010
Member
On Aug 18, 1:10 pm, JessW <jess.wal...@gmail.com> wrote:
> Hi all,
>
> I'm using an IDL script in ENVI to retrieve the values of a multiband
> image at a user-specified number of pixels.  The script works as
> intended, but is quite slow; sampling an 8-band image at ~ 38,000
> pixel locations takes
> 52.35 minutes.  The issue is the following loop:
>
>  FOR i= 0L, nSamplePix - 1 DO BEGIN
>        pixValues[i,*] = ENVI_GET_SLICE(fid=fid,line=(index[1,i]-1),$
>        pos=bandsSelected,xs=(index[0,i]-1), xe=(index[0,i]-1))
>  ENDFOR
>
> If anyone can suggest an alternate, faster sampling strategy--
> preferably one that doesn't include the purchase of a new, faster
> computer--I would be extremely grateful.
>
> Thanks,
>
> Jess

I'm not clear on what you're doing but have you tried envi_get_data
with the dims keyword, or if that is not appropriate maybe creating a
point or polygon ROI (ENVI_CREATE_ROI/ENVI_GET_ROI_DATA)?

Max
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: really dumb IDL8 IDLDE q...
Next Topic: PUTAST

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

Current Time: Sat Oct 11 00:33:23 PDT 2025

Total time taken to generate the page: 1.99051 seconds