Skip to content

titan validate

Verify whether a local or a cloud storage raster is a valid Cloud-Optimized GeoTIFF.

>>> titan validate --help

usage: titan validate [-h] [-f] input_file

Performs file checks to validate whether a raster file is a Cloud-Optimized GeoTIFF.

positional arguments:
  input_file        The raster to validate.

optional arguments:
  -h, --help        show this help message and exit
  -f, --full_check  Checks tile and strip leader/trailer bytes

This routine checks the tiling, overviews, file structure & byte order of raster files, and prints out various warnings and errors. Warnings typically recommend how to improve COG efficiency (e.g. file doesn't contain internal overviews). Errors identify non-compliance issues (e.g. the data are not properly tiled).

General guidelines

  • -f, --full-check: performs a full file-read to verify proper byte ordering. This may take a while for remote files, and must be explicitly flagged.