I am using the following GPT command to create NDVIs for a series of Setinel-2 images I have. The script/commands works for only a few of the images I have, for the others I get the following error.
gpt NdviOp -Ssource=MTD_MSIL2A.xml -t ndvi.tif
Error: GDAL Geotiff writer cannot write a product containing bands with different data types (the data type of band index 1 is 12, different from band index 0).
I’m not sure what is going on, I’m using scripts to download and extract all images, so they should all be the same, I have not noticed any issues with images that give this error as well.
How can I fix this?