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

Home » Public Forums » archive » Map spanning Dateline?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Map spanning Dateline? [message #14276 is a reply to message #14193] Wed, 03 February 1999 00:00 Go to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
John Kwiatkowski wrote:
>
> I can't figure out how to draw a map that spans the International
> Dateline, i.e., the meridion where longitude is 180 (or -180).
>
> If I go right up to the dateline but not over it, I get a nice map
> including Japan:
> map_set,/grid, /continent,limit = [0,100,50,180]
>
> However, if I cross the dateline I get some gridlines but no Japan:
> map_set,/grid, /continent,limit = [0,100,50,-160]
>
> If I use the limit keyword with 8 elements, either
> map_set,/grid, /continent,limit = [50,100,50,-160,0,-160,0,100] or
> map_set,/grid, /continent,limit = [0,100,50,100,50,-160,0,-160]
> I get a blank window.
>
> Also, I can't seem to get the limit (4 element) keyword to behave.
> For example , if I want a map of Florida limit =[20,-88,30,-80]
> map_set,limit=[20,-88,30,-80],/cont,/label
>
> I get a map from 20 to 26 lat and -88 to -82 lon. How can I force it
> to listen to my limits?
>
> Thanks for any help,
> John Kwiatkowski

Oh yeah! My fun subject ;-)

You'll need to set the map origin somewhere within your LIMITs and make
sure that limit is monotonically increasing. Example:

map_set,0,175,limit=[-50,140,50,210]

that should work.

BTW: If you are planning to overlay contours on your map: make sure your
data is sorted correctly and within your map range. This has caused so
much trouble already ...

Martin.


--
------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Engineering&Applied Sciences, Harvard University
109 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA

phone: (617)-496-8318
fax : (617)-495-4551

e-mail: mgs@io.harvard.edu
Internet-homepage: http://www-as.harvard.edu/people/staff/mgs/
------------------------------------------------------------ -------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: N_ELEMENTS and WHERE: Scalar or Array ?
Next Topic: Re: TIFF compression

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

Current Time: Sat Oct 11 10:34:32 PDT 2025

Total time taken to generate the page: 0.15928 seconds