I'm working with large rasters which require overviews in order to be browsed efficiently. I'm successful in creating overviews, external in my case (.ovr), but I haven't found a source about figuring out the correct amount of overview levels for a raster. I'm looking either for an automatic way or a formula with which one could deduce the right amount of them.
Right now I'm creating external overviews, then checking out if amount of specified levels was enough in QGIS and finally rerun gdaladdo if it wasn't. An example of gdaladdo syntax I'm using:
gdaladdo raster.tif 2 4 8 16 32 64 128 256 1024 2048 -r average -ro --config COMPRESS_OVERVIEW
JPEG --config PHOTOMETRIC_OVERVIEW YCBCR --config INTERLEAVE_OVERVIEW PIXEL
Does anyone have any tips?