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

Home » Public Forums » archive » Re: IDL Syntax ?
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
Re: IDL Syntax ? [message #16881] Thu, 26 August 1999 00:00
m218003 is currently offline  m218003
Messages: 56
Registered: August 1999
Member
In article <37C4534D.CFEC21EB@mindspring.com>,
Eric Kihn <kihn@mindspring.com> writes:
> I'll hope this isn't too FAQ but...
>
> 2) When using Map_Set I see lots of keywords for rotation, orientation,
> etc but nothing to restrict the displayed lat lon. If what I want is a
> lat-lon box (Not global) with continent overlays for example should I be
> using something else? I'll gladly take and RTFM if someone can say
> which FM?

LIMIT = [ latsouth, lonwest, latnorth, loneast ]
Caution: If you don't cover the Greenwich meridian, you need to set the
LON0 parameter to a value within your LIMIT.

Example: MAP_SET,0,-80,LIMIT= ,/CONTINENTS,/GRID,/ISO

gives you a map of North America.

Martin.

> --
>
> Thanks,
>
> Eric Kihn
> kihn@mindspring.com

--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 441787 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
Re: IDL Syntax ? [message #16887 is a reply to message #16881] Wed, 25 August 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Eric Kihn (kihn@mindspring.com) writes:

> I'll hope this isn't too FAQ but...
>
> 1) Is there an escape sequence for IDL strings? Ie if what I want is
>
> Hello <return>
> There.

Depends on what you are doing here. If you are trying
to print it, you can do this:

Print, "Hello" + String(10b) + "There"

If you are putting it on a title of a plot, or
writing it into a graphics window, you can do this:

XYOutS, 0.5, 0.5, Align=0.5, /Normal, "Hello!CThere"

> 2) When using Map_Set I see lots of keywords for rotation, orientation,
> etc but nothing to restrict the displayed lat lon. If what I want is a
> lat-lon box (Not global) with continent overlays for example should I be
> using something else? I'll gladly take and RTFM if someone can say
> which FM?

Not sure what you are asking for with "lat-lon box",
but perhaps it is the LIMIT keyword. (?)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: IDL Syntax ? [message #16888 is a reply to message #16887] Wed, 25 August 1999 00:00 Go to previous message
kluegel is currently offline  kluegel
Messages: 11
Registered: February 1999
Junior Member
In article <37C4534D.CFEC21EB@mindspring.com>,
Eric Kihn <kihn@mindspring.com> wrote:
> 1) Is there an escape sequence for IDL strings? Ie if what I want is
>
> Hello <return>
> There.

Some ways to accomplish it:

PRINT, 'Hello', STRING( 13B ), STRING( 10B ), 'World'
PRINT, 'Hello', STRING( [13B,10B] ), 'World'
PRINT, FORMAT='(A/A)', 'Hello', 'World'

-- Tom




Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL FAQ server running again
Next Topic: Losing Windows GDI Resources to IDL

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

Current Time: Sat Oct 11 10:35:30 PDT 2025

Total time taken to generate the page: 0.96265 seconds