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 
Return to the default flat view Create a new topic Submit Reply
Re: map_set, date line problem [message #19500] Tue, 21 March 2000 00:00 Go to previous message
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
[Message index]
 
Read Message
Read Message
Previous Topic: Strange Linux colors
Next Topic: 3-d viewing

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

Current Time: Fri Oct 10 20:35:54 PDT 2025

Total time taken to generate the page: 0.08254 seconds