map projection [message #90528] |
Fri, 06 March 2015 10:37  |
siumtesfai
Messages: 62 Registered: April 2013
|
Member |
|
|
Hello All,
I need basic help on map projection showing United State
Latitude range [ 25N , 50N]
longitude range [ 190E , 310E]
I tried as follow but the map is stretched
cgMAP_SET, /MERCATOR, /GRID, /CONTINENT, $
POSITION=[0.025, 0.0, 0.525, 0.8], $
LIMIT =[25,190,50,310], /NOERASE, /NOBORDER
I also tried other projections : CYLINDRICAL
Best wishes
|
|
|
Re: map projection [message #90529 is a reply to message #90528] |
Fri, 06 March 2015 10:46   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
siumtesfai@gmail.com writes:
>
> Hello All,
>
> I need basic help on map projection showing United State
>
> Latitude range [ 25N , 50N]
> longitude range [ 190E , 310E]
>
> I tried as follow but the map is stretched
>
> cgMAP_SET, /MERCATOR, /GRID, /CONTINENT, $
> POSITION=[0.025, 0.0, 0.525, 0.8], $
> LIMIT =[25,190,50,310], /NOERASE, /NOBORDER
Try this:
cgMAP_SET, /MERCATOR, $
POSITION=cgAspect((50.-25.)/(310.-190)), $
LIMIT =[25,190,50,310], /NOBORDER
cgMap_Grid
cgMap_Continents
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 projection [message #90530 is a reply to message #90528] |
Fri, 06 March 2015 11:06   |
siumtesfai
Messages: 62 Registered: April 2013
|
Member |
|
|
On Friday, March 6, 2015 at 1:37:38 PM UTC-5, siumt...@gmail.com wrote:
> Hello All,
>
> I need basic help on map projection showing United State
>
> Latitude range [ 25N , 50N]
> longitude range [ 190E , 310E]
>
> I tried as follow but the map is stretched
>
> cgMAP_SET, /MERCATOR, /GRID, /CONTINENT, $
> POSITION=[0.025, 0.0, 0.525, 0.8], $
> LIMIT =[25,190,50,310], /NOERASE, /NOBORDER
>
> I also tried other projections : CYLINDRICAL
>
> Best wishes
Hi
POSITION=cgAspect((50.-25.)/(310.-190))
did not work the aspect ratio
|
|
|
|
Re: map projection [message #90532 is a reply to message #90530] |
Fri, 06 March 2015 11:19   |
siumtesfai
Messages: 62 Registered: April 2013
|
Member |
|
|
On Friday, March 6, 2015 at 2:06:53 PM UTC-5, siumt...@gmail.com wrote:
> On Friday, March 6, 2015 at 1:37:38 PM UTC-5, siumt...@gmail.com wrote:
>> Hello All,
>>
>> I need basic help on map projection showing United State
>>
>> Latitude range [ 25N , 50N]
>> longitude range [ 190E , 310E]
>>
>> I tried as follow but the map is stretched
>>
>> cgMAP_SET, /MERCATOR, /GRID, /CONTINENT, $
>> POSITION=[0.025, 0.0, 0.525, 0.8], $
>> LIMIT =[25,190,50,310], /NOERASE, /NOBORDER
>>
>> I also tried other projections : CYLINDRICAL
>>
>> Best wishes
>
> Hi
>
> POSITION=cgAspect((50.-25.)/(310.-190))
> did not work the aspect ratio
Updated and tried . It did not work. Thanks
|
|
|
|