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

Home » Public Forums » archive » array summation
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: array summation [message #93448 is a reply to message #93441] Tue, 19 July 2016 09:46 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Tuesday, July 19, 2016 at 9:45:12 AM UTC-4, AGW wrote:
> Hi,
> my IDL program as
>
> file='c:\a.sav'
> restore,file,/st
>
> V=[12,55,44,88,99]
>
> x=sT[500,1000,15,0] ; it is an image
>
> y=sT[500,1000,15,2] ; it is an image
>
> I want to make
>
> z=SUM(v*[x+y])
>
>
> I want to result of z array as [500,1000,15,1], How can I do it ?

It's not possible with the information you provided.
V is a 5 element vector.
X and Y are single scalar values, not images
The math you describe doesn't make sense with those inputs.

CM
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: table in fits format
Next Topic: Scrollwindow WSET problem

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

Current Time: Wed Oct 08 14:00:39 PDT 2025

Total time taken to generate the page: 0.00594 seconds