Re: country outlines [message #65492] |
Fri, 06 March 2009 07:57  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
oxfordenergyservices@googlemail.com writes:
> Thanks david, I'll have a look at that, although my problem is not the
> poor resulution but matching it to the window ie
>
> window,1,xsize=3D14*50,ysize=3D20*50
> MAP_SET, /cylindrical, 0, 0, 0, noborder=3D1,/ISOTROPIC, $
> /HORIZON, /GRID, COLOR=3Dblack ,limit=3D[44,-10,64,4]
> MAP_CONTINENTS
>
> gives the map and the long and lat lines, but they don't go to the
> edge of the window. i want to bytscl an array which is fltarr
> (14*50,20*50) and plot the border over the top?
Take off your ISOTROPIC keyword and set XMARGIN and YMARGIN to 0.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: country outlines [message #65493 is a reply to message #65492] |
Fri, 06 March 2009 07:47   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
oxfordenergyservices@googlemail.com writes:
> Thanks david, I'll have a look at that, although my problem is not the
> poor resulution but matching it to the window ie
>
> window,1,xsize=3D14*50,ysize=3D20*50
> MAP_SET, /cylindrical, 0, 0, 0, noborder=3D1,/ISOTROPIC, $
> /HORIZON, /GRID, COLOR=3Dblack ,limit=3D[44,-10,64,4]
> MAP_CONTINENTS
>
> gives the map and the long and lat lines, but they don't go to the
> edge of the window. i want to bytscl an array which is fltarr
> (14*50,20*50) and plot the border over the top?
Ah, yes. Well, about half the map projection tips on my
web site are concerned with just this problem. :-)
I'd start with these:
http://www.dfanning.com/map_tips/precipmap.html
http://www.dfanning.com/map_tips/tiffoverlay.html
http://www.dfanning.com/map_tips/modis_overlay.html
I've even resorted, lately, to putting pictures of sexy
women in the articles to entice people to read them. ;-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: country outlines [message #65494 is a reply to message #65493] |
Fri, 06 March 2009 07:24   |
oxfordenergyservices
Messages: 56 Registered: January 2009
|
Member |
|
|
On 6 Mar, 14:48, David Fanning <n...@dfanning.com> wrote:
> oxfordenergyservi...@googlemail.com writes:
>> I have been using MAP_CONTINENTS but I am not really pleased with the
>> results. I am trying to overlay a map of the UK onto an array which
>> reprtesents geographic data corresponding to the area of the map.
>> Does anyone know how I can get the longs/lats of the coasrtlines out
>> of idl?
>
> You might prefer to use the GSHHS Shoreline dataset.
>
> http://www.dfanning.com/map_tips/gshhs.html
>
> Cheers,
>
> David
Thanks david, I'll have a look at that, although my problem is not the
poor resulution but matching it to the window ie
window,1,xsize=14*50,ysize=20*50
MAP_SET, /cylindrical, 0, 0, 0, noborder=1,/ISOTROPIC, $
/HORIZON, /GRID, COLOR=black ,limit=[44,-10,64,4]
MAP_CONTINENTS
gives the map and the long and lat lines, but they don't go to the
edge of the window. i want to bytscl an array which is fltarr
(14*50,20*50) and plot the border over the top?
Russ
|
|
|
|
Re: country outlines [message #65546 is a reply to message #65492] |
Tue, 10 March 2009 03:24  |
oxfordenergyservices
Messages: 56 Registered: January 2009
|
Member |
|
|
On 6 Mar, 15:57, David Fanning <n...@dfanning.com> wrote:
> oxfordenergyservi...@googlemail.com writes:
>> Thanks david, I'll have a look at that, although my problem is not the
>> poor resulution but matching it to the window ie
>
>> window,1,xsize=3D14*50,ysize=3D20*50
>> MAP_SET, /cylindrical, 0, 0, 0, noborder=3D1,/ISOTROPIC, $
>> /HORIZON, /GRID, COLOR=3Dblack ,limit=3D[44,-10,64,4]
>> MAP_CONTINENTS
>
>> gives the map and the long and lat lines, but they don't go to the
>> edge of the window. i want to bytscl an array which is fltarr
>> (14*50,20*50) and plot the border over the top?
>
> Take off your ISOTROPIC keyword and set XMARGIN and YMARGIN to 0.
>
> Cheers,
>
> David
Excellent, Many Thanks David
It works a treat! I did start on those links you gave me but got
distracted by things that were less hard!
Russ
|
|
|