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

Home » Public Forums » archive » map projection
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
map projection [message #90528] Fri, 06 March 2015 10:37 Go to next message
siumtesfai is currently offline  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 Go to previous messageGo to next message
David Fanning is currently offline  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 Go to previous messageGo to next message
siumtesfai is currently offline  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 #90531 is a reply to message #90530] Fri, 06 March 2015 11:11 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
siumtesfai@gmail.com writes:

> POSITION=cgAspect((50.-25.)/(310.-190))
> did not work the aspect ratio

Update your Coyote Library:

http://idlcoyote.com/code_tips/fixcoyoteprogram.php

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 #90532 is a reply to message #90530] Fri, 06 March 2015 11:19 Go to previous messageGo to next message
siumtesfai is currently offline  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
Re: map projection [message #90533 is a reply to message #90532] Fri, 06 March 2015 11:25 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
siumtesfai@gmail.com writes:

> Updated and tried . It did not work. Thanks

Works here. :-)

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: histogram function question
Next Topic: JBIU

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

Current Time: Wed Oct 08 11:37:51 PDT 2025

Total time taken to generate the page: 0.00515 seconds