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

Home » Public Forums » archive » How to extract Geokey & Geotag from GeoTiff file
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 extract Geokey & Geotag from GeoTiff file [message #90587] Thu, 12 March 2015 08:32 Go to next message
dlopezaspe is currently offline  dlopezaspe
Messages: 10
Registered: October 2008
Junior Member
Hello IDLers'
I'm working with IDL 7.1 & GDAL 1.10, I need modify my older IDL script for write directly from IDL to geotif file... My problem can't know how extract Geokey & Geotag from GeoTiff file UTM projection 19 WGS-84....

Any Idea
Re: How to extract Geokey & Geotag from GeoTiff file [message #90588 is a reply to message #90587] Thu, 12 March 2015 08:45 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
dlopezaspe@gmail.com writes:

> I'm working with IDL 7.1 & GDAL 1.10, I need modify my older IDL script for write directly from IDL to geotif file... My problem can't know how extract Geokey & Geotag from GeoTiff file UTM projection 19 WGS-84....

IDL> void = Read_TIFF('myTiffFile.tif', GEOTIFF=geoinfo)
IDL> Help, geoinfo

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 extract Geokey & Geotag from GeoTiff file [message #90589 is a reply to message #90588] Thu, 12 March 2015 09:07 Go to previous messageGo to next message
dlopezaspe is currently offline  dlopezaspe
Messages: 10
Registered: October 2008
Junior Member
On Thursday, March 12, 2015 at 12:45:10 PM UTC-3, David Fanning wrote:
> dlopezaspe@gmail.com writes:
>
>> I'm working with IDL 7.1 & GDAL 1.10, I need modify my older IDL script for write directly from IDL to geotif file... My problem can't know how extract Geokey & Geotag from GeoTiff file UTM projection 19 WGS-84....
>
> IDL> void = Read_TIFF('myTiffFile.tif', GEOTIFF=geoinfo)
> IDL> Help, geoinfo
>
> 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.")

Thanks David!!!

but something is wrong



IDL> void = Read_TIFF('2000_clasif.tif', GEOTIFF=geoinfo)
% Loaded DLM: TIFF.
IDL> help, geoinfo
GEOINFO STRUCT = -> <Anonymous> Array[1]
Re: How to extract Geokey & Geotag from GeoTiff file [message #90590 is a reply to message #90589] Thu, 12 March 2015 09:16 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
dlopezaspe@gmail.com writes:

>
> On Thursday, March 12, 2015 at 12:45:10 PM UTC-3, David Fanning wrote:
>> dlopezaspe@gmail.com writes:
>>
>>> I'm working with IDL 7.1 & GDAL 1.10, I need modify my older IDL script for write directly from IDL to geotif file... My problem can't know how extract Geokey & Geotag from GeoTiff file UTM projection 19 WGS-84....
>>
>> IDL> void = Read_TIFF('myTiffFile.tif', GEOTIFF=geoinfo)
>> IDL> Help, geoinfo
>>
>> 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.")
>
> Thanks David!!!
>
> but something is wrong
>
>
>
> IDL> void = Read_TIFF('2000_clasif.tif', GEOTIFF=geoinfo)
> % Loaded DLM: TIFF.
> IDL> help, geoinfo
> GEOINFO STRUCT = -> <Anonymous> Array[1]

IDL> Help, geoinfo, /Structure

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 extract Geokey & Geotag from GeoTiff file [message #90591 is a reply to message #90590] Thu, 12 March 2015 09:21 Go to previous messageGo to next message
dlopezaspe is currently offline  dlopezaspe
Messages: 10
Registered: October 2008
Junior Member
On Thursday, March 12, 2015 at 1:16:44 PM UTC-3, David Fanning wrote:
> dlopezaspe@gmail.com writes:
>
>>
>> On Thursday, March 12, 2015 at 12:45:10 PM UTC-3, David Fanning wrote:
>>> dlopezaspe@gmail.com writes:
>>>
>>>> I'm working with IDL 7.1 & GDAL 1.10, I need modify my older IDL script for write directly from IDL to geotif file... My problem can't know how extract Geokey & Geotag from GeoTiff file UTM projection 19 WGS-84....
>>>
>>> IDL> void = Read_TIFF('myTiffFile.tif', GEOTIFF=geoinfo)
>>> IDL> Help, geoinfo
>>>
>>> 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.")
>>
>> Thanks David!!!
>>
>> but something is wrong
>>
>>
>>
>> IDL> void = Read_TIFF('2000_clasif.tif', GEOTIFF=geoinfo)
>> % Loaded DLM: TIFF.
>> IDL> help, geoinfo
>> GEOINFO STRUCT = -> <Anonymous> Array[1]
>
> IDL> Help, geoinfo, /Structure
>
> 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.")

that's right

IDL> data_variable=READ_TIFF('/media/2tbdl/modis/mod13a3/raw/ndvi /monthly/tif/zonas/tif/2000_clasif.tif', GEOTIFF=GeoKeys)
IDL> HELP, GeoKeys, /STRUCTURE
** Structure <211cb98>, 9 tags, length=120, data length=114, refs=1:
MODELPIXELSCALETAG
DOUBLE Array[3]
MODELTIEPOINTTAG
DOUBLE Array[6, 1]
GTMODELTYPEGEOKEY
INT 1
GTRASTERTYPEGEOKEY
INT 1
GTCITATIONGEOKEY
STRING 'WGS 84 / UTM zone 19S'
GEOGCITATIONGEOKEY
STRING 'WGS 84'
GEOGANGULARUNITSGEOKEY
INT 9102
PROJECTEDCSTYPEGEOKEY
INT 32719
PROJLINEARUNITSGEOKEY
INT 9001

Thanks a Lot!!! David
I have nice day!!
Re: How to extract Geokey & Geotag from GeoTiff file [message #91418 is a reply to message #90590] Sun, 12 July 2015 22:48 Go to previous message
micofelicio is currently offline  micofelicio
Messages: 3
Registered: July 2015
Junior Member
Exactly what I was looking for! Thank you!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Extracting data over land surface and exclude data over ocean in IDL
Next Topic: Advice on using julian day with the image function?

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

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

Total time taken to generate the page: 0.00485 seconds