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

Home » Public Forums » archive » Re: map_set, date line problem
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: map_set, date line problem [message #19500] Tue, 21 March 2000 00:00
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
jogi38@my-deja.com wrote:
>
> Dear folks,
>
> I'm a truly beginner with IDL and just encounter a
> problem I can't handle with the manuals I have.
>
> I just tried to plot a map with the longitude
> limits 165 E - 140 W. So I used the eight element
> form of the LIMITS vector and put in the
> coordinates of my edges. What I got is a blank
> picture. If I use the four element vector with
> lonmin, lonmax parameters I ran in the problem
> that lonmax must be -140 and lonmin 165. A
> conversion to 0 - 360 degrees wasn't successful.
>
> So have anybody a solution for the beginner?

Here is one possible solution for a cylindrical projection...

latmin = -90. ; Southern-most latitude
latmax = 90. ; Northern-most latitude
lonleft = 165. ; Lefthand longitude
lonrght = -140. + 360. ; Righthand longitude
lat_center = .5*(latmin + latmax) ; Center latitude
lon_center = .5*(lonleft + lonrght) ; Center longitude
map_set,lat_center,lon_center,limit=[latmin,lonleft,latmax,l onrght],/cont,/iso

--------
Andrew F. Loughe email:loughe@fsl.noaa.gov phone:(303)497-6211
Re: map_set, date line problem [message #19508 is a reply to message #19500] Tue, 21 March 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Joerg (jogi38@my-deja.com) writes:

> I'm a truly beginner with IDL and just encounter a
> problem I can't handle with the manuals I have.
>
> I just tried to plot a map with the longitude
> limits 165 E - 140 W. So I used the eight element
> form of the LIMITS vector and put in the
> coordinates of my edges. What I got is a blank
> picture. If I use the four element vector with
> lonmin, lonmax parameters I ran in the problem
> that lonmax must be -140 and lonmin 165. A
> conversion to 0 - 360 degrees wasn't successful.
>
> So have anybody a solution for the beginner?

I guess if I was a beginner I'd spend some time
poking around that Coyote site. I'd probably start
with this article:

http://www.dfanning.com/tips/map_center.html

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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Strange Linux colors
Next Topic: 3-d viewing

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

Current Time: Fri Oct 10 10:21:33 PDT 2025

Total time taken to generate the page: 1.76061 seconds