Mosaic problem: Mosaic: itk::ERROR: GDALImageIO(0x557430aac5f0):

Ubuntu 20.04.6 LTS (GNU/Linux 5.15.0-89-generic x86_64)
python 3.8.6
otb 7.1.0
Install by conda:
conda create -n NewNew -c conda-forge -c orfeotoolbox otb python

When I stitched 50 Landsat 8 images, I reported an error using the following command line:
otbcli_Mosaic -il LC08_L1TP_149035_20200825_20200905_02_T1.TIF LC08_L1TP_149034_20200825_20200905_02_T1.TIF LC08_L1TP_149033_20200926_20201005_02_T1.TIF LC08_L1TP_149032_20200926_20201005_02_T1.TIF LC08_L1TP_149031_20200926_20201005_02_T1.TIF LC08_L1TP_148035_20201021_20201106_02_T1.TIF LC08_L1TP_148034_20201021_20201106_02_T1.TIF LC08_L1TP_148033_20201021_20201106_02_T1.TIF LC08_L1TP_148032_20201021_20201106_02_T1.TIF LC08_L1TP_148031_20201021_20201106_02_T1.TIF LC08_L1TP_147035_20201201_20210312_02_T1.TIF LC08_L1TP_147034_20200405_20200822_02_T1.TIF LC08_L1TP_147033_20200405_20200822_02_T1.TIF LC08_L1TP_147032_20200405_20200822_02_T1.TIF LC08_L1TP_147031_20201030_20201106_02_T1.TIF LC08_L1TP_146035_20201007_20201018_02_T1.TIF LC08_L1TP_146034_20200921_20201007_02_T1.TIF LC08_L1TP_146033_20200921_20201007_02_T1.TIF LC08_L1TP_146032_20200921_20201007_02_T1.TIF LC08_L1TP_146031_20201124_20210315_02_T1.TIF LC08_L1TP_145035_20200930_20201006_02_T1.TIF LC08_L1TP_145034_20201016_20201105_02_T1.TIF LC08_L1TP_145033_20200626_20200823_02_T1.TIF LC08_L1TP_145032_20201101_20210907_02_T1.TIF LC08_L1TP_145031_20201016_20201105_02_T1.TIF LC08_L1TP_144035_20201009_20201016_02_T1.TIF LC08_L1TP_144034_20201009_20201016_02_T1.TIF LC08_L1TP_144033_20201228_20210310_02_T1.TIF LC08_L1TP_144032_20201228_20210310_02_T1.TIF LC08_L1TP_144031_20201025_20201106_02_T1.TIF LC08_L1TP_143035_20201002_20201007_02_T1.TIF LC08_L1TP_143034_20201002_20201007_02_T1.TIF LC08_L1TP_143033_20200916_20200920_02_T1.TIF LC08_L1TP_143032_20201002_20201007_02_T1.TIF LC08_L1TP_143031_20201002_20201007_02_T1.TIF LC08_L1TP_142035_20201011_20201016_02_T1.TIF LC08_L1TP_142034_20201011_20201016_02_T1.TIF LC08_L1TP_142033_20201112_20210317_02_T1.TIF LC08_L1TP_142032_20200925_20201006_02_T1.TIF LC08_L1TP_142031_20200925_20201006_02_T1.TIF LC08_L1TP_141035_20201020_20201106_02_T1.TIF LC08_L1TP_141034_20201020_20201106_02_T1.TIF LC08_L1TP_141033_20201020_20201106_02_T1.TIF LC08_L1TP_141032_20201020_20201106_02_T1.TIF LC08_L1TP_141031_20201020_20201106_02_T1.TIF LC08_L1TP_140035_20201114_20210317_02_T1.TIF LC08_L1TP_140034_20201114_20210317_02_T1.TIF LC08_L1TP_140033_20201114_20210317_02_T1.TIF LC08_L1TP_140032_20201114_20210317_02_T1.TIF LC08_L1TP_140031_20201114_20210317_02_T1.TIF -comp.feather large -harmo.method band -out mosaicImage.tif uint8
Error reported as follows:

But when I just use “harmo.method band -out mosaicImage.tif uint8” without “-comp.feather large”, it can work and get right result.

What can I do to solve this problem?

Hi @chocolate123candy ,

It is an old bug. OTB 7.1 is nearly 4 YO, I suggest you to use a more recent version.
Still, a workaround is to specify a temporary directory with the tmpdir parameter, or to use absolute path for your output file. With the default setting and relative output path, the program uses / as temporary folder, which is not somewhere you can write file!

Hope that helps

Rémi

1 Like

Hi @remi.cresson ,
Thank you very much for your reply, I successfully solved this problem by setting the tmpdir parameter.