Re: MAP_CONTINENTS,/HIRES does not match MAP_CONTINENTS,/HIRES,/USA [message #84076] |
Thu, 25 April 2013 09:31 |
MarioIncandenza
Messages: 231 Registered: February 2005
|
Senior Member |
|
|
On Thursday, April 25, 2013 8:16:45 AM UTC-7, David Fanning wrote:
> Be sure to get his number in Tahiti. After you finish rewriting his
> code, you may be ready to retire, too. :-)
Tahiti... I can't find it... wait, it's an island, isn't it.
|
|
|
Re: MAP_CONTINENTS,/HIRES does not match MAP_CONTINENTS,/HIRES,/USA [message #84078 is a reply to message #84076] |
Thu, 25 April 2013 08:16  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
AMS writes:
> The routines I use were written by someone else (no longer here) about a decade ago... so even if it's a direct replacement, I'll probably want to clear up and rewrite other parts of the code, too!
Be sure to get his number in Tahiti. After you finish rewriting his
code, you may be ready to retire, too. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: MAP_CONTINENTS,/HIRES does not match MAP_CONTINENTS,/HIRES,/USA [message #84079 is a reply to message #84078] |
Thu, 25 April 2013 08:09  |
Andy Sayer
Messages: 127 Registered: February 2009
|
Senior Member |
|
|
The routines I use were written by someone else (no longer here) about a decade ago... so even if it's a direct replacement, I'll probably want to clear up and rewrite other parts of the code, too!
Andy
On Thursday, April 25, 2013 10:49:32 AM UTC-4, David Fanning wrote:
> AMS writes:
>
>
>
>> Thanks for the tip, David. I have some mapping routines built around the default IDL routines. It's time I went through and rewrote a more capable routine, though, and should probably use this as a base in it. It's just getting around to taking the plunge...
>
>
>
> I tried hard to make cgMap_GSHHS a direct replacement for
>
> MAP_CONTINENTS. If this is the least bit difficult, then I haven't done
>
> my job very well and we can blame Coyote. :-)
>
>
>
> Cheers,
>
>
>
> David
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: MAP_CONTINENTS,/HIRES does not match MAP_CONTINENTS,/HIRES,/USA [message #84081 is a reply to message #84079] |
Thu, 25 April 2013 07:49  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
AMS writes:
> Thanks for the tip, David. I have some mapping routines built around the default IDL routines. It's time I went through and rewrote a more capable routine, though, and should probably use this as a base in it. It's just getting around to taking the plunge...
I tried hard to make cgMap_GSHHS a direct replacement for
MAP_CONTINENTS. If this is the least bit difficult, then I haven't done
my job very well and we can blame Coyote. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: MAP_CONTINENTS,/HIRES does not match MAP_CONTINENTS,/HIRES,/USA [message #84083 is a reply to message #84081] |
Thu, 25 April 2013 07:40  |
Andy Sayer
Messages: 127 Registered: February 2009
|
Senior Member |
|
|
Thanks for the tip, David. I have some mapping routines built around the default IDL routines. It's time I went through and rewrote a more capable routine, though, and should probably use this as a base in it. It's just getting around to taking the plunge...
Andy
On Thursday, April 25, 2013 9:35:14 AM UTC-4, David Fanning wrote:
> AMS writes:
>
>
>
>> Ed, I've noticed this too, but had assumed I was Doing Something Wrong. So it's reassuring (was going to say 'good', but that's not quite right) that it's not confined to me. In case it helps, I am using IDL 7.1.1 on CentOS.
>
>>
>
>> As another thing which would be nice to change: the Black Sea isn't drawn unless you use /HIRES, and it is a pretty substantial body of water. The Caspian Sea, Aral Sea, and US Great Lakes aren't drawn unless you use /COAST. It would be nice, IMO, to have these all drawn as part of the default map.
>
>
>
> Just a reminder that cgMap_GSHHS can be used with map projections set up
>
> with either MAP_SET (cgMap_Set) or MAP_PROJ_INIT (cgMap) and with any
>
> version of GSHHS from 1.3 though 2.2 (with simple uncommenting of header
>
> code). The GSHHS data is often better (MUCH better, in some cases) than
>
> the MAP_CONTINENTS data and comes in five different resolutions.
>
>
>
> http://www.idlcoyote.com/map_tips/gshhs.html
>
>
>
> If islands are your thing, you are going to love the GSHHS data. :-)
>
>
>
> Cheers,
>
>
>
> David
>
>
>
> P.S. The GSHHS data is used in IDL 8.x function graphics mapping
>
> routines (not sure which IDL version or if all versions), but only in
>
> the high resolution variety. This makes it a little slow to render and
>
> is often complete overkill for what you are trying to do.
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: MAP_CONTINENTS,/HIRES does not match MAP_CONTINENTS,/HIRES,/USA [message #84086 is a reply to message #84083] |
Thu, 25 April 2013 06:56  |
PMan
Messages: 61 Registered: January 2011
|
Member |
|
|
On Wednesday, April 24, 2013 8:39:21 PM UTC-4, Edward Hyer wrote:
> What this means, for instance, is that you can either have the Bahamas more-or-less correct (using the USA flag, oddly enough), or you can show Cuba on the map, but you cannot have both, because the Florida coastline drawn by those two commands does not match.
>
>
>
> I don't have the latest GSHHS (I might be using 1.5 or some other old version), but I note that big islands are missing from GSHHS at some resolutions, and there is inconsistency among resolutions about which islands are present or absent (e.g. Grand Bahama is missing from the 'coarse' map, and Exuma is present in 'coarse' and 'low' but missing from all the finer resolutions) and the finest data does not have all the islands (not even all the ones that MAP_CONTINENTS,/US,/HIRES does).
>
>
>
> I've had better IDL days.
>
>
>
> --Edward H.
I had a problem with 'map_continents, /hires' a few months back - I am not sure if it is related to your problem. But Chris Torrence helped me out by suggesting as a work around that I set CENTER_LONGITUDE=0. That seemed to fix the issue I saw. But it was a bug and a report was submitted.
|
|
|
Re: MAP_CONTINENTS,/HIRES does not match MAP_CONTINENTS,/HIRES,/USA [message #84087 is a reply to message #84086] |
Thu, 25 April 2013 06:35  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
AMS writes:
> Ed, I've noticed this too, but had assumed I was Doing Something Wrong. So it's reassuring (was going to say 'good', but that's not quite right) that it's not confined to me. In case it helps, I am using IDL 7.1.1 on CentOS.
>
> As another thing which would be nice to change: the Black Sea isn't drawn unless you use /HIRES, and it is a pretty substantial body of water. The Caspian Sea, Aral Sea, and US Great Lakes aren't drawn unless you use /COAST. It would be nice, IMO, to have these all drawn as part of the default map.
Just a reminder that cgMap_GSHHS can be used with map projections set up
with either MAP_SET (cgMap_Set) or MAP_PROJ_INIT (cgMap) and with any
version of GSHHS from 1.3 though 2.2 (with simple uncommenting of header
code). The GSHHS data is often better (MUCH better, in some cases) than
the MAP_CONTINENTS data and comes in five different resolutions.
http://www.idlcoyote.com/map_tips/gshhs.html
If islands are your thing, you are going to love the GSHHS data. :-)
Cheers,
David
P.S. The GSHHS data is used in IDL 8.x function graphics mapping
routines (not sure which IDL version or if all versions), but only in
the high resolution variety. This makes it a little slow to render and
is often complete overkill for what you are trying to do.
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: MAP_CONTINENTS,/HIRES does not match MAP_CONTINENTS,/HIRES,/USA [message #84089 is a reply to message #84087] |
Thu, 25 April 2013 06:11  |
Andy Sayer
Messages: 127 Registered: February 2009
|
Senior Member |
|
|
Ed, I've noticed this too, but had assumed I was Doing Something Wrong. So it's reassuring (was going to say 'good', but that's not quite right) that it's not confined to me. In case it helps, I am using IDL 7.1.1 on CentOS.
As another thing which would be nice to change: the Black Sea isn't drawn unless you use /HIRES, and it is a pretty substantial body of water. The Caspian Sea, Aral Sea, and US Great Lakes aren't drawn unless you use /COAST. It would be nice, IMO, to have these all drawn as part of the default map.
Andy
On Wednesday, April 24, 2013 8:39:21 PM UTC-4, Edward Hyer wrote:
> What this means, for instance, is that you can either have the Bahamas more-or-less correct (using the USA flag, oddly enough), or you can show Cuba on the map, but you cannot have both, because the Florida coastline drawn by those two commands does not match.
>
>
>
> I don't have the latest GSHHS (I might be using 1.5 or some other old version), but I note that big islands are missing from GSHHS at some resolutions, and there is inconsistency among resolutions about which islands are present or absent (e.g. Grand Bahama is missing from the 'coarse' map, and Exuma is present in 'coarse' and 'low' but missing from all the finer resolutions) and the finest data does not have all the islands (not even all the ones that MAP_CONTINENTS,/US,/HIRES does).
>
>
>
> I've had better IDL days.
>
>
>
> --Edward H.
|
|
|
Re: MAP_CONTINENTS,/HIRES does not match MAP_CONTINENTS,/HIRES,/USA [message #84094 is a reply to message #84089] |
Wed, 24 April 2013 18:32  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Edward Hyer writes:
>
> What this means, for instance, is that you can either have the Bahamas more-or-less correct (using the USA flag, oddly enough), or you can show Cuba on the map, but you cannot have both, because the Florida coastline drawn by those two commands does not match.
>
> I don't have the latest GSHHS (I might be using 1.5 or some other old version), but I note that big islands are missing from GSHHS at some resolutions, and there is inconsistency among resolutions about which islands are present or absent (e.g. Grand Bahama is missing from the 'coarse' map, and Exuma is present in 'coarse' and 'low' but missing from all the finer resolutions) and the finest data does not have all the islands (not even all the ones that
MAP_CONTINENTS,/US,/HIRES does).
>
> I've had better IDL days.
Join the club! ;-)
I tried version 2.2 of GSHHS in both the i (intermediate resolution) and
h (high resolution) form, and they both work great. :-)
map = cgmap('equirectangular',center_lat=21.0935,center_lon=-73.34 84, $
limit=[21.0935-5, -73.3484-12,21.0935+10, -73.3484+10])
gshhs_file = 'gshhs_i.b'
map->Draw
cgMap_GSHHS, gshhs_file, Map=map
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|