Render

Georeferenced PNG with coastlines and graticule, paper section 4.2.

Render the DEBRA RGB composite to a georeferenced PNG with map overlays.

Paper section 4.2: “Georeferenced metainformation such as coastlines, political boundaries, latitude/longitude grid, and date/time information … are overlaid to the R/G/B imagery.” Uses cartopy on the scene’s projection, same styling as the quicklook renderer.

shachen.render.render_debra_png(rgb: ndarray, area: AreaDefinition, when: datetime, out_path: Path, title: str | None = None, dpi: int = 150) Path[source]

Write rgb as a PNG with coastlines, borders, and a lat/lon grid.

rgb must be a (y, x, 3) uint8 array (from shachen.imagery.to_uint8()) on area’s grid — anything else raises ValueError. when is the scan start time (UTC), used in the default title "DEBRA-Dust %Y-%m-%d %H:%M UTC". Renders on the Agg backend and returns out_path.