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

Home » Public Forums » archive » A little help
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: A little help [message #80199 is a reply to message #80060] Thu, 10 May 2012 06:48 Go to previous message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
On Thursday, May 10, 2012 3:08:22 PM UTC+2, nata wrote:
> ok ok . let's try this:
>
> B=INTARR(8,8)
> sz=SIZE(A,/DIM)
> count=0
> FOR i=0, sz[1]-1 DO BEGIN
> curr_A=A[*,i]
> ww=WHERE(curr_A NE 0,nn_w)
> IF nn_w NE 0 THEN BEGIN
> B[*,count]=curr_A[ww]
> count++
> ENDIF
> ENDFOR

hmm... that fails on the row where you meet the 5s and 7s - your WHERE would need to find all 8 members for that row. Need to shift up those 3s...
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: EOS_SW_CREATE HDF function file path issue
Next Topic: Algorithm for PCA transform in ENVI

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

Current Time: Wed Oct 08 15:20:13 PDT 2025

Total time taken to generate the page: 0.00362 seconds