MosaicRaster results in "Unable to Export" [message #93930] |
Wed, 30 November 2016 12:04  |
lefsky@gmail.com
Messages: 13 Registered: June 2010
|
Junior Member |
|
|
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.
|
|
|
Re: MosaicRaster results in "Unable to Export" [message #93948 is a reply to message #93930] |
Fri, 02 December 2016 17:23  |
Jim Pendleton
Messages: 165 Registered: November 2011
|
Senior Member |
|
|
On Friday, December 2, 2016 at 9:16:37 AM UTC-7, lef...@gmail.com wrote:
> Helder & Jim-
>
> The getdata function returns only a !NULL value. Copywindow appears to be for copying from a graphic window.
>
> Jim- You'd think it was a file problem, but it isn't. When the program stops, I can use openw and the filename I generated and then write a 1.6 Gb file without a problem. There is 1.2 Tb available so size isn't a problem. Also, the error shows up if I specify TIFF or ENVI format.
>
> Looks like it is internal to the Mosaicraster tool.
>
>
>
>
> On Wednesday, November 30, 2016 at 1:49:40 PM UTC-7, Jim P wrote:
>> On Wednesday, November 30, 2016 at 1:04:16 PM UTC-7, lef...@gmail.com wrote:
>>> 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.
>>
>> I am able to repeat this error message if the output file path is invalid.
>>
>> ENVI> r.export, 'n:\program files\blah.tiff', 'TIFF'
>> % Unable to export raster.
>> % Execution halted at: $MAIN$
>>
>> In this case, I have no "n:" drive.
>>
>> Jim P.
I would recommend contacting support@harris.com with respect to the vague error message from the export method. Those folks know a lot of tricks for debugging situations like this and can be a bit rabid (in a good way) about getting to the root of a problem.
Jim P.
|
|
|