COG from a delivered GeoTIFF, values bit-exact (the native representation)
Source:R/publish.R
cog_from_tif.RdFor 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
)