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

Home » Public Forums » archive » !order
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
!order [message #11651] Wed, 20 May 1998 00:00 Go to next message
noname is currently offline  noname
Messages: 5
Registered: May 1998
Junior Member
Hi,

I think a don't understand very well the !order command. How can I
develop a prog
that will work fine on evry display? How can I check if the current
screen is need
!order = 0 or = 1?

Thank for your help, I'm newbie

Skiso
Re: !order [message #11652 is a reply to message #11651] Tue, 19 May 1998 00:00 Go to previous messageGo to next message
mgs is currently offline  mgs
Messages: 144
Registered: March 1995
Senior Member
In article <35623995.E5B3D072@nothing.net>, noname@nothing.net wrote:

> Hi,
>
> I think a don't understand very well the !order command. How can I
> develop a prog
> that will work fine on evry display? How can I check if the current
> screen is need
> !order = 0 or = 1?
>
> Thank for your help, I'm newbie
>
> Skiso

As you start your program or function you can get the value of the !Order
variable, then set it to whatever you like. As you exit your program, be
sure to set it back to the original value.

oldOrder = !Order ; get the current value
!Order = 1 ; set it to whatever you want
... ; enter all of your program steps
!Order = oldOrder ; set the order value back to the original

--
Mike Schienle Interactive Visuals
mgs@sd.cybernex.net http://ww2.sd.cybernex.net/~mgs/
Re: !order [message #11654 is a reply to message #11651] Tue, 19 May 1998 00:00 Go to previous messageGo to next message
davidf is currently offline  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/
Re: !order [message #11827 is a reply to message #11651] Fri, 22 May 1998 00:00 Go to previous message
dlhopols is currently offline  dlhopols
Messages: 10
Registered: April 1998
Junior Member
In article <6jv3si$jrr@post.gsfc.nasa.gov>,
thompson@orpheus.nascom.nasa.gov (William Thompson) wrote:
>
> noname@nothing.net writes:
>
>> Hi,
>
>> I think a don't understand very well the !order command. How can I
>> develop a prog
>> that will work fine on evry display? How can I check if the current
>> screen is need
>> !order = 0 or = 1?

I found it easier to ROTATE the original image so that its orientation matches
the default. Setting and resetting the !order gets confusing.

Rose



-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Anybody tried constrained_min in 5.1 yet ?
Next Topic: IDL Emacs mode 1.41

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

Current Time: Wed Oct 08 15:12:11 PDT 2025

Total time taken to generate the page: 0.00597 seconds