comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: mapcontinents with /hires option failing
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: mapcontinents with /hires option failing [message #83323 is a reply to message #83320] Fri, 22 February 2013 07:22 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> I'm guessing it probably has more to do with the Map or MapContinents
> functions not working properly, because there doesn't seem to be
> anything wrong with the HIRES data. These commands work correctly:
>
> mapCoord = cgMap('Equirectangular', LIMIT=[35, -6 , 37 , -4], $
> Position=[0.1, 0.1, 0.9, 0.9])
> cgDisplay
> mapCoord ->draw
> cgColorFill, Position=[0.1, 0.1, 0.9, 0.9], color='sky blue'
> cgMap_Continents, color='tan', MAP=mapCoord, /Fill, /HiRes
> cgMap_Grid, /Box_Axes, /Label, Map=mapCoord

It occurs to me that the MapContinents function might be using GSHHS
shoreline data, and that might be the problem. So, I tried the same
thing with high resolution GSHHS data:

mapCoord = cgMap('Equirectangular', LIMIT=[35, -6 , 37 , -4], $
Position=[0.1, 0.1, 0.9, 0.9])
cgDisplay
mapCoord ->draw
cgColorFill, Position=[0.1, 0.1, 0.9, 0.9], color='sky blue'
cgMap_GSHHS, 'C:\IDL\data\gshhs\gshhs_2.2\gshhs\gshhs_h.b', $
Map=mapCoord, Color='tan', /Fill,
cgMap_Grid, /Box_Axes, /Label, Map=mapCoord

This works perfectly, too. So, I don't think there is anything wrong
with the HIRES data. I think the problem must be in MapContinents.

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: mapcontinents with /hires option failing
Next Topic: Re: Contour mapping of elevation points

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

Current Time: Fri Oct 10 00:45:57 PDT 2025

Total time taken to generate the page: 1.52077 seconds