output keywords [message #4075] |
Tue, 25 April 1995 00:00 |
orbach
Messages: 9 Registered: June 1994
|
Junior Member |
|
|
Here's a question about output variables and keywords: it seems that I cannot
create a new variable using an output keyword, but can modify an already
existing one. The specific program I wrote is an image viewer, which opens a specified
file and displays an image, and can be called with an additional keyword for output
(e.g. iname = iname). If iname has never been defined before, then after calling my
viewer, if I type: info, iname, I get: INAME UNDEFINED=<Undefined>. However, if
I first define iname, say as a 100*100 fltarr, after running my viewer, iname is rescaled
to fit whatever size the image was that I was viewing (in this example, info, iname) yields:
INAME FLOAT = Array(384, 288). Why is this?
Darren Orbach
|
|
|