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

Home » Public Forums » archive » Mapping issue with mapcontinents, /usa and /canada ......
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Mapping issue with mapcontinents, /usa and /canada ...... [message #93522] Wed, 10 August 2016 10:04 Go to next message
Geo is currently offline  Geo
Messages: 8
Registered: December 2015
Junior Member
Hi there,

Does anyone know what is going on here. Basically I am doing some New Graphics mapping stuff. I need continental outlines, but i also want the US states and the Canadian provinces.

This should be straightforward - mapcontinents has /usa and /canada options....
but when I do this the coastal outlines are not consistent.

To show you what I mean - this code shows the issue perfectly with either mapping. Check the outline of Florida or California - the continent outline (black) and the USA outline (red) do not match up at all. Total mess.

I can't believe I'm the first person to notice this - but does anyone have a solution?

Any help appreciated

Cheers

George.



pro map_issue

; North America....

; map = map('geographic', center_longitude=-105, $
; dimensions=[1200,900], limit=[20,-165,85,-45], $
; fill_color="white", linestyle='dotted', $
; label_position=0, font_size=12, $
; margin=[0.05,0.1,0.05,0.1], aspect_ratio=0)

; North America

map = map('orthographic', center_longitude=-105, $
dimensions=[1600,900], limit=[20,-165,85,-45], $
fill_color="white", linestyle='dotted', $
label_position=0, font_size=14, $
margin=[0.05,0.1,0.05,0.1], aspect_ratio=0)

m0 = MAPCONTINENTS(fill_background = 0)
m1 = MAPCONTINENTS(/USA, fill_background = 0, color = 'red')
m2 = MAPCONTINENTS(/CANADA, fill_background = 0, color = 'blue')


end
Re: Mapping issue with mapcontinents, /usa and /canada ...... [message #93524 is a reply to message #93522] Wed, 10 August 2016 14:32 Go to previous message
Geo is currently offline  Geo
Messages: 8
Registered: December 2015
Junior Member
On Wednesday, August 10, 2016 at 11:04:29 AM UTC-6, Geo wrote:
> Hi there,
>
> Does anyone know what is going on here. Basically I am doing some New Graphics mapping stuff. I need continental outlines, but i also want the US states and the Canadian provinces.
>
> This should be straightforward - mapcontinents has /usa and /canada options....
> but when I do this the coastal outlines are not consistent.
>
> To show you what I mean - this code shows the issue perfectly with either mapping. Check the outline of Florida or California - the continent outline (black) and the USA outline (red) do not match up at all. Total mess.
>
> I can't believe I'm the first person to notice this - but does anyone have a solution?
>
> Any help appreciated
>
> Cheers
>
> George.
>
>
>
> pro map_issue
>
> ; North America....
>
> ; map = map('geographic', center_longitude=-105, $
> ; dimensions=[1200,900], limit=[20,-165,85,-45], $
> ; fill_color="white", linestyle='dotted', $
> ; label_position=0, font_size=12, $
> ; margin=[0.05,0.1,0.05,0.1], aspect_ratio=0)
>
> ; North America
>
> map = map('orthographic', center_longitude=-105, $
> dimensions=[1600,900], limit=[20,-165,85,-45], $
> fill_color="white", linestyle='dotted', $
> label_position=0, font_size=14, $
> margin=[0.05,0.1,0.05,0.1], aspect_ratio=0)
>
> m0 = MAPCONTINENTS(fill_background = 0)
> m1 = MAPCONTINENTS(/USA, fill_background = 0, color = 'red')
> m2 = MAPCONTINENTS(/CANADA, fill_background = 0, color = 'blue')
>
>
> end

OK, I figured it out - it's all about using the /hires keyword. I was using hires for the USA - but not for the continents - and there are considerable differences.

Cheers

George.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Running fortran exectuable using IDL spawn fails
Next Topic: Map with specific lon and lat coordinates

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

Current Time: Wed Oct 08 13:28:37 PDT 2025

Total time taken to generate the page: 0.01449 seconds