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

Home » Public Forums » archive » About the Cartesian coordinates of MAP_PROJ_FORWARD
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
About the Cartesian coordinates of MAP_PROJ_FORWARD [message #62844] Fri, 10 October 2008 00:39 Go to next message
Dave[4] is currently offline  Dave[4]
Messages: 38
Registered: December 2007
Member
Dear friends:
I have a simple question. Function "MAP_PROJ_FORWARD" transforms map
coordinates from longitude and latitude to Cartesian (x, y)
coordinates. I am confused about the Cartesian coorindates. What units
and origin of the Cartesian coorindates? Is its units meter?


Dave
Re: About the Cartesian coordinates of MAP_PROJ_FORWARD [message #63017 is a reply to message #62844] Thu, 16 October 2008 12:07 Go to previous message
jameskuyper is currently offline  jameskuyper
Messages: 79
Registered: October 2007
Member
Dave wrote:
> Dear friends:
> I have a simple question. Function "MAP_PROJ_FORWARD" transforms map
> coordinates from longitude and latitude to Cartesian (x, y)
> coordinates. I am confused about the Cartesian coorindates. What units
> and origin of the Cartesian coorindates? Is its units meter?

The units of the cartesian coordiates are determined by the units used
for either the SPHERE_RADIUS, or the SEMIMAJOR_AXIS and the
SEMIMINOR_AXIS, depending upon which map projection you use. If you
don't use any of those options, the default values are in meters. If
you do use those options, the units you use for those values determine
the units of in the map projections. If you give them in miles, the
units will be miles. If you specify 1.0, the cartesian coordinates
will be in units of the radius of the Earth.

However, keep in mind that these units are measured on the projected
surface; the relationship between distances on the surface of the
earth and distances on the projection surface is something you can
know only by understanding exactly how the particular map projection
that you've chosen works.

By default, the origin of the coordinate system is the same as the
center of the map projection, which defaults to 0N, 0E. However, if
you use the CENTER_LATITUDE or CENTER_LONGITUDE options, they override
the default center of the map projection. If you use the FALSE_EASTING
or FALSE_NORTHING options, all projected points are offset by the
specified amount, shifting the origin accordingly


orthographic = MAP_PROJ_INIT('Orthographic')
; In this map projection, the cartesian coordinates for 0,90 should be
0 and the radius of the Earth:
PRINT, MAP_PROJ_FORWARD(0, 90, MAP_STRUCTURE=orthographic)
ortho_miles = MAP_PROJ_INIT('Orthographic', SPHERE_RADIUS=3956.539) ;
Miles
PRINT, MAP_PROJ_FORWARD(0, 90, MAP_STRUCTURE=ortho_miles)
ortho_unit = MAP_PROJ_INIT('Orthographic', SPHERE_RADIUS=1.0)
PRINT, MAP_PROJ_FORWARD(0, 90, MAP_STRUCTURE=ortho_unit)

ortho_4545 = MAP_PROJ_INIT('Orthographic', CENTER_LATITUDE=45,
CENTER_LONGITUDE=45)
PRINT, MAP_PROJ_INVERSE(0,0, MAP_STRUCTURE=ortho_4545)

ortho_false = MAP_PROJ_INIT('Orthographic', /GCTP, $
FALSE_EASTING = 1000000, FALSE_NORTHING=1000000)
PRINT, MAP_PROJ_FORWARD(0, 0, MAP_STRUCTURE=ortho_false)
PRINT, MAP_PROJ_INVERSE(0, 0, MAP_STRUCTURE=ortho_false)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Find Closest Coincident Measurements In Time And Space Between Two Data Sets
Next Topic: Re: Polar TV

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

Current Time: Wed Oct 08 20:01:13 PDT 2025

Total time taken to generate the page: 0.00508 seconds