Data format

The fields of a release and its JSON Schema.

Fields

The format is 1.0 (format_version "1.0"). The JSON document has seven top-level fields: format_version, release, conventions, licences, constituents, astro_tables and stations. astro_tables is required when a convention has the nodal handling f_u_at_prediction.

Station

A stable station_id in the OTC namespace, name, country, position, IANA time zone, type (reference or subordinate), aliases in other systems, and the recommended_set_id. A station id is not changed and not reused.

Source record

source_records lists the upstream records behind a station, apart from its constant sets. Each has its source, source version and record id, a role, a disposition, its licence, and the sets published from it (published_set_ids).

source_records[].original_metadata.source_identity.country retains the country string supplied by the publisher, or null. It is source evidence, separate from the canonical station country.

Prediction profiles and offset alternatives (optional)

prediction_profiles binds each of observed-best and official to exactly one set_id or offset_id. Each identity resolves within the station. recommended_set_id still names a constant set; a profile bound to an offset does not change that recommendation.

Without an explicit model or profile, prediction uses observed-best when available. Explicit model selection remains available; a profile and an explicit model must agree. Each binding has a selection_status: measured or unmeasured.

selection_evidence is build-only and is not a public field.

subordinate_offset_alternatives is a nonempty array of closed {offset_id, offsets} objects beside the original subordinate_offsets. Each wrapper has a unique nonempty identity. Its offsets uses the existing offset body, with its own source, licence, reference and datum. The original handle is {station_id}/subordinate-offsets/{reference_station_id}, unless the original body has a historical offset_id.

Derived corrections keep their actual producer and evidence. They do not inherit the original model's LAT, HAT, accuracy or datum ties. These members are optional. A strict reader of format 1.0 may reject them.

Region code (optional)

The optional region_code is an ISO 3166-2 subdivision code, for example US-CA. NOAA ordinary US state/DC codes come from exact acquired state metadata. Coverage is partial. Unknown codes are omitted. These codes do not supply locality, a full region name or geographic context.

Constant set

One set of constants at a station, from one source. A station can have several sets.

One set is recommended by a published rule. Only sets of the same quantity compete for it (water level or current). The rule ranks sets that are not fallbacks first, then source types in the order above. A short record does not outrank a set at the same station that has constants and more hours of good data, whatever their source types. A set with no constants is not recommended.

A set whose record has a disputed or unresolved time base, or whose fit did not pass the checks, is kept and marked as a fallback.

Fallback

fallback marks a set that is kept with a stated limit. Its reason says which. preferred_set_id, when present, names a set at the same station that is not a fallback. A fallback set also carries a flag, fallback: followed by the reason.

The schema lists every reason.

Datum

The vertical reference of a constant set, and of a subordinate station's offsets (subordinate_offsets.datum).

When the station's chart-datum publisher publishes a chart datum, chart_datum names that published level. When it publishes none, chart_datum can name a computed or observed level, and its basis says which. A reader checks basis[chart_datum].kind to tell an OTC chart datum from the publisher's own.

A published chart datum is not replaced, per station: when any set of a station has one, no set of that station has a computed or observed chart datum. The published chart datum is its publisher's. That is the charting authority in the Baltic and the Kattegat, for BSCD2000 records anywhere, and for the gauges of the Baltic gauge operators (FMI, SMHI, DMI, WSV) outside them. Elsewhere it is the source that states it, or a GESLA or SHOM REFMAR record whose stated zero is the chart datum.

A computed or observed level does not replace a published one. Where a source publishes a level under a canonical key, an OTC value for the same datum has the key otc_ plus that key, for example otc_lat next to NOAA's lat. An otc_ key is not of kind published.

Datum basis

How one level was obtained. kind is one of three:

The other members:

Ranges (MN, GT, DHQ, DLQ) are not stored: they are differences of stored levels of the same kind and epoch. A subordinate station's datum has source and subordinate_offsets levels.

Rules the build enforces for the datum basis
  • Calibration. A calibrated uncertainty comes from OTC's cut-down experiments and from comparisons with published or gauge-computed values. Both use the tuning partition and gauges outside all partitions, not a holdout or reserve gauge. OTC's validation stations are split by a fixed hash into three partitions: the tuning partition, used to set methods and thresholds, and the holdout and the reserve, kept apart from it.
  • 19-year determination. A first_reduction without the flag no_qualified_control is a 19-year determination. The schema requires at least 216 months and the OTC epoch. The release build checks that the months are inside the epoch and that each calendar month counts in at least 17 of the 19 years.
  • Own-month average. A first reduction with the flag no_qualified_control is an average over the record's own months, with no suitable control station. It comes from at most 228 months, and not from a record with a 19-year determination's coverage. Its epoch equals its data span, so it is not adjusted to the OTC epoch.
  • Cut-off low waters. The flag truncated_lows goes with the direct method or a first reduction, and the direct method always carries it. A level by the direct method or with truncated_lows is a high-water level: mhw or mhhw (or otc_mhw, otc_mhhw).
  • When any level of a datum carries truncated_lows, the datum's only computed or observed levels are mhw, mhhw and hat (and their otc_ forms). Lows from a cut-off record are not used, so no other OTC level, low-water or chart datum, is given there. A published level of any key is kept, because the publisher's value does not come from that record.
  • Short records. An observed level has the flag short_record exactly when it comes from under 12 months of data. On a computed level the flag means constants from under one year of good data, which does not follow the IHO recommendation for computing LAT and HAT.
  • Sampling. sampling_assumed is not set on msl, mtl, dtl or their otc_ forms, which are means of heights.
  • Checks beyond the schema. basis and named have the same keys. Each otc_ key has a published key next to it. A comparison's control resolves to a set with a 19-year determination, over the same epoch, of each control level that the method's formulas use. A published chart datum is not replaced at the station.
  • An average over the record's own months has its epoch equal to its data span, and covers whole years once it has 12 months. Each date is a real date, with its period's start on or before its end.

QC status and flags

qc_status is one of three:

Each flag names itself in flag: time_base, broken_record, short_record, carried_over, microtidal, non_tidal_signal, sibling_disagreement, source_quality_note, or fallback: followed by a fallback reason. source_quality_note is only on an analysis set: a quality note that the publisher gives with its constants, for example a high share of missing data. A flag's values holds the numbers behind the flag.

A carried_over set keeps the constants of an earlier release, named in provenance.carried_from_release, because its source failed a check in this build.

Build-only flag reason text is not a public field. A publisher-reported source_quality_note may include values.missing_pct; it is not an OTC-derived completeness estimate.

Provenance

Where the set came from and what was done to it. It is a closed list of keys.

Build-only build, decision, selection_reason and JMA owner annotations are not public provenance fields.

A new key is added to the schema before a writer uses it.

Time-base annotation

time_base is required on each gauge and each analysis set. On an analysis set it is OTC's annotation of the same record. There, corrected means that OTC applied the correction to the publisher's phases, and disputed goes with a matching fallback.

A time base is a class such as utc_instant, utc_mean_start60, utc_plus_1, local_dst:Europe/Oslo or step:2010-03-01. An unverified or disputed time base also has a time_base flag. See Time-base checks.

Build-only reason, decided_in, decided_build_commit and evidence detail are not public fields.

utc_filtered_as_published describes filtered observations with explicit UTC timestamps kept as published. The effective response, centering and delay are unknown. This class implies no physical instantaneous response, timestamp shift or inverse-response correction. Both declared and published use this class: OTC classifies the documented source product, without claiming the publisher uses this token. Such a set has code unverified, qc_status flagged and the time_base flag, and no correction.

{
  "code": "unverified",
  "declared": "utc_filtered_as_published",
  "published": "utc_filtered_as_published"
}

Broken record

record_issues, one per problem: datum_step, flatline, spikes, gaps, clock_step, quantised, out_of_range, unstable_constituents, neighbour_disagreement or no_tide, with where it is and why. fit_segment names the part the constants are fitted to; it is absent when the whole record is fitted. An issue's values holds the numbers behind it. Comes with a broken_record flag. See Broken-record checks.

Only a datum_step issue can have values.step_m: the signed mean-level change in metres at the issue boundary.

Short record

A short_record flag, the record length (record_span.good_hours), and the constituents left out in dropped_constituents (at least one). A Rayleigh drop names the constituent it cannot be separated from, not_separable_from.

expected_accuracy gives the length long records were cut to, how many, and the expected amplitude and phase error or the expected time and height error. A record with less than about 15 days of good data (release.fit_min_good_hours) is no_constants with too_short. See Short records.

A short_record flag may include supplied calibration_inputs.M2 with amp_error_m, phase_error_deg and accuracy_claimed: false. These are supplied inputs, not validated accuracy; a null error remains null.

Constituent

OTC canonical name and the source's own name, Doodson number, speed (°/h), amplitude (m), Greenwich phase (°), uncertainties, and why it was kept. Dropped constituents are listed with the reason. Names are at most 15 characters.

Constituent table

One row per constituent name and constituent-table version in the release: Doodson number, speed (°/h) and nodal formula id.

Astronomical tables

astro_tables, one entry per table: its astro_table_id, V0 model, tables_sha256 (the checksum of the XTide harmonics file whose values it equals), generator, first_year and last_year. Per constituent it has the speed (°/h) and two arrays with one value per year:

Each value holds for the whole year and steps at 00:00 UTC on 1 January. The keys of a row are speed_deg_per_hour, v0u_deg and f. A predictor takes V0+u and f from here. See Conventions.

Current bin

Only in a set with quantity current, which has no water-level constituents. One per depth bin:

The station's default_current_bin names the bin to show first.

Subordinate offsets

Reference station, time offsets at high and low water (minutes), height offsets, and whether they are ratios or additive, as NOAA gives them. The station's own datum holds the levels its source publishes for it, and LAT and HAT computed by the offsets. They are above the station's chart datum as the offsets define it (for NOAA, its MLLW).

A subordinate current station has current_offsets instead, one per bin: reference station and bin, mean flood and ebb directions, time adjustments for maximum flood, slack before ebb, maximum ebb and slack before flood (minutes), and flood and ebb amplitude ratios.

Convention

Phase reference, V0 model, nodal handling, constituent-table version, and the astronomical table it uses (astro_table_id, required with f_u_at_prediction). validation holds the result of the per-source check: the number of gauges compared, and the median amplitude and phase differences. See Conventions.

Release

The datestamp, the upstream source versions (source_versions) and concept_doi: the one DOI for all versions, or null when there is none. fit_min_good_hours is the build's minimum hours of good data for a fit. min_reader_version is the oldest format version a reader must understand to use the release safely.

Build time and build commit are not public release fields. A changelog URL can appear in the release index and latest pointers.

A release file has no version DOI. That DOI is only in OTC_index.json and the latest pointers, as zenodo_version_doi.

Release index and latest pointers

OTC_index.json lists each release, newest first, in releases. OTC_latest.json and OTC_latest-f{MAJOR}.json are one entry each.

Licence

SPDX id (or a LicenseRef- id), provider, the citation the provider requires, if any, the assembled attribution text, and commercial_use. When commercial_use is false, each set with that licence_id is for non-commercial use only: restriction says why, and terms_url links the upstream terms. See Licence and attribution.