The shape a heatmap wants: z[[depth]][[station]], with x the station
distances and y the depth bins. Returning it from here rather than from each
app is what lets ctd-transects ship a matrix as JSON and ctd-viz hand the same
numbers to an interpolator.
Arguments
- section
from
cc_transect_section()orcc_anomaly().- value
column to pivot (
"value", or"anomaly"/"anomaly_sd").- depths
optional depth bins to force (keeps matrices aligned across cruises); defaults to those present.