{% import "_masthead.html" as mh -%} {% macro wbr(name) -%} {% for part in name.split("_") %}{{ part }}{% if not loop.last %}_{% endif %}{% endfor %} {%- endmacro -%} {% import "_per_dive.html" as pd -%} {{ masthead.title }} — {{ masthead.type }}
{{ mh.masthead(masthead, page_nav) }} {%- set secs = number_sections([("dimensions", "Dimension sizes"), ("presence", "Variables not in every dive"), ("per-dive", "Parameters that change"), ("salinity", "Salinity") if salinity else none, ("globals", "Global attributes that differ"), ("variables", "Variables by dimension")]) %} {{ mh.jump_nav(secs) }}

The {{ n_files }} basestation dive files {{ first_file }} … {{ last_file }}, described as they were read: {{ n_variables }} variables, {{ n_variables - n_partial }} in every dive. Nothing here is converted; how each variable became OG1 is on the Variables page.

{{ secs.mark["dimensions"] }} Dimension sizes by dive

One row per dimension, one cell per dive (dives {{ dives[0] }}–{{ dives[-1] }}, left to right; hover a cell for its dive and size). {%- if has_durations %} Shading: samples per minute of the dive (from its first to its last data point in the OG1 file), lightest to darkest across that row's dives , so a steady sample rate is one even shade whatever the dive depth; a step is a rate change, a gap is a dive without the dimension. A dimension of the same size in every dive is one mid shade.{% else %} The dive durations could not be read from the OG1 file, so every cell is one shade.{% endif %}

{%- for r in heatmap %} {%- endfor %}
DimensionBy diveMedian sizeMedian per minuteDives
{{ wbr(r.name) }} {% for c in r.cells %}{{ c.title }}{% endfor %} {{ "{:,}".format(r.median_size) }} {% if r.constant %}same size every dive{% elif r.median_rate is not none %}{{ "%.3g" | format(r.median_rate) }}{% else %}—{% endif %} {{ r.dives }}

source: seagliderOG1/reports/basestation.py:dimension_heatmap

{{ secs.mark["presence"] }} Variables not in every dive

{%- if patterns %}

{{ n_partial }} of {{ n_variables }} variables are missing from some dives. Variables in exactly the same dives share a strip: a filled cell is a dive the variable is in (hover for the dives). The other {{ n_variables - n_partial }} are in every dive.

{%- for p in patterns %} {%- endfor %}
InDivesVariables
{% for c in p.cells %}{{ c.title }}{% endfor %}{{ p.text }} {{ p.count }} {% if p.variables | length > 8 %}{% for v in p.variables[:6] %}{{ v }}{% if not loop.last %}, {% endif %}{% endfor %}
and {{ p.variables | length - 6 }} more{% for v in p.variables[6:] %}{{ v }}{% if not loop.last %}, {% endif %}{% endfor %}
{%- else %}{% for v in p.variables %}{{ v }}{% if not loop.last %}, {% endif %}{% endfor %}{% endif %}
{%- else %}

Every variable is in every dive.

{%- endif %}

source: seagliderOG1/reports/basestation.py:presence_patterns

{{ secs.mark["per-dive"] }} Parameters that change between dives

The one-value variables (calibration constants, pilot settings, log entries) whose value is not the same in every dive file. {{ pd.caption(max_runs) }} Names are as written in the OG1 file: OG1-named ones first, the rest folded by family.

{%- if per_dive_og1 %}{{ pd.dive_table(per_dive_og1, strip_width) }}{% endif %} {%- for family, rows in per_dive_families %}
{{ family }} ({{ rows | length }}){{ pd.dive_table(rows, strip_width) }}
{%- endfor %} {%- if not per_dive_og1 and not per_dive_families %}

None: every one-value variable is the same in every dive file.

{%- endif %}

source: seagliderOG1/reports/og1.py:per_dive_rows

{%- if salinity %}

{{ secs.mark["salinity"] }} Salinity: the basestation's corrections

The basestation writes salinity twice, corrected (salinity, written to the OG1 file as PSAL) and uncorrected (salinity_raw). Each line compares two of them, or one with practical salinity recomputed here from the basestation's conductivity, temperature and ctd_pressure with gsw.SP_from_C (SP(…); for this page only, not in the file), where both have a value. Differences in practical-salinity units; the strip is each dive's median difference (hover a cell for its dive and value). {%- if salinity.raw_count is not none and salinity.count is not none and salinity.count < salinity.raw_count %} salinity has {{ "{:,}".format(salinity.raw_count - salinity.count) }} fewer values than salinity_raw ({{ "{:,}".format(salinity.count) }} of {{ "{:,}".format(salinity.raw_count) }}): the basestation set them to missing in its corrections.{% endif %}

{%- for r in salinity.rows %} {%- endfor %}
DifferenceValuesMedianRMSLargestBy dive
{{ r.label }}
{{ r.note }}
{{ "{:,}".format(r.n) }}{{ r.median }}{{ r.rmsd }}{{ r.max_abs }} {% if r.strip %}{% for c in r.strip %}{{ c.title }}{% endfor %}{{ r.legend }}{% else %}—{% endif %}

source: seagliderOG1/reports/basestation.py:salinity_checks

{%- endif %}

{{ secs.mark["globals"] }} Global attributes that differ between files

The global attributes with more than one value across the dive files (the distinct values only, not which dive had which). Highlight rule: an attribute not expected to change from dive to dive (expected: times, dive number, bounds, identifiers, history).

{%- if unexpected %} {%- for r in unexpected %}{% endfor %}
AttributeDistinct valuesValues (up to 5)
{{ r.name }}{{ r.count }}{{ r["values"] | join(" · ") }}
{%- else %}

None beyond those expected to change.

{%- endif %} {%- if expected %}
Expected to differ ({{ expected | length }}) {%- for r in expected %}{% endfor %}
AttributeDistinct valuesValues (up to 5)
{{ r.name }}{{ r.count }}{{ r["values"] | join(" · ") }}
{%- endif %}

source: seagliderOG1/reports/basestation.py:differing_globals

{{ secs.mark["variables"] }} Variables by dimension

All {{ n_variables }} variables as read, folded by their dimensions. Values counts the non-missing values summed over the dive files; Dives the files the variable is in.

{%- for dim, rows in groups %}
{{ dim }} ({{ rows | length }})
{%- for r in rows %}{% endfor %}
NameUnitsdtypeValuesDives
{{ wbr(r.name) }}{{ r.units or "—" }}{{ r.dtype }}{{ "{:,}".format(r["values"]) }}{{ r.dives if r.dives is not none else "—" }}
{%- endfor %}

source: seagliderOG1/reports/basestation.py:variables_by_dimension

{{ js_sort_tables | safe }} {{ js_top_links | safe }}