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

Home » Public Forums » archive » Re: Landsat HDF
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
Re: Landsat HDF [message #70819] Tue, 11 May 2010 09:46 Go to next message
David Fanning is currently offline  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 Go to previous message
raghuram is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: A simple vector - array operation
Next Topic: Tips for IDL-istic file transfer...? Please help me.

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

Current Time: Wed Oct 08 11:36:17 PDT 2025

Total time taken to generate the page: 0.00498 seconds