profiles.pro rescued from the heap [message #50031] |
Tue, 05 September 2006 23:00 |
Ken G
Messages: 14 Registered: September 2006
|
Junior Member |
|
|
If anyone besides me is still using the very old, yet convenient,
direct-graphics, IDL library command "profiles.pro" to interactively
find the positions or intensity values within images, using Mac OS X,
you may have noticed that the command has been broken for a while. I
finally got annoyed enough to investigate and I traced the problem to
the cursor command.
Specifically, cursor in OS X, no longer functions properly when there
is any kind of non-zero wait value. But the profiles.pro procedure will
work just fine if the waits are turned off.
So, here is a link to a modified version.
http://lbnl-mug.lbl.gov/idl/
If you'd like to use it, there are at least to ways to do so.
If your path includes your own IDL procedure directories before the IDL
built-in lib directory, then your own version of profiles.pro will be
loaded instead of the one from RSI. In that case, copy the linked text
and save it into a text file called "profiles.pro". Put it with your
own IDL library files.
Alternately, you could copy the text into a file with a different
name (myprofiles.pro) and also modify the line that contains the
procedure name to match. (i.e. change "pro profiles..." to "pro
myprofiles...").
There's also "tvprofiles.pro" which tvscl's the image before running
profiles.pro
There may be some clever way to restore the old functionality, I
suppose, but these fixes will work for now.
|
|
|