{% extends "base.html" %} {% import "_macros.html" as m %} {% import "_nc_tables.html" as nc %} {% block title %}{{ page_title }} — netCDF inventory{% endblock %} {% block masthead_title %}{{ meta.filename }}{% endblock %} {% block masthead_type %}netCDF inventory{% endblock %} {% block head_extra %} {% endblock %} {% block masthead_meta %}
File
{{ meta.filename }}
{% if meta.filesize %}
Size
{{ "%.1f"|format(meta.filesize / 1024) }} KB
{% endif %} {% if meta.dims %}
Dimensions
{% for d, n in meta.dims.items() %}{{ d }}={{ n }}{% if not loop.last %}, {% endif %}{% endfor %}
{% endif %}
{% endblock %} {% block content %} {% if meta.error %}

Could not read {{ meta.filename }}: {{ meta.error }}

{% else %} {{ nc.summary_line(meta.summary, excluded_label="sensor linkage/channel") }} {# Amber-criterion captions, written once (the macros render each only when its table actually has an amber cell — the family "no caption, no highlight" rule). #} {%- set amber_units = "Amber Units: a floating-point variable with no units attribute (CF expects one)." %} {%- set amber_linkage = "Amber Valid %: fewer valid values than samples (a profile missing this sensor role)." %} {# Numbered section list, built once so the jump-nav and each heading share one "(N) Title" numbering (present sections only). #} {% set secs = [] %} {% set _ = secs.append(("s-coords", "Coordinates")) %} {% set _ = secs.append(("s-vars", "Data variables")) %} {% if meta.scalars.rows %}{% set _ = secs.append(("s-scalars", "Scalars")) %}{% endif %} {% if meta.qc_exclusion %}{% set _ = secs.append(("s-qc-drop", "QC exclusions")) %}{% endif %} {% if meta.rename_map %}{% set _ = secs.append(("s-rename", "Variable renaming")) %}{% endif %} {% if meta.sensor_catalog.rows %}{% set _ = secs.append(("s-sensor-catalog", "Sensor catalog")) %}{% endif %} {% if meta.sensor_linkage.groups %}{% set _ = secs.append(("s-sensor-linkage", "Sensor linkage")) %}{% endif %} {% if meta.sensor_channel.groups %}{% set _ = secs.append(("s-sensor-channel", "Sensor channels")) %}{% endif %} {% if meta.globals.groups %}{% set _ = secs.append(("s-global", "Global attributes")) %}{% endif %} {% set nums = {} %} {% for sid, title in secs %}{% set _ = nums.update({sid: loop.index}) %}{% endfor %}
{% for sid, title in secs %}{{ m.heading_text(loop.index, title) }} {% endfor %}

{{ m.heading_text(nums["s-coords"], "Coordinates") }}

{{ nc.coords_table(meta.coords.rows, source=meta.coords.source, caption=amber_units, numbered=True) }}

{{ m.heading_text(nums["s-vars"], "Data variables") }}

Grouped by dimension; the per-group sample count is in each heading. Each row's Attributes cell expands to the full per-variable attribute set.

{{ nc.variables_tables(meta.variables.groups, source=meta.variables.source, caption="Amber Valid %: fewer valid values than samples. " ~ amber_units, numbered=True) }} {% if meta.scalars.rows %}

{{ m.heading_text(nums["s-scalars"], "Scalars") }}

Dimensionless (0-d) variables; an encoded time is decoded to a date.

{{ nc.scalars_table(meta.scalars.rows, source=meta.scalars.source, caption=amber_units, numbered=True) }} {% endif %} {% if meta.qc_exclusion %}

{{ m.heading_text(nums["s-qc-drop"], "QC exclusions") }}

Samples flagged QARTOD suspect (3) or fail (4) are dropped before pressure binning. The denominator is the count of finite input samples before binning, so the percentage is not distorted by binning's own reduction in point count.

A variable's exclusions are not all its own: the whole-cast soak / on-deck trim flags the same pre-descent and post-recovery scans on every variable, so a variable can be excluded here without its own gross-range or spike test having raised anything.

{% for r in meta.qc_exclusion %} {% endfor %}
VariableExcludedInput samples% excluded
{{ r.name }} {{ "{:,}".format(r.n_excluded) }} {{ "{:,}".format(r.n_input) }} {{ "%.2f"|format(r.pct) }}%
{% endif %} {% if meta.rename_map %}

{{ m.heading_text(nums["s-rename"], "Variable renaming") }}

Source → canonical name, from each variable's original_name attribute (written at read time) so the rename is reconstructable from the output alone. The same rename also shows inline in each variable row's Variable cell.

{% for src, canon in meta.rename_map.items() %} {% endfor %}
Source nameCanonical name
{{ src }}→{{ canon }}
{% endif %} {% if meta.sensor_catalog.rows %}

{{ m.heading_text(nums["s-sensor-catalog"], "Sensor catalog") }}

One dimensionless variable per distinct physical sensor; all provenance lives in its Attributes (model, serial, calibration date, vocabularies). No data, so no value range.

{{ nc.sensor_table(meta.sensor_catalog.rows, source=meta.sensor_catalog.source) }} {% endif %} {% if meta.sensor_linkage.groups %}

{{ m.heading_text(nums["s-sensor-linkage"], "Sensor linkage") }}

Per profile, the catalog variable naming the sensor in each role. String-valued, so no numeric range.

{{ nc.variables_tables(meta.sensor_linkage.groups, optional=("units", "minmax"), source=meta.sensor_linkage.source, caption=amber_linkage) }} {% endif %} {% if meta.sensor_channel.groups %}

{{ m.heading_text(nums["s-sensor-channel"], "Sensor channels") }}

Per profile, the raw CNV acquisition channel of each role's sensor (integer; -1 where unused).

{{ nc.variables_tables(meta.sensor_channel.groups, optional=("units",), source=meta.sensor_channel.source, caption=amber_linkage) }} {% endif %} {% if meta.globals.groups %}

{{ m.heading_text(nums["s-global"], "Global attributes") }}

Shown in the file's own write order, split into the canonical groups.

{{ nc.globals_tables(meta.globals.groups, computed=meta.coverage, coverage_note=meta.coverage_note, source=meta.globals.source) }} {% endif %} {% endif %} {{ js_top_links | safe }} {% endblock %}