Re: map_set, date line problem [message #19500] |
Tue, 21 March 2000 00:00  |
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
|
|
|