Data format

The fields of a release and its JSON Schema. The files and where to download them are on Downloads.

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.

  • Aliases. The station pages for release 20261130 use 13 alias systems: NOAA, UHSLC, SHOM, PEGELONLINE, LINZ, Rijkswaterstaat, SMHI, Kartverket, DMI, GESLA, TICON, Marine Institute and FMI. An alias id belongs to one station only in a release.
  • Tombstones. A station id that is not used any more stays as a tombstone, with status removed. removed_in names the release that removed it, and merged_into names the station that holds its records.
  • Recommended set. recommended_set_id names the set that the published rule chooses. It is null when the release recommends none of the station's sets, and at a station that has no set. recommended_is_fallback is true when the recommended set is a fallback.
  • Stations without sets. A subordinate station can have subordinate_offsets or current_offsets in place of constant sets. A station can also be listed by name and position only, with its source records.

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).

  • role is gauge_station, published_harmonic_record, model or reference.
  • disposition is retained, metadata_only (identifying metadata only), not_fitted (observations with no fit), licence_restricted or unavailable.

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.

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.

  • set_id, source, and source type: official, gauge, analysis or model. A gauge set is an OTC fit. An analysis set holds constants that a third party, not the gauge operator, published from gauge observations.
  • Quantity (water_level or current), and the source's record id and version.
  • Record span: start, end and hours of good data. good_hours is required on each gauge set. An analysis set has record_span, and good_hours, when its publisher states them.
  • Datum (see below), convention_id, licence_id, QC status and flags, fallback, the constituents, and provenance.

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 reasons on sets in release 20261130 are:

  • reliability_withheld: the set's agreement with gauges is not established;
  • time_base_disputed: the evidence disputes the record's declared time base;
  • time_base_unresolved: the record's time base could not be resolved;
  • refused_fit: the fit did not pass the broken-record checks;
  • short_record_uncalibrated: a short record that the accuracy calibration does not cover;
  • licence_reading: a TICON-4 set kept as published, whose commercial use rests on TICON-4's CC BY 4.0 reading while the underlying record's own terms restrict it. It does not meet OTC's strict commercial criterion;
  • published_full_list: a TICON-4 set kept with its full published list, including constituents that OTC leaves out of its converted set.

The schema lists every reason.

Datum

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

  • zero says what the zero is: chart_datum, gauge_zero, vertical_datum (a national height system such as NAP, RH 2000, NN2000 or OD Malin), msl, harmonic_mean (the set's own harmonic origin, not a surveyed level) or unknown.
  • zero_name is the source's name for it, for example MLLW, PNP or NAP. zero and zero_name are optional.
  • msl_offset_m is the mean level above the zero (m).
  • named gives levels in metres above the same zero (negative when below), one value per key. A key starts with a lower-case letter, has only lower-case letters, digits and _, and is at most 31 characters. It is not mean_level, zero or chart.
  • basis is required with named and has one entry per key (see Datum basis).
  • chart_datum is the key in named that is the chart datum, for example mllw, lat or tide_table_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:

  • published: given by the level's publisher, unchanged except for units and zero. method is source, and source_name is the publisher's own name for the level. The publisher is the source, or the charting authority for a chart datum in the Baltic and the Kattegat and at the Baltic gauge operators' gauges.
  • computed: from harmonic constants. method is harmonic_extremes on a constant set. For LAT and HAT at a subordinate station it is subordinate_offsets: the reference station's predicted extremes with the offsets applied.
  • observed: reduced from a set's gauge record by NOAA's tidal-datum method. method is first_reduction, standard, modified_range_ratio or direct.

The other members:

  • epoch is the period the level refers to. Each observed level from a comparison, and each 19-year determination, refers to the OTC datum epoch, exactly 2002-01-01 to 2020-12-31 (OTC 2002-2020). Computed LAT and HAT come from 19 years of predictions, 2020 to 2038 (OTC LAT 2020-2038).
  • A published level has the source's epoch when the source states one for it, for example Kartverket's MSL (1996 to 2014). NOAA's LAT and HAT get none: NOAA states a 40-year window, currently 2000 to 2040, not per station, and a few stations still carry older values.
  • data_span gives the gauge data an observed level comes from: first and last day, and the number of months.
  • control names the control station of a comparison (station_id and set_id). For a published level it names the publisher's control station: the source's own id (source_id, required, for example the id in NOAA's ctrlStation) and its station_id when that station is in the release.
  • uncertainty_m is one standard deviation in metres. Its uncertainty_basis is source for a published level, only when the source gives one. It is calibrated or propagated for a computed or observed level.
  • flags: time_base_unverified, time_base_disputed, sampling_assumed, gaps, segment, short_record, truncated_lows, no_qualified_control, microtidal and provisional (published levels only).

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:

  • ok: constants, no flags;
  • flagged: constants, and qc_flags says what to know;
  • no_constants: the set is listed, but no constants were fitted. no_constants_reason is too_short or fit_unusable, and the set has at least one flag.

No status marks a record as removed: each record stays listed. Among the sets published here from release 20261130, 3,564 sets are ok, 18,510 are flagged and 71 are no_constants.

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.

Provenance

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

  • For any source: adapter_version, input_sha256, tcd_sha256, carried_from_release and derived_from_set_id (the set this one was derived from).
  • modified is only on an analysis set, exactly when its time base is corrected. It says what OTC changed in the publisher's constants: the indication of changes that CC BY 4.0 asks for.
  • Source-specific keys are listed on the source pages. JMA: redistribution, phase_reference_longitude_deg, jma_station_code, analysis_years and source_constituents_not_published. LINZ: member, position and header_dropped.
  • The JMA keys are valid only on a jma set and the LINZ keys only on a linz set. A JMA set in a release file has redistribution redistribute.

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.

  • code: verified, corrected, unverified or disputed.
  • The declared and published time base, and the correction from and to (only when corrected).
  • months_dropped: any months left out of the fit. It is a field, not a class.
  • evidence: per comparison, the comparator kind and id, its distance (km) and the measured lag in minutes. The lag is the record's time stamp of an event minus the comparator's time of it, so an hourly mean stamped at the start of its hour is about −30.

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.

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.

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.

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:

  • v0u_deg: V0 at 1 January 00:00 UTC plus u at the middle of the year, in degrees rounded to 0.01 and reduced to [0, 360);
  • f: the node factor at the middle of the year, rounded to 0.0001.

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:

  • bin number, depth (m) and how it is measured: below_surface, below_chart_datum or unknown, from NOAA's S, B and U;
  • major-axis azimuth (° true; the minor axis is positive 90° clockwise from it), and mean flood and ebb directions;
  • the mean current along the major and minor axes (m/s, signed);
  • per constituent, the speed (°/h), major- and minor-axis amplitude (m/s) and Greenwich phase (°).

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.

Validation

For release 20261130, this site has no validation record on any of its 22,145 sets, and carries no accuracy figure for individual stations. See Accuracy.

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.

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.

  • An entry has the datestamp, format_version, min_reader_version, concept_doi, zenodo_version_doi (or null), content_sha256, and the name, URL, size and checksum of each file.
  • Optional: created, changes, source_versions, changelog_url and zenodo_material (true when the release gets its own Zenodo version).
  • OTC_latest-f{MAJOR}.json, for example OTC_latest-f1.json, is the newest release of that format major. A reader that supports only an older major keeps working on the last release of that major.
  • A reader checks min_reader_version before it downloads a release, and does not download one that needs a newer format than it supports. An older release can have a lower value.

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.

JSON Schema

  • otc-1.0.schema.json: the JSON Schema (draft 2020-12) for format_version 1.0. Each line of the .jsonl file validates against #/$defs/station, and the .meta.json file against #/$defs/meta.
  • otc-index-1.0.schema.json: the JSON Schema for OTC_index.json. Each latest pointer validates against #/$defs/release_info. index-example.json is an example.
  • example.json: a small example document, described below.
What the example contains

The example contains release metadata, conventions, licences, constituent definitions and an astronomical table. The stations field holds an array of station records.

The format version is separate from the release date. A new optional field is a minor change. A removed or renamed field, or a changed unit or convention, is a major change. A change to an enum is a minor change for the schema, but it can change what a reader does with a set, so it raises min_reader_version. A deprecated field or value stays valid for one minor version.