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

Home » Public Forums » archive » Re: Extracting from Strutures
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Extracting from Strutures [message #73873] Tue, 07 December 2010 01:11
sirvival is currently offline  sirvival
Messages: 18
Registered: August 2010
Junior Member
Thanks works perfekt!
Re: Extracting from Strutures [message #73884 is a reply to message #73873] Mon, 06 December 2010 07:20 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Dec 6, 5:24 am, sirvival <fpfei...@hs.uni-hamburg.de> wrote:

> My first try:
>
> for i = 0, numfiles-1 do begin
>   first = where(alladdup.expo eq alladdup[i].expo)
>   plot,alladdup[i].images,psym=10
>   for j = 0, n_elements(first)-1 do
> oplot,alladdup[first[j]].images,psym=10,col=j+1
> endfor
>
> This gives me the plots but as expo repeats I get the same plot again
> and again
>
> Or how can I write code that for each expo a different structure gets
> written?

Perhaps you want to make a vector of unique exposure times?

expo = alladup.expo
expo = expo[ uniq(expo,sort(expo)) ]

for i = 0, N_elements(expo)-1 do begin
first = where(alladdup.expo eq expo[i])
plot,alladdup[first[0]].images,psym=10
for j = 1, n_elements(first)-1 do
oplot,alladdup[first[j]].images,psym=10,col=j+1
endfor

which presumes that you have at least 2 images at each unique exposure
time. --Wayne
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Convert animated GIF to MPEG
Next Topic: Re: Convert animated GIF to MPEG

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

Current Time: Wed Oct 08 18:35:39 PDT 2025

Total time taken to generate the page: 0.01525 seconds