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

Home » Public Forums » archive » Re: 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 #84670 is a reply to message #80053] Thu, 10 May 2012 05:22 Go to previous messageGo to previous message
Vincent Sarago is currently offline  Vincent Sarago
Messages: 34
Registered: September 2011
Member
Nata is wright, but if you don't know the result size (8x8) you can try that :

a = intarr(10,10) + 1
a[*,4] = 0
a[4,*] = 0

print, a
print

nRow = (size(a))[2]

b = list()

for ii = 0, nRow - 1 do begin
test = where(a[*,ii] ne 0, count)
if count ne 0 then b.add, a[test,ii]
endfor

print, b
print

c = b.ToArray(TYPE=5, MISSING = !VALUES.D_NAN)

help, c
print, c

END








On Thursday, May 10, 2012 2:10:47 PM UTC+2, nata wrote:
> Sorry, you have to use REFORM instead of REBIN !
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: A little help....
Next Topic: Widget to play and pause image stack display

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

Current Time: Fri Oct 10 00:05:51 PDT 2025

Total time taken to generate the page: 0.65506 seconds