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

Home » Public Forums » archive » GeoTIFF help - conversion to lat/lon
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
GeoTIFF help - conversion to lat/lon [message #94512] Fri, 16 June 2017 01:32 Go to next message
rjp23 is currently offline  rjp23
Messages: 97
Registered: June 2010
Member
I'm hoping someone can help as the GeoTIFF format is confusing me somewhat.

I'm following David's excellent tutorial at http://www.idlcoyote.com/map_tips/tiffoverlay.html

However, my GeoTIFF is missing some of the geotag information that David uses in his example.

I don't have the variables to do this bit:

; Map the corners in lat/lon space by inverse transformation.
alberMap = MAP_PROJ_INIT('Albers Equal Area Conic', $
DATUM=8, $ ; WGS84
CENTER_LAT=geotag.PROJNATORIGINLATGEOKEY, $
CENTER_LON=geotag.PROJNATORIGINLONGGEOKEY, $
STANDARD_PAR1=geotag.PROJSTDPARALLEL1GEOKEY, $
STANDARD_PAR2=geotag.PROJSTDPARALLEL2GEOKEY)
lonlat = MAP_PROJ_INVERSE([xOrigin, xOrigin, xEnd, xEnd], $
[yOrigin, yEnd, yEnd, yOrigin], $
MAP_STRUCTURE=alberMap)

And I can't work out what the equivalent is with what I have:

IDL> help, geotag
** Structure <637638>, 18 tags, length=184, data length=158, refs=1:
MODELPIXELSCALETAG
DOUBLE Array[3]
MODELTIEPOINTTAG
DOUBLE Array[6, 1]
GTMODELTYPEGEOKEY
INT 1
GTRASTERTYPEGEOKEY
INT 1
GTCITATIONGEOKEY
STRING 'Projected Coordinates |'
GEOGRAPHICTYPEGEOKEY
INT 4326
GEOGCITATIONGEOKEY
STRING 'WGS84'
GEOGGEODETICDATUMGEOKEY
INT 6326
GEOGPRIMEMERIDIANGEOKEY
INT 8901
GEOGLINEARUNITSGEOKEY
INT 9001
GEOGANGULARUNITSGEOKEY
INT 9102
GEOGELLIPSOIDGEOKEY
INT 7030
GEOGSEMIMAJORAXISGEOKEY
DOUBLE 6378137.0
GEOGSEMIMINORAXISGEOKEY
DOUBLE 6356752.3
PROJECTEDCSTYPEGEOKEY
INT 32611
PCSCITATIONGEOKEY
STRING 'UTM / WGS84'
PROJECTIONGEOKEY
INT 16011
PROJLINEARUNITSGEOKEY
INT 9001

Also listgeo doesn't seem to exist at https://www.remotesensing.org/geotiff/listgeo.html any more.

Any help would be much appreciated

Thanks
Re: GeoTIFF help - conversion to lat/lon [message #94526 is a reply to message #94512] Mon, 26 June 2017 15:55 Go to previous messageGo to next message
gombgg is currently offline  gombgg
Messages: 7
Registered: November 2013
Junior Member
You probably found your answer by now, but your data appears to be using the UTM coordinate system, which is different than Lat/Lon. You'll need to convert your UTM coordinates to Lat/Lon first if you need to use that coordinate system.
Re: GeoTIFF help - conversion to lat/lon [message #94550 is a reply to message #94526] Sun, 02 July 2017 06:28 Go to previous messageGo to next message
rjp23 is currently offline  rjp23
Messages: 97
Registered: June 2010
Member
On Monday, June 26, 2017 at 11:55:38 PM UTC+1, gom...@gmail.com wrote:
> You probably found your answer by now, but your data appears to be using the UTM coordinate system, which is different than Lat/Lon. You'll need to convert your UTM coordinates to Lat/Lon first if you need to use that coordinate system.

Thanks! I'm still struggling to get this right so if you could point me in the right direction that'd be great.
Re: GeoTIFF help - conversion to lat/lon [message #94568 is a reply to message #94550] Tue, 11 July 2017 10:58 Go to previous message
gombgg is currently offline  gombgg
Messages: 7
Registered: November 2013
Junior Member
On Sunday, July 2, 2017 at 7:28:50 AM UTC-6, rj...@le.ac.uk wrote:
> On Monday, June 26, 2017 at 11:55:38 PM UTC+1, gom...@gmail.com wrote:
>> You probably found your answer by now, but your data appears to be using the UTM coordinate system, which is different than Lat/Lon. You'll need to convert your UTM coordinates to Lat/Lon first if you need to use that coordinate system.
>
> Thanks! I'm still struggling to get this right so if you could point me in the right direction that'd be great.

Something like this should come up on a search:
http://www.idlcoyote.com/map_tips/convertutm.php
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Each time access different part of an array
Next Topic: 'plot' suddenly won't label axes

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

Current Time: Wed Oct 08 09:13:59 PDT 2025

Total time taken to generate the page: 0.00494 seconds