I haven't found any specific commandline utility that can report if a tiff is tiled or striped. At least not directly or in a grepable form like TILED=YES
.
There should be enough information in gdalinfo
to make that decision, however.
I have a landsat scene, each made with gdal_translate:
landsat_tiled.tif
: -co TILED=YES
landsat_notiled.tif
: -co TILED=NO
gdalinfo landsat_tiled.tif | grep -E 'Block=|Size is'
>>Size is 7621, 7791
>>Band 1 Block=256x256 Type=UInt16, ColorInterp=Gray
gdalinfo landsat_notiled.tif | grep -E 'Block=|Size is'
>>Size is 7621, 7791
>>Band 1 Block=7621x1 Type=UInt16, ColorInterp=Gray
So it is obvious that tiled tiffs have a Y block size greater than 1. Striped tiffs have X block size equal to XSize and Y block size equal to 1.
This should be enough to determine if they are striped (not tiled).
gdalinfo landsat_notiled.tif | grep -o 'Block=.*x1\s'
>>Block=7621x1
If that call returns anything, you can be sure it is NOT tiled.
This doesn't address very small tiffs, which can have the entire raster array stored in a single block. So YMMV on those..