Re: !order [message #11654 is a reply to message #11651] |
Tue, 19 May 1998 00:00   |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
noname@nothing.net (noname@nothing.net) writes:
> I think a don't understand very well the !order command.
Some people (and IDL) prefer that the 0th row and 0th column
appear at the lower-left corner of the image. This is the
convention used when !Order is set to 0. Other people
(and most TIFF files) prefer that the 0th row and column
appear in the upper-left corner of the image. This is the
convention when !Order is set to 1. There are about as many
people in the first group as there are in the group that
says toe-may-toe. The other group says toe-mah-toe.
> How can I develop a prog
> that will work fine on evry display?
Give the users a way to switch if they don't like what
they see. This is most often done with a keyword:
PRO MyFineProg, image, Order=order
TV, image, Order=Keyword_Set(order)
END
If someone runs your program:
IDL> MyFineProg, thisImage
and doesn't like what they see, they will run it like
this next time:
IDL> MyFineProg, thisImage, /Order
> How can I check if the current screen is need
> !order = 0 or = 1?
You can't. It's not up to the screen. It's not even up
to you. It is up to the user of your program. Just give
them a way to do what they want to do.
You can find more good information about writing IDL
programs on my web page and in my IDL Programming
Techniques book.
Cheers,
David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|