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

Home » Public Forums » archive » Problem with variables in memory
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 variables in memory [message #79978] Fri, 20 April 2012 11:02
Jeff[2] is currently offline  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
[Message index]
 
Read Message
Previous Topic: Manipulation with 4D data in iVolume tool
Next Topic: Re: Problem with variables in memory

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

Current Time: Fri Oct 10 09:47:25 PDT 2025

Total time taken to generate the page: 0.00168 seconds