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

Home » Public Forums » archive » Re: Multiply matrix
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: Multiply matrix [message #52642 is a reply to message #52638] Sun, 18 February 2007 07:12 Go to previous messageGo to previous message
L. Testut is currently offline  L. Testut
Messages: 16
Registered: January 2006
Junior Member
On 16 fév, 21:36, "hradilv" <hrad...@yahoo.com> wrote:
> On Feb 16, 2:24 pm, "Bob Crawford" <Snowma...@gmail.com> wrote:> > filter = [[filter*0],[filter*0],[filter]]
>>> hnew = h*filter
>
>> That would zero out all the lat & lon values wouldn't it?
>
>> filter = [[filter/filter],[filter/filter],[filter]]
>
>> should retain the lat & lon values.
>
> Of course, I was trying to do two things at once...

Sorry it doesn't work in my case I want to avoid this loop:

FOR I=0,nz-1 DO
z[indgen(nx),indgen(ny),I]=Z[indgen(nx),indgen(ny),I]*filter

I have a H[nx,ny,nz] where nz is the time. So i have nz field in time
that i want to multiply by a filter of size nz.

Is it possible to avoid this loop ?

Thanks
Laurent
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Image profiles along a curved line
Next Topic: Retrieving variables from a subroutine

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

Current Time: Fri Oct 10 12:14:40 PDT 2025

Total time taken to generate the page: 0.88518 seconds