X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 15 Oct 2012 07:20 AM by  anon
Import Landsat 7 L0 EOS_HDF
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
15 Oct 2012 07:20 AM
    Hello! I'm quite new to IDL/ENVI and at the moment I'm struggling with importing level 0 HDF_EOS data from Landsat 7. This works quite well when using the GUI, but for practical reasons (batch jobs) it would be quite useful using the console. So what I've done so far doesn't work: IDL> ENVI, /RESTORE_BASE_SAVE_FILES -> ok IDL> cd, '/data/LandsatL0/L0R_DataProduct_L7' -> ok IDL> ENVI_OPEN_DATA_FILE, 'L71EDC1204072170101_HDF.100121859.hdf', r_fid=fid -> not ok (working and working without any stop after about 20 minutes...) IDL> ENVI_OPEN_DATA_FILE, '/data/LandsatL0/L0R_DataProduct_L7/L71EDC1204072170101_HDF.100121859.hdf', r_fid=fid, /HDF_SD, hdfsd_dataset=1 -> not ok (working and working without any stop after about 20 minutes...) So where is my error here??? ENVI help says that the data type is supported, but I don't find it in the datatypes of ENVI_OPEN_DATA_FILE... Thanks a lot in advance!! Greetings, Meffy

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    15 Oct 2012 09:11 AM
    I haven't seen Landsat data delivered in HDF in quite a while. The HDF format that was common that ENVI could open were stored as separate bands with file names such as: L71041034_03419990702_B10.L1G - with one file for each band. You could then open the" L71041034_03419990702_HDF.L1G" as the metadata file. I tested this and it still works as expected in ENVI 5. I am not sure where you are getting your Landsat in HDF format but you might be better off if you downloaded the latest format, geotiff with metadata, from the USGS Glovis or EarthExplorer. These are typically orthorectified datasets that come in the easily readable geotiff format along with a metadata file that is used to extract information regarding the calibration coefficients and map information.

    Deleted User



    New Member


    Posts:2
    New Member


    --
    06 Aug 2013 02:41 PM
    I have a related problem actually - cannot open Landsat HDF files in ENVI 5 using File... Open as... Landsat... HDF. The bands contained in the HDF file are recognized by ENVI but fail to load, they load as blank view windows without any surface features and I am not able to apply stretching or any other operation (although band statistics like histograms are available). This is extremely unfortunate because USGS-based algorithm for converting Landsat to surface reflectance based on LEDAPS system actually outputs the data as HDF. I need to work with 300+ image series and if I am not able to figure out how to efficiently open these HDF multi-band files in ENVI 5, will have to look for other options. Any help would be greatly appreciated!

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    07 Aug 2013 06:29 AM
    Are you running service pack 3? There was an issue with displaying some HDF files that should be fixed in this version.
    You are not authorized to post a reply.