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

Home » Public Forums » archive » Converting multi images from hdf to envi standard format
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
Converting multi images from hdf to envi standard format [message #89623] Sun, 02 November 2014 08:44 Go to next message
Muhammad Hasan is currently offline  Muhammad Hasan
Messages: 8
Registered: November 2014
Junior Member
Hi Everyone,
I have 200 Landsat TM/ETM+ images in hdf format. Is it possible to convert them into envi standard or tiff format by writing simple IDL code? Could you kindly tell me few commands as I don't know about programming too much.

Regards,


Hasan
Re: Converting multi images from hdf to envi standard format [message #89624 is a reply to message #89623] Sun, 02 November 2014 08:48 Go to previous messageGo to next message
Muhammad Hasan is currently offline  Muhammad Hasan
Messages: 8
Registered: November 2014
Junior Member
On Monday, November 3, 2014 12:44:46 AM UTC+8, Muhammad Hasan wrote:
> Hi Everyone,
> I have 200 Landsat TM/ETM+ images in hdf format. Is it possible to convert them into envi standard or tiff format by writing simple IDL code? Could you kindly tell me few commands as I don't know about programming too much.
>
> Regards,
>
>
> Hasan

I am using ENVI 4.8
Re: Converting multi images from hdf to envi standard format [message #89662 is a reply to message #89624] Fri, 07 November 2014 14:30 Go to previous message
Chris Anderson is currently offline  Chris Anderson
Messages: 3
Registered: August 2014
Junior Member
I think your best bet will be using GDAL (http://gdal.org/). GDAL is not an IDL function, but instead runs via command line. You can use gdal_translate to convert between file formats very quickly and easily. An example command would be:

gdal_translate -of ENVI input_file.hdf output_file

or

gdal_translate -of GTiff input_file.hdf output_file

You could write a wrapper in IDL to loop through each of your 200 images if you really want to do that, or you could do it with a windows batch file or shell script if you wanted.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 3D lights affecting only certain objects?
Next Topic: Functional analysis in IDL

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

Current Time: Wed Oct 08 15:07:08 PDT 2025

Total time taken to generate the page: 0.00649 seconds