geeViz.eeCatalogHelpers.raster

Optional GDAL-backed raster helpers (GDAL is loaded only when called).

Functions

confirm_cog(local_tif)

Check gdalinfo output for the COG layout marker.

convert_tif_to_cog(local_tif[, cog_path, ...])

Convert a GeoTIFF using gdal_translate and atomically replace its output.

validate_tif_for_ingest(local_tif)

Fail fast when a TIFF cannot be opened and sampled by optional GDAL.

geeViz.eeCatalogHelpers.raster.convert_tif_to_cog(local_tif: str | Path, cog_path: str | Path | None = None, overwrite: bool = True, options: list[str] | None = None) → None[source]

Convert a GeoTIFF using gdal_translate and atomically replace its output.

geeViz.eeCatalogHelpers.raster.confirm_cog(local_tif: str | Path) → bool[source]

Check gdalinfo output for the COG layout marker.

geeViz.eeCatalogHelpers.raster.validate_tif_for_ingest(local_tif: str | Path) → None[source]

Fail fast when a TIFF cannot be opened and sampled by optional GDAL.