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

Home » Public Forums » archive » how to composite a mapcoord object using geographic coordinate(no 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
how to composite a mapcoord object using geographic coordinate(no projection) [message #87675] Sat, 22 February 2014 01:45 Go to next message
Jie Zhou is currently offline  Jie Zhou
Messages: 27
Registered: February 2014
Junior Member
I want to display a image using selectabledrawwidget. The image hold geographic coordinate (GTCP code 100). When I try to add map grid or outline on the display, I should set a mapcoord for the display. But as I know, the mapcoord definition does not support geographic projection. So anyone know how to process it? or is there any other object can finish the work?
THanks,
Jie
Re: how to composite a mapcoord object using geographic coordinate(no projection) [message #87677 is a reply to message #87675] Sat, 22 February 2014 05:24 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jie Zhou writes:

> I want to display a image using selectabledrawwidget. The image hold geographic coordinate (GTCP code 100). When I try to add map grid or outline on the display, I should set a mapcoord for the display. But as I know, the mapcoord definition does not support geographic projection. So anyone know how to process it? or is there any other object can finish the work?

I added the Geographic "projection" to the MapCoord object for you this
morning. You can find it here:


http://www.idlcoyote.com/programs/catalyst/source/coordinate s/mapcoord__
define.pro

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: how to composite a mapcoord object using geographic coordinate(no projection) [message #87754 is a reply to message #87677] Wed, 26 February 2014 04:36 Go to previous messageGo to next message
Jie Zhou is currently offline  Jie Zhou
Messages: 27
Registered: February 2014
Junior Member
On Saturday, February 22, 2014 2:24:48 PM UTC+1, David Fanning wrote:
> Jie Zhou writes:
>
>
>
>> I want to display a image using selectabledrawwidget. The image hold geographic coordinate (GTCP code 100). When I try to add map grid or outline on the display, I should set a mapcoord for the display. But as I know, the mapcoord definition does not support geographic projection. So anyone know how to process it? or is there any other object can finish the work?
>
>
>
> I added the Geographic "projection" to the MapCoord object for you this
>
> morning. You can find it here:
>
>
>
>
>
> http://www.idlcoyote.com/programs/catalyst/source/coordinate s/mapcoord__
>
> define.pro
>
>
>
> 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.")

Hi David,
Your new released Mapcoord file which try to include the geographic projection may have some thing wrong. The line 906, a geographic projection cannot be set a center_longitude keyword.
Re: how to composite a mapcoord object using geographic coordinate(no projection) [message #87755 is a reply to message #87754] Wed, 26 February 2014 05:20 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jie Zhou writes:

> Your new released Mapcoord file which try to include the geographic projection may have some thing wrong. The line 906, a geographic projection cannot be set a center_longitude keyword.

What version of IDL are you using? I have no problem with this at all. I
think the Geographic "projection" was a fairly recent addition. Can you
send me the exact error message.

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: how to composite a mapcoord object using geographic coordinate(no projection) [message #87757 is a reply to message #87755] Wed, 26 February 2014 05:27 Go to previous messageGo to next message
Jie Zhou is currently offline  Jie Zhou
Messages: 27
Registered: February 2014
Junior Member
On Wednesday, February 26, 2014 2:20:25 PM UTC+1, David Fanning wrote:
> Jie Zhou writes:
>
>
>
>> Your new released Mapcoord file which try to include the geographic projection may have some thing wrong. The line 906, a geographic projection cannot be set a center_longitude keyword.
>
>
>
> What version of IDL are you using? I have no problem with this at all. I
>
> think the Geographic "projection" was a fairly recent addition. Can you
>
> send me the exact error message.
>
>
>
> 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.")

I use the IDL 8.0.1. The error message just said: the geographic projection does not center_longitude keyword. It worked after I remove the keyword.
Re: how to composite a mapcoord object using geographic coordinate(no projection) [message #87759 is a reply to message #87757] Wed, 26 February 2014 05:34 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jie Zhou writes:

> I use the IDL 8.0.1. The error message just said: the geographic projection does not center_longitude keyword. It worked after I remove the keyword.

Well, don't know. Same code worked perfectly here. You can try it
yourself another way:

struct = map_proj_init('geographic', center_longitude=90)

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: Re: how to composite a mapcoord object using geographic coordinate(no projection)
Next Topic: Bar coordinate shift with cgBarPlot

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

Current Time: Wed Oct 08 11:44:14 PDT 2025

Total time taken to generate the page: 0.00605 seconds