X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 30 Jan 2009 01:14 PM by  anon
Batch error when opening MODIS hdf files
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
30 Jan 2009 01:14 PM
    Dear Envi-ans, I wrote a batch process in ENVI+IDL to import/mosaic MODIS snow cover images (2000-2008). My batch works perfectly when I run it for seperate years, but when applied to the whole stack of years, it hangs when opening the hdf files (i.e., it opens a dialog to enter the lines/columns etc. manuanlly) after processing X files. For example: it runs perfectly for the first two years, but hangs when processsing the images of the 3rd year. However, if I run the 3rd year seperately, it works without problems. When I look at the output of my batch, I see that when it hangs it loads functions DLM: IDL_ECW and DLM: MRSID.? Does anyone has an idea why my batch hangs after a processing X (e.g., two years) and why it loads these packages? Thanks in advance!

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    02 Feb 2009 10:47 AM
    What routine are you using to open the MODIS files?  Those DLM's would be loaded if ENVI tries to open a file and it must search through the custom readers to find what kind of file it might be.  So my guess is that during your file open the file type (MODIS) is somehow lost.  But it is only a guess and I would need to see the code and get some sample data to test.

    Deleted User



    New Member


    Posts:
    New Member


    --
    03 Mar 2009 07:02 AM
    Thanks to support the problem has been solved. Apparently, the erro is deep down in the MODIS code where they open and close files and a close was not being done. It appears to affect the resources in IDL and you eventually get this error with enough open/closes. Fortunately, the developer wrote a patch to solve the problem.
    You are not authorized to post a reply.