How to extract Geokey & Geotag from GeoTiff file [message #90587] |
Thu, 12 March 2015 08:32  |
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 #90589 is a reply to message #90588] |
Thu, 12 March 2015 09:07   |
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   |
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   |
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!!
|
|
|
|