PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 26 Oct 2016 12:49 AM by  Hai-Po Chan
e.OpenRaster Problem: Unable to open or read MODIS file
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Hai-Po Chan



New Member


Posts:2
New Member


--
26 Oct 2016 12:49 AM
    Hello, I have problem to open MODIS file, either .hdf or .tif format. Any hint and help would be welcomed. Thank you in advance. ---------------------------- ENVI> File = 'MOD11A1.A2001337.h28v06.005.2007071122055.hdf' ENVI> Raster = e.OpenRaster(File, EXTERNAL_TYPE='eos_modis')% MOD11A1.A2001337.h28v06.005.2007071122055.hdf Problem: Unable to open or read this file.% Execution halted at: $MAIN$ ENVI> Raster = e.OpenRaster(File)% Loaded DLM: JPEG2000.% Loaded DLM: JPEG.% Loaded DLM: HDF5.% Loaded DLM: NATIVE.% File: MOD11A1.A2001337.h28v06.005.2007071122055.hdf Unable to recognize this file as a standard format. If it is an external format with a known type, please specify the type.% Execution halted at: $MAIN$ ----------------------------

    Mari Minari



    Veteran Member


    Posts:1979
    Veteran Member


    --
    26 Oct 2016 08:47 AM
    What version of ENVI are you using? The syntax has changed in ENVI 5.3 where you no longer need to use the EXTERNAL_TYPE keyword. However, I tested a MOD11A in ENVI 5.2 which still used this syntax and it worked as expected: ENVI> file = 'C:\Testing\Test Data\MODIS\MOD11A1.A2003033.h08v05.004.2003036093820.hdf' ENVI> raster = e.openraster(file, external_type = 'eos_modis') % Loaded DLM: HDF. % Loaded DLM: MAP_PE. ENVI> print, raster.metadata ENVIRASTERMETADATA BAND NAMES = 'Emis 31', 'Emis 32' DATA IGNORE VALUE = 0.00000000 SENSOR TYPE = 'MODIS' Are you able to open the file using the interface with success?

    Hai-Po Chan



    New Member


    Posts:2
    New Member


    --
    26 Oct 2016 11:47 PM
    Dear Minari, Thanks for your swift response. Compared to your test, I found the problemis that I didn't give the file absolute path. So the error appears. Now itworks fine. Thank you very much.
    You are not authorized to post a reply.


    MOST RECENT

    Hyperspectral Imaging: An Emerging Tool for Mission Readiness

    5/15/2018

    For those charged with protecting our national security, the challenge of mission readiness today... more »

    Unleashing the Power of Advanced Analytics in ArcGIS

    5/11/2018

    At Harris Geospatial Solutions, we are always looking to provide more people with access to better... more »

    SIGN UP & STAY INFORMED

    Sign up to receive the latest news, events, technologies and special offers.

    SIGN ME UP