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

anon



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$ ----------------------------

    MariM



    Veteran Member


    Posts:2396
    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?

    Deleted User



    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.