30 Nov 2016 01:00 PM |
|
I am running a script that mosaics hundreds of images. I have written similar scripts before so there probably aren't any obvious mistakes. The script runs until the line
MosaicRaster.Export, file, "TIFF".
and then stops with the following error
Unable to export raster.
Execution halted at: MOSAICBATCH 26
Is this a known problem? Can you tell me what this error generally refers to? I have tried cutting the number of files from 1200 to 250 and that does help, however it doesn't seem to be a problem with memory because I monitor memory use while the script runs and there is plenty of memory available.
|
|
|
|
Deleted User Basic Member
Posts:228  
30 Nov 2016 01:30 PM |
|
The only previous report of this error message in this context that I can find is for a problem that was fixed in ENVI 5.2. The problem was triggered when trying to mosaic two datasets that had more than 10 bands. Is that the situation with your data, and are you working in a version of ENVI earlier than 5.2? If so, then you should probably be able to resolve the problem by upgrading to a later version. Otherwise, I am afraid that we don't know at this point what could be causing the error.
Regards,
Peg
|
|
|
|
Deleted User New Member
Posts:  
02 Dec 2016 09:20 AM |
|
Answers to you questions are : "No" (its a single band) and "No" (Envi 5.3.1)
Other details and responses to questions are at: https://groups.google.com/forum/#!topic/comp.lang.idl-pvwave/uXa4mMIavqU
|
|
|
|
MariM Veteran Member
Posts:2396  
02 Dec 2016 01:17 PM |
|
Are you running 64-bit ENVI for your code? Have you tried running the code using different subsets of files? I asked our developer about the error and they think it sounds like it is some problematic data - or something unexpected in a file that is causing the error.
Also, can you do a help on the mosaicRaster before you try to export it? Is the raster valid and can you print any of its properties? For example:
mosaicRaster = ENVIMosaicRaster(scenes)
help, mosaicRaster
print, mosaicRaster.nb
Output:
ENVI> mosaicbatch
% Compiled module: MOSAICBATCH.
MOSAICRASTER ENVIMOSAICRASTER
4
|
|
|
|