Skip to contents

For a source that already IS a raster on the cell grid (AquaX), the native representation is the delivered band itself, not a re-painting of the ingested cells: gdal_translate -of COG of one band, cropped to the data window (a US-masked global raster is mostly NoData), with the per-model scalars a reviewer needs (AUC / TSS / cutoff) written as GDAL metadata. Complements publish_cog(), which paints (cell_id, val) and is the model representation.

Usage

cog_from_tif(
  src,
  out,
  band = 1,
  crop = TRUE,
  metadata = list(),
  overview = TRUE
)

Arguments

src

path to the source GeoTIFF

out

output path (.tif)

band

band index to publish (default 1)

crop

crop to the band's non-NoData window (default TRUE)

metadata

named list written as -mo KEY=VALUE items

overview

build internal overviews (default TRUE, nearest)

Value

out (invisibly)