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

Home » Public Forums » archive » summation of bands
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: summation of bands [message #76032 is a reply to message #75953] Fri, 13 May 2011 04:14 Go to previous messageGo to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On May 13, 7:09 am, Corinne <corinnef...@gmail.com> wrote:
> Hi
>
> try something like this
>
> outdata = yourdata[*,*,0]
>
> FOR i = 1, N_ELEMENTS(yourdata[0,0,*]) -1 DO BEGIN
>   outdata = outdata + yourdata[*,*,i]
> ENDFOR
>
> maybe there is a faster way to do it, but i am not aware of.
>
> cheers,
> corinne
>
> On 5 Mai, 07:42, PRABHJOT KAUR <prabh....@gmail.com> wrote:
>
>
>
>
>
>
>
>> I have to do summation or integration of 37 bands of an hyperspectral
>> image in IDL to get final none output image. I tried with total
>> command but its not giving any result. Please help me as I am new in
>> this field.

outdata = total(yourdata,3)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multiple Window
Next Topic: Re: Loading Sorted Images into a 3D array

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

Current Time: Fri Oct 10 02:25:46 PDT 2025

Total time taken to generate the page: 1.36048 seconds