Skip to content

SSDS — Shore-Side Data System Schema

SSDS (Shore-Side Data System) is MBARI's platform for archiving and serving time-series data from moored instruments (M0, M1, M2 moorings, MARS cabled observatory) and AUV surveys (Dorado, Tethys). It has two distinct schemas: a metadata catalog (36 tables describing instruments and deployments) and a data store (445 auto-generated tables, one per DataProducer, all identical in structure).

Data is exposed via OPeNDAP/DODS and served as NetCDF. SSDS also feeds STOQS and ERDDAP for specific parameters.


Metadata Schema

The metadata catalog describes what data exists: which physical instruments were deployed where and when, what data files they produced, and what variables those files contain. This schema is well-normalized with explicit FK constraints.

erDiagram
    Person {
        bigint id PK
        string firstname
        string surname
        string organization
        string username
        string email
    }
    DeviceType {
        bigint id PK
        string name
        string description
    }
    Device {
        bigint id PK
        string uuid
        string name
        string description
        string mfgName
        string mfgModel
        string mfgSerialNumber
        bigint PersonID_FK FK
        bigint DeviceTypeID_FK FK
    }
    Software {
        bigint id PK
        string name
        string softwareVersion
        string uriString
        bigint PersonID_FK FK
    }
    DataProducer {
        bigint id PK
        string name
        string dataProducerType
        datetime startDate
        datetime endDate
        float nominalLatitude
        float nominalLongitude
        float nominalDepth
        string hostName
        bigint PersonID_FK FK
        bigint DeviceID_FK FK
        bigint SoftwareID_FK FK
        bigint ParentID_FK FK
    }
    HeaderDescription {
        bigint id PK
        string description
        bigint byteOffset
        int numHeaderLines
    }
    RecordDescription {
        bigint id PK
        string recordType
        string bufferStyle
        string bufferParseType
        string bufferItemSeparator
        string recordParseRegExp
    }
    RecordVariable {
        bigint id PK
        string name
        string description
        string units
        string columnIndex
        bigint RecordDescriptionID_FK FK
    }
    StandardVariable {
        bigint id PK
        string name
        string description
        string referenceScale
    }
    DataContainer {
        bigint id PK
        string name
        string dataContainerType
        datetime startDate
        datetime endDate
        string uriString
        string mimeType
        float minLatitude
        float maxLatitude
        float minLongitude
        float maxLongitude
        float minDepth
        float maxDepth
        bigint PersonID_FK FK
        bigint HeaderDescriptionID_FK FK
        bigint RecordDescriptionID_FK FK
        bigint DataProducerID_FK FK
    }
    Resource {
        bigint id PK
        string name
        string uriString
        string mimeType
        bigint PersonID_FK FK
        bigint ResourceTypeID_FK FK
    }
    Keyword {
        bigint id PK
        string name
        string description
    }
    Event {
        bigint id PK
        string name
        datetime startDate
        datetime endDate
    }

    Person ||--o{ Device : "PersonID_FK"
    Person ||--o{ DataProducer : "PersonID_FK"
    Person ||--o{ DataContainer : "PersonID_FK"
    Person ||--o{ Software : "PersonID_FK"
    Person ||--o{ Resource : "PersonID_FK"
    DeviceType ||--o{ Device : "DeviceTypeID_FK"
    Device ||--o{ DataProducer : "DeviceID_FK"
    Software ||--o{ DataProducer : "SoftwareID_FK"
    DataProducer ||--o{ DataProducer : "ParentID_FK (hierarchy)"
    DataProducer ||--o{ DataContainer : "DataProducerID_FK"
    HeaderDescription ||--o{ DataContainer : "HeaderDescriptionID_FK"
    RecordDescription ||--o{ DataContainer : "RecordDescriptionID_FK"
    RecordDescription ||--o{ RecordVariable : "RecordDescriptionID_FK"

Association tables (many-to-many, not shown above): DataContainerAssocKeyword, DataContainerAssocResource, DataContainerGroupAssocDataContainer, DataProducerAssocEvent, DataProducerAssocKeyword, DataProducerAssocResource, DeviceAssocResource, ResourceAssocKeyword, PersonAssocUserGroup.

Standard vocabulary tables: StandardVariable, StandardUnit, StandardVariableAssocStandardUnit, StandardDomain, StandardKeyword, StandardReferenceScale.


Data Schema (Packet Store)

The data schema contains 445 tables, all with an identical structure. Each table is named by its DataProducer.id (e.g., [42], [1024]) and stores raw binary packets from that instrument or software process.

erDiagram
    DataProducer_N {
        int ssdsPacketVersion
        bigint parentID PK
        int packetType PK
        bigint packetSubType PK
        bigint dataDescriptionID PK
        bigint dataDescriptionVersion PK
        bigint timestampSeconds PK
        bigint timestampNanoseconds PK
        bigint sequenceNumber
        int bufferLen
        binary bufferBytes
        int bufferTwoLen
        binary bufferTwoBytes
        decimal latitude
        decimal longitude
        float depth
    }

Each bufferBytes column contains the actual sensor data, encoded in a format described by the RecordDescription in the metadata schema. Parsing requires the metadata catalog to interpret the binary payload.

Why 445 tables? SSDS was designed for high-throughput streaming: each DataProducer gets its own table to avoid hot-row locking. The table name is the DataProducer ID, so a lookup in the metadata schema is required to know which table holds which instrument's data.


Data Flow

flowchart LR
    Mooring["M0 / M1 / M2\nMoorings"] --> SSDS
    MARS["MARS\nCabled Observatory"] --> SSDS
    AUV["Dorado / Tethys\nAUV Surveys"] --> SSDS
    SSDS[("SSDS\nSQL Server")] --> OPeNDAP["OPeNDAP / DODS\n(NetCDF on demand)"]
    SSDS --> STOQS["STOQS\n(selected parameters)"]
    SSDS --> ERDDAP["ERDDAP\n(via erddap-tsdb pipeline)"]
    OPeNDAP --> Users["Analysts\nMatlab / Python"]

    style SSDS fill:#2196f3,color:#fff

Key URLs (internal): - OPeNDAP/DODS server: http://dods.mbari.org/opendap/ - SSDS web interface: internal only


Key Tables Summary

Table Schema Description
DataProducer Metadata A deployed instrument or software process (mooring leg, AUV mission)
Device Metadata Physical instrument (CTD, ADCP, fluorometer) with serial number
DataContainer Metadata A data file or data stream, with URI, bounding box, and time range
RecordDescription Metadata How to parse a data record (binary format, CSV, etc.)
RecordVariable Metadata Individual variable within a data stream (name, units, column)
StandardVariable Metadata Controlled vocabulary for variable names
Person Metadata Scientists and engineers who own instruments or data
[N] (×445) Data Raw packet store for DataProducer with id=N

FAIR Status

Principle Score Notes
Findable 1 / 3 Known internally; no external catalog; SSDS IDs not persistent across redeployments
Accessible 2 / 3 OPeNDAP/DODS provides standard protocol access; SQL Server backend is internal-only
Interoperable 1 / 3 OPeNDAP is a standard protocol; NetCDF output; variable naming not fully CF-compliant
Reusable 1 / 3 Metadata schema is rich; data lacks license statement and provenance chain in outputs

Overall FAIR Score: 5 / 12


Notes for FAIR Upgrade

  • CF convention alignment: RecordVariable names and units should be mapped to CF Standard Names. StandardVariable table exists for this but is likely underutilized.
  • External discovery: SSDS data is not registered in any external catalog (IOOS, BCO-DMO, ERDDAP federated search). Publishing key time-series datasets to ERDDAP with CF metadata would address this.
  • erddap-tsdb pipeline: Diana's pipeline already moves some STOQS-ingested SSDS data to ERDDAP via TimescaleDB — document this pathway and extend coverage.
  • DataProducer ID instability: When instruments are redeployed, they may get new DataProducer IDs, breaking external links. Consider persistent identifiers (DOIs or handle system) per instrument time-series.
  • Binary packet format: bufferBytes stores raw instrument packets. These are only readable with the SSDS parsing code. Transitioning to NetCDF-at-ingest (rather than NetCDF-on-demand) would improve long-term accessibility.

Existing Documentation

  • SQL schemas in this repository:
    • docs/research/data-systems/ssds/ssds-metadata.sql (19 KB, 36 tables)
    • docs/research/data-systems/ssds/ssds-data.sql (453 KB, 445 tables)
    • docs/research/data-systems/ssds/SSDS_Metadata.xsd.xml (72 KB, XML Schema)
  • Shore-side documentation: docs/research/data-systems/ssds/shore-side-data-system/
  • DataProduct specs: docs/research/data-systems/ssds/DPforSSDS/