[Gdal-dev] Re: [GRASS5] export RGB channels in one ERDAS/IMG file
Frank Warmerdam
warmerdam at pobox.com
Thu Sep 30 16:09:13 EDT 2004
Otto Dassau wrote:
> gdal_merge.py -v -of HFA -o 1.img -separate 1r.img
>
> Filename: 1r.img
> File Size: 31476x31818x1
> Pixel Size: 0.320000 x -0.320000
> UL:(3367943.360000,5941153.600000) LR:(3378015.680000,5930971.840000)
> Copy 0,0,31476,31818 to 0,0,31476,31818.
>
> ERROR 1: TIFFWriteEncodedStrip:1.img: File not open for writing
> ERROR 1: TIFFWriteEncodedStrip:1.img: File not open for writing
Otto,
Sorry, I can't think of any explanation for what is happening. I don't
get the same result in my attempts to reproduce the problem. You might want
to verify that format is being used. Perhaps by adding a print after the
driver is fetched:
Driver = gdal.GetDriverByName(format)
print 'using %s format driver for output.' % format
But I see no reason your -of option shouldn't be working unless you are
using an old version of gdal_merge.py where the option was -f instead of -of.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list