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