X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 23 May 2013 01:00 PM by  anon
Getting projection information from HDF
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
23 May 2013 01:00 PM
    I have a number of HDF files which contain bands that I'd like to extract and then stack into ENVI Standard format through IDL. I can read the files in to ENVI via ENVI_OPEN_DATA_FILE, but it doesn't load the associated projection information. It does, however, if I go through the GUI, so projection information is present in the HDFs. How can I read these data out of the HDF?

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    23 May 2013 01:31 PM
    What sort of HDF file is it (ASTER, MODIS)? If you get map info by opening it through the GUI, you should be able to also get the map info structure when using ENVI_OPEN_DATA_FILE with the appropriate keyword (/MODIS or /ASTER). If you use the generic HDF, it probably won't get this information but it is equivalent to opening the file as External Format->Generic->HDF which doesn't read any map info either. You can 'see' the projection using the View HDF Dataset Attributes tool but to programmatically extract this information, you would need to use the IDL HDF routines.

    Deleted User



    New Member


    Posts:
    New Member


    --
    24 May 2013 10:11 AM
    The file contains Landsat surface reflectance data created by LEDAPS software, so it's a non-standard product. However, LEDAPS also creates an ENVI header file, so I will just open that, pull the "map info" tag out, and append that to the new file's header.
    You are not authorized to post a reply.