[gdal-dev] gdalwarp ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB)

2018-07-01 Thread Stephen Woodbridge
Hi all, I'm trying to convert a utm jp2 file to a wgs84 tif file and getting "ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB)" but the src file has only 3 RBG bands. gdalwarp -t_srs EPSG:4326 -dstalpha -r bilinear -of GTiff -co BIGTIFF=YES -co TILED=YES -co COMPRE

Re: [gdal-dev] gdalwarp ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB)

2018-07-01 Thread Michael Smith
Steve, Setting that alpha channel makes it 4 bands. RGB + alpha channel. Either remove the ycbcr or the alpha channel. Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers > On Jul 1, 2018, at 10:07 AM, Stephen Woodbridge > wrote: > > Hi all, > > I'm trying to convert a utm j

Re: [gdal-dev] gdalwarp ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB)

2018-07-01 Thread Stephen Woodbridge
Right, but the point 1 is the message says: ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB) ie: requires a source raster with only 3 bands (RGB) and the source raster has only 3 bands! -dstalpha if I understand correctly is to create a alpha band in the output file. S

Re: [gdal-dev] gdalwarp ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB)

2018-07-01 Thread Even Rouault
On dimanche 1 juillet 2018 11:18:39 CEST Stephen Woodbridge wrote: > Right, but the point 1 is the message says: > ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB) > ie: requires a source raster with only 3 bands (RGB) and the source > raster has only 3 bands! > -dstalpha

Re: [gdal-dev] gdalwarp ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB)

2018-07-01 Thread Stephen Woodbridge
OK, digging deep into my old emails I think I found a solution ( still to be proved): gdalwarp -t_srs EPSG:4326 -r bilinear -co TILED=YES -co BIGTIFF=YES -dstalpha -multiĀ  '00010.jp2' '/data/satmap/tmp.tif' This took 39 min and expanded the 2.1G jp2 into 87G tif, then this gets followed by: