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.
- Aliases. 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
statusremoved.removed_innames the release that removed it, andmerged_intonames the station that holds its records. - Recommended set.
recommended_set_idnames 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_fallbackis true when the recommended set is a fallback. - Stations without sets. A subordinate station can have
subordinate_offsetsorcurrent_offsetsin 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).
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.
roleisgauge_station,published_harmonic_record,modelorreference.dispositionisretained,metadata_only(identifying metadata only),not_fitted(observations with no fit),licence_restrictedorunavailable.
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.
set_id, source, and source type:official,gauge,analysisormodel. Agaugeset is an OTC fit. Ananalysisset holds constants that a third party, not the gauge operator, published from gauge observations.- Quantity (
water_levelorcurrent), and the source's record id and version. - Record span: start, end and hours of good data.
good_hoursis required on eachgaugeset. Ananalysisset hasrecord_span, andgood_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.
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_readingandpublished_full_list.
The schema lists every reason.
Datum
The vertical reference of a constant set, and of a subordinate station's offsets (subordinate_offsets.datum).
zerosays 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) orunknown.zero_nameis the source's name for it, for exampleMLLW,PNPorNAP.zeroandzero_nameare optional.msl_offset_mis the mean level above the zero (m).namedgives 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 notmean_level,zeroorchart.basisis required withnamedand has one entry per key (see Datum basis).chart_datumis the key innamedthat is the chart datum, for examplemllw,latortide_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.methodissource, andsource_nameis 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.methodisharmonic_extremeson a constant set. For LAT and HAT at a subordinate station it issubordinate_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.methodisfirst_reduction,standard,modified_range_ratioordirect.
The other members:
epochis 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_spangives the gauge data an observed level comes from: first and last day, and the number of months.controlnames the control station of a comparison (station_idandset_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'sctrlStation) and itsstation_idwhen that station is in the release.uncertainty_mis one standard deviation in metres. Itsuncertainty_basisissourcefor a published level, only when the source gives one. It iscalibratedorpropagatedfor a computed or observed level.flags:time_base_unverified,time_base_disputed,sampling_assumed,gaps,segment,short_record,truncated_lows,no_qualified_control,microtidalandprovisional(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
calibrateduncertainty 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_reductionwithout the flagno_qualified_controlis 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_controlis 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_lowsgoes with the direct method or a first reduction, and the direct method always carries it. A level by the direct method or withtruncated_lowsis a high-water level:mhwormhhw(orotc_mhw,otc_mhhw). - When any level of a datum carries
truncated_lows, the datum's only computed or observed levels aremhw,mhhwandhat(and theirotc_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_recordexactly 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_assumedis not set onmsl,mtl,dtlor theirotc_forms, which are means of heights. - Checks beyond the schema.
basisandnamedhave the same keys. Eachotc_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, andqc_flagssays what to know;no_constants: the set is listed, but no constants were fitted.no_constants_reasonistoo_shortorfit_unusable, and the set has at least one flag.
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.
- For any source:
adapter_version,input_sha256,tcd_sha256,carried_from_releaseandderived_from_set_id(the set this one was derived from). modifiedis only on ananalysisset, exactly when its time base iscorrected. 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:
phase_reference_longitude_deg,jma_station_code,analysis_yearsandsource_constituents_not_published. LINZ:member,positionandheader_dropped. - The JMA keys are valid only on a
jmaset and the LINZ keys only on alinzset. The build checks JMA ownership and redistribution eligibility before publication.
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,unverifiedordisputed.- The
declaredandpublishedtime base, and thecorrectionfrom 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.
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:
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_datumorunknown, 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.
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.
- 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_urlandzenodo_material(true when the release gets its own Zenodo version). OTC_latest-f{MAJOR}.json, for exampleOTC_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_versionbefore 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.