map_continents,/hires problem in IDL 5.0.3 [message #10497] |
Wed, 10 December 1997 00:00  |
f055
Messages: 29 Registered: April 1995
|
Junior Member |
|
|
I have just installed IDL 5.0.3 on our Digital Alpha (Dig. UNIX 4.0) having
previously had IDL 5.0.2. I got it via ftp, and since the high resolution
coastlines only come on CD I had to copy my 5.0.2 hires coastline files to
my 5.0.3 directory.
When using the hires coastlines, however, 5.0.3 doesn't work properly.
Depending upon what region is being used, various bits are missing. Try
the following:
window,ysize=850
!p.multi=[0,1,2,0,0]
;
; Global works fine
;
map_set,/advance
map_continents
map_set,/advance
map_continents,/hires
;
; Regional works fine
;
map_set,/advance,limit=[0,-90,90,90]
map_continents
map_set,/advance,limit=[0,-90,90,90]
map_continents,/hires
;
; Where is Greenland, Iceland and Svalbard in the hi-res version?
;
map_set,/advance,limit=[30,-50,80,50]
map_continents
map_set,/advance,limit=[30,-50,80,50]
map_continents,/hires
;
; Where is Britain?
;
map_set,/advance,limit=[45,-15,65,15]
map_continents
map_set,/advance,limit=[45,-15,65,15]
map_continents,/hires
If I try map_continents,/hires,/coasts then I get Britain, but also many
lakes that I do not want.
I don't think that this problem is related to my using 5.0.2 coastlines with
5.0.3 since the release notes do not indicate a change in the files. But,
map_continents.pro has been changed slightly. Try
UNIX> diff $IDL_DIR/lib/map_continents.pro $IDL5.0.2_DIR/lib
and you get
1c1
< ; $Id: map_continents.pro,v 1.20 1997/10/01 16:38:40 dave Exp $
---
> ; $Id: map_continents.pro,v 1.19 1997/03/26 00:15:35 dave Exp $
177c177
< ((ndx.lonmin lt lonmax) and (ndx.lonmax gt lonmin)), count)
---
> ((ndx.lonmin lt lonmax) OR (ndx.lonmax gt lonmin)), count)
180c180
< subs = where((ndx.lonmin lt lonmax) and (ndx.lonmax gt lonmin), count)
---
> subs = where((ndx.lonmin lt lonmax) OR (ndx.lonmax gt lonmin), count)
186c186
<
---
>
Two ORs have been changed to ANDs. If I try IDL 5.0.3 but compile the old
map_continents
IDL> .run <path of IDL5.0.2>/lib/map_continents.pro
then the above examples work fine.
Has anyone else encountered problems like this. Can I just stick with the
old map_continents.pro, or have the ORs been changed to ANDs for a reason?
Tim
......................... Dr Tim Osborn . t.osborn@uea.ac.uk
.... ___/.. __ /.. /.. /. Senior Research Associate . phone:01603 592089
... /..... /. /.. /.. /.. Climatic Research Unit . fax: 01603 507784
.. /..... __/.. /.. /... School of Environmental Sciences.
. /..... /\ ... /.. /.... University of East Anglia .
____/.._/..\_..____/..... Norwich NR4 7TJ .
......................... UK .
|
|
|