{# Instrument summary: what each instrument measured, when, and over what pressure range. The `instruments` panel payload (kind="html"); the `.vbadge` styles are in mooring.html. Leads the deployment report. #} {% import "_mooring_cols.html" as cols %}

One row per instrument: what it measured, when, and over what pressure range. Badges: T temperature, C conductivity, P pressure, U/V eastward/northward velocity; a blue P means pressure was interpolated from neighbouring instruments rather than measured. HAB: height above bottom. {%- if instruments | selectattr("stopped_early") | list %} Shaded rows: the record ends more than {{ stopped_early_hours }} h before recovery (the instrument stopped early). {%- endif %}

{{ cols.depth_heads() }} {{ cols.th("Start", "UTC") }} {{ cols.th("End", "UTC") }} {{ cols.th("Records", "", true) }} {{ cols.th("Pressure range", "dbar", true) }} {% for instr in instruments %} {{ cols.depth_cells(instr) }} {{ cols.serial_cell(instr, mooring_name) }} {% if instr.nc and instr.nc.get("error") %} {% elif instr.nc and instr.nc.get("t_start") %} {% for label, present in instr.nc.shorthands %} {% endfor %} {% elif instr.skipped %} {% else %} {% endif %} {% endfor %}
Type SerialSampling intervalT C P U V
{{ instr.type_label }}Error: {{ instr.nc.error }}{{ instr.nc.t_start }} {{ instr.nc.t_end }} {{ "{:,}".format(instr.nc.n_records) }} {{ instr.interval_label }}{% if instr.dt_mismatch %} *{% endif %} {% if instr.nc.p_min is not none and instr.nc.p_max is not none %} {% if instr.nc.get("pressure_interpolated") %} {{ "%.0f"|format(instr.nc.p_min) }}–{{ "%.0f"|format(instr.nc.p_max) }} {% else %} {{ "%.0f"|format(instr.nc.p_min) }}–{{ "%.0f"|format(instr.nc.p_max) }} {% endif %} {% else %} — {% endif %} {% if label == "P" and present and instr.nc.get("pressure_interpolated") %} {{ label }} {% else %} {{ label }} {% endif %} {{ instr.skip_reason }}{% if instr.no_hab_note %}{{ instr.no_hab_note }}; {% endif %}no stage files in {{ instr.stage_dir }}
{% set dt_mismatches = instruments | selectattr("dt_mismatch") | list %} {% if dt_mismatches %}

* Sampling interval differs from the mooring description: {% for instr in dt_mismatches %}
  {{ instr.serial }}: the description gives {{ instr.yaml_interval_s }} s; the record shows {{ instr.interval_label }}. {% endfor %}

{% endif %}