Re: Landsat HDF [message #70819] |
Tue, 11 May 2010 09:46  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Raghu writes:
> I'm trying to retrieve projection information from a Landsat HDF
> (HDF4) file using IDL. Using the IDL routines, I'm able to retrive the
> data but am not finding any functions or keywords to read the
> projection information. Apparently, its possible to retrieve these
> parameters using GDAL but if I can find an IDL/ ENVI solution, it'd be
> more useful.
>
> Basically, I just want to retrieve the corner coordinates of the the
> four corners of an image as map coordinates (geographic or
> UTM..whatever the input projection is) and not as pixel coordinates
> (samples, lines).
>
> Please let me know if you have any suggestions.
Where can I find one of these data files with projection
information?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|
Re: Landsat HDF [message #70901 is a reply to message #70819] |
Wed, 12 May 2010 11:59  |
raghuram
Messages: 32 Registered: February 2008
|
Member |
|
|
Hi David,
Apparently, HDF file types package both the data and ancillary
information like projection in a single compact file. So I don't have
any extra header files such as *.hdr accompanying the *.hdf files
where I could read the projection from. The specific HDF file type of
the file I'm using is HDF4_EOS:EOS_GRID.
Regards,
Raghu
On May 11, 12:46 pm, David Fanning <n...@dfanning.com> wrote:
> Raghu writes:
>> I'm trying to retrieve projection information from a Landsat HDF
>> (HDF4) file using IDL. Using the IDL routines, I'm able to retrive the
>> data but am not finding any functions or keywords to read the
>> projection information. Apparently, its possible to retrieve these
>> parameters using GDAL but if I can find an IDL/ ENVI solution, it'd be
>> more useful.
>
>> Basically, I just want to retrieve the corner coordinates of the the
>> four corners of an image as map coordinates (geographic or
>> UTM..whatever the input projection is) and not as pixel coordinates
>> (samples, lines).
>
>> Please let me know if you have any suggestions.
>
> Where can I find one of these data files with projection
> information?
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|