{% import "_macros.html" as m %} {% if basic_checks %}

Profile number: {{ basic_checks.profnum }}. Profile duration: {{ basic_checks.dur }}.

{% endif %} {% if diagnostics %} {% if diagnostics.present %}

glidertest diagnostics — run on the fly, not written to the file. Thresholds are glidertest's defaults unless a report config overrides them, shown so the verdict can be reproduced.

{% for t in diagnostics.thresholds %} {% endfor %}
VariableTestSuspect range / thresholdFail range / thresholdSource
{{ t.var }}{{ t.test }}{{ t.suspect }}{{ t.fail }}{% if t.src == 'config' %}config{% else %}default{% endif %}
{% endif %} {% if diagnostics.region %}

Region test — allowed box [west, south, east, north]: {{ diagnostics.region.bbox }}. {% if diagnostics.region.evaluated %}{{ diagnostics.region.n_outside }} of {{ diagnostics.region.n_evaluated }} positioned samples fall outside the region (flagged fail){% if diagnostics.region.n_unknown %}; {{ diagnostics.region.n_unknown }} samples had no position and were not evaluated{% endif %}.{% else %}Not evaluated: no position data (LONGITUDE/LATITUDE absent or all-NaN).{% endif %}

{% endif %} {% if diagnostics.present %}

Test × variable: flagged-sample counts (per-sample tests show a small dashed bar). Gross range applies the suspect span only — the fail span above is not yet evaluated. Hysteresis counts depth bins with >{{ diagnostics.hyst.pct }}% dive–climb error; a variable is flagged when more than {{ diagnostics.hyst.bins }} bins exceed it.

{% for v in diagnostics.present %}{% endfor %} {% for row in diagnostics.matrix %}{% for cell in row.cells %}{% if cell.spans is defined %}{% else %}{{ cell.text }}{% endif %}{% endfor %} {% endfor %}
Test{{ v }}
{{ row.label }}{% for s in cell.spans %}{{ s.text }}{% if not loop.last %} {% endif %}{% endfor %}
{{ m.dist_bar(cell.bar, small=True) }}
{% else %}

No per-variable QC diagnostics apply to this dataset's variables; only the mission-level region test above is shown.

{% endif %} {% else %}

No glidertest QC diagnostics apply to this dataset's variables.

{% endif %}