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

Home » Public Forums » archive » problem with idl program
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
problem with idl program [message #92781] Fri, 26 February 2016 11:37
Ali Gamal is currently offline  Ali Gamal
Messages: 98
Registered: June 2013
Member
I want to calculate this equation

λ=(∑▒〖λ_i [1-((I_i+V_i)/I_c)]〗)/(∑▒〖[1-((I_i+V_i)/I_c)]〗)

Where
IDL> help, image
Image FLOAT = Array [500, 1000, 20, 4]
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
I=image (*,*,*, 0)
V=image (*,*,*, 3)
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
I write idl program as
close, 1
restore,file='D:\Science\image.sav’
ic=mean(reform(image[*,*,0:6,0]))
nx=500
ny=1000
for i=0,nx-1 Do begin
for j=0,ny-1 Do begin
I1=image[i:nx-1,j:ny-1,*,0]
V1=image[i:nx-1,j:ny-1,*,3]
wave1=fltarr(TOTAL(wave*(1-((I1+V1)/IC)),/cumulative))
wave2=fltarr(TOTAL(1-((I1+V1)/IC),/cumulative))
Pwave=fltarr(wave1/wave2)
endfor
endfor
tvscl,I1
end

the problem is no image are appears, black screen only
please help
[Message index]
 
Read Message
Previous Topic: Running a code multiple times automatically
Next Topic: Re: Open Source LiDAR LAS file manipulator for IDL and ENVI

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

Current Time: Wed Oct 08 15:37:26 PDT 2025

Total time taken to generate the page: 0.00393 seconds