Problem with variables in memory [message #79978] |
Fri, 20 April 2012 11:02 |
Jeff[2]
Messages: 18 Registered: November 2007
|
Junior Member |
|
|
I have a problem with variables in memory (I guess)... sorry, it's a
beginner question.
I'm using the "envi_get_slice" to extract slice profiles from a
hyperspectral image with 270 bands.
For exemple, in order to get the spectral slice of the 10th line and
the 5th column I use:
spectral_profile = envi_get_slice(fid=fid, pos=indgen(273), line=10,
xe=5, xs=5)
Although it takes some time (there are 270 bands!), it works fine.
However, if I run again the code without changing the x and y (line
and column) the extraction is very very quick!
I tried to use ".reset_session" before running the second time, but it
doesn't work. As I am studying the speed of this extraction process I
need to measure the real time.
Does anyone has any tips to reset variables without leaving IDL?
Thanks
|
|
|