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

Home » Public Forums » archive » GeoTiff- grid
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: GeoTiff- grid [message #58268 is a reply to message #58167] Tue, 22 January 2008 15:31 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Well, I tell you what. Here are the numbers I get when I use a
LAT=20 and LON=-96.5:

Corner Coordinates:
Upper Left: (-167346.019, 3677892.560)
Lower Left: (-167346.019, 2982923.485)
Upper Right: (1222592.132, 3677892.560)
Lower Right: (1222592.132, 2982923.485)
Corners in Lon/Lat
Upper Left: (-98.555, 51.338)
Lower Right: (-82.367, 45.408)

Here are the values I get (surprisingly close to
ENVI's) when I use a LON of 2, instead of 20:

Corner Coordinates:
Upper Left: (-167346.019, 3677892.560)
Lower Left: (-167346.019, 2982923.485)
Upper Right: (1222592.132, 3677892.560)
Lower Right: (1222592.132, 2982923.485)
Corners in Lon/Lat
Upper Left: (-98.037, 33.346)
Lower Right: (-85.323, 27.832)

Are you sure you did the ENVI numbers correctly?

Here is the way I set up the map projection:

map = MAP_PROJ_INIT(9, $
DATUM=5, $
CENTER_LAT=20.0, $
CENTER_LON=-96.5)
lonlat = MAP_PROJ_INVERSE([xorigin, xend],[yend, yorigin], $
MAP_STRUCTURE=map)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Travel Destination: Holland
Next Topic: t-testing in IDL

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

Current Time: Wed Oct 08 19:58:45 PDT 2025

Total time taken to generate the page: 0.00447 seconds