Skip to content

BOG Database Schema

BOG (Biological Oceanography Group database) is MBARI's oldest operational data store for ship-based oceanographic sampling. It holds 38+ years of water-column measurements collected during expeditions aboard the Western Flyer, Rachel Carson, and predecessor vessels at Monterey Bay time-series stations and beyond.

BOG is a Microsoft SQL Server database with 45+ tables. Most tables share a natural composite key — (PROJECT, EXPD, SEQ, PLATFORM) — that links a sample back to a station visit (row in EXPEDITION). Unlike most relational databases, BOG enforces very few foreign key constraints; referential integrity is maintained by application logic.


Core Sampling Relationships

The EXPEDITION table is the central record for each station visit. All scientific sample tables below link to it via the shared natural key EXPD + SEQ + PROJECT. Underway data has its own proper FK relationship.

erDiagram
    PROJECT {
        int ID PK
        string project
        string platform
        string project_name
        string cruise
        string pi_1
        string pi_2
        string web_page
    }
    EXPEDITION {
        int expedition_id PK
        int expd
        int seq
        string project
        string platform
        string cruise
        datetime date_time
        decimal dec_lat
        decimal dec_long
        string site_id
        int secchi_dep
        float bottom_dep
        string ctd_id
    }
    BCTD {
        int CTD_BOTTLE_ID PK
        string cruise
        int expd
        int seq
        int depth
        int bottle
        string project
        datetime date_time
        float PRESSURE
        float CHL_GFF
        float TEMPERATURE
        float SALINITY
    }
    CARBON {
        int CARBON_ID PK
        int expd
        int seq
        int depth
        int bottle
        string project
        datetime date_time
        float PRESSURE
        float CARBON_GFF
        float TOTAL_CO2
        float ALKALINITY
    }
    HPLC {
        int HPLC_ID PK
        string project
        int expd
        string cruise
        int seq
        float depth
        datetime date_time
        float Tot_Chl_a
        float DV_Chl_a
        float Prymnesiophytes
        float Dinoflagellates
    }
    FCM {
        int FCM_ID PK
        int expd
        int seq
        int depth
        string project
        datetime date_time
        float FCM_PROS
        float FCM_SYN
        float FCM_PEUKS
        float FCM_HBACT
    }
    MSD {
        int msd_id PK
        int expd
        int seq
        string project
        datetime date_time
        float WSD
        float MSD
    }
    PRR {
        int PRR_ID PK
        string project
        string cruise
        datetime cast_date
        int expd
        int seq
        int depth
        float dec_lat
        float dec_long
        float Ed412
        float Ed490
    }
    secchi {
        string cruise
        int expd
        int seq
        int secchi
    }
    NPS {
        int nps_id PK
        int expd
        int seq
        int depth
        string project
        datetime date_time
        float gross_pp
        float net_pp
    }

    PROJECT ||--o{ EXPEDITION : "project (natural key)"
    EXPEDITION ||--o{ BCTD : "expd+seq+project"
    EXPEDITION ||--o{ CARBON : "expd+seq+project"
    EXPEDITION ||--o{ HPLC : "expd+seq+project"
    EXPEDITION ||--o{ FCM : "expd+seq+project"
    EXPEDITION ||--o{ MSD : "expd+seq+project"
    EXPEDITION ||--o{ PRR : "expd+seq"
    EXPEDITION ||--o{ secchi : "expd+seq"
    EXPEDITION ||--o{ NPS : "expd+seq+project"

Note: Relationships shown above are logical (enforced by application), not declared SQL foreign keys. The natural composite key (PROJECT, EXPD, SEQ, PLATFORM) joins all sample tables to the station record.


Underway Data

Continuous underway measurements (TSG, fluorometer, pCO2, etc.) are stored separately with a proper FK relationship:

erDiagram
    Underway_EXPD {
        int underway_expd_id PK
        int expd
        string project
        string platform
        string site_id
        datetime start_date_time
        string cruise
        string comment
    }
    Underway_DATA {
        int underway_data_id PK
        int underway_expd_id FK
        datetime date_time
        float jtime
        float dec_lat
        float dec_long
        float temp_sbe45
        float sal_sbe45
        float fluor_wetstar
        float pco2_licor
    }
    instru {
        int MBARI_ID PK
        int SSDS_ID
        string Technician
        string Manufacturer
        string Type
        string Model
        string Serial
    }
    trans {
        int ID PK
        int MBARI_ID FK
        datetime Date
        string Location
        string Status
        string Calibrations_performed
    }

    Underway_EXPD ||--o{ Underway_DATA : "underway_expd_id"
    instru ||--o{ trans : "MBARI_ID"

Key Tables Summary

Table Description Key Fields
EXPEDITION Station visits — the backbone of all sampling expedition_id, expd, project, cruise, dec_lat, dec_long
PROJECT Cruise/project metadata and PI information project, platform, pi_1, cruise
BCTD Bottle CTD — hydrographic profiles per bottle expd, seq, depth, bottle, PRESSURE, TEMPERATURE, SALINITY
CARBON Carbon chemistry (POC, DOC, pCO2, alkalinity) expd, seq, depth, CARBON_GFF, TOTAL_CO2, ALKALINITY
HPLC Pigment analysis (phytoplankton composition) expd, seq, depth, Tot_Chl_a, DV_Chl_a, 15+ pigment columns
FCM Flow cytometry (picoplankton cell counts) expd, seq, depth, FCM_PROS, FCM_SYN, FCM_HBACT
MSD Mean spherical diameter (particle size) expd, seq, depth, WSD, MSD
PRR Profiling reflectance radiometer (light/optics) expd, seq, depth, Ed412-Ed670
NPS Net/gross primary productivity expd, seq, depth, gross_pp, net_pp
secchi Secchi disk depth expd, seq, secchi
TAXA Taxonomic reference table taxa_id, taxa_name
Underway_EXPD Underway transect header underway_expd_id, expd, cruise, start_date_time
Underway_DATA Continuous underway measurements underway_expd_id, date_time, temp, sal, fluorescence, pCO2
instru Instrument registry MBARI_ID, Manufacturer, Type, Model, Serial
trans Instrument calibration/transfer log ID, MBARI_ID, Date, Status

Additional tables: ASTAR (absorption spectra), NOAA_* (NOAA-mirror versions), GrowthRate, PB_Opt, LIGHTDEPTH, IV, par, upwelling, Avgd_CTD, Bottle_Salinity, KONSTANTS, PCTD, loadnut/old_loadnut (nutrient loads).


Data Flow

flowchart LR
    Ships["Western Flyer\nRachel Carson"] --> CTD["CTD Rosette\nSampling"]
    CTD --> BOG[("BOG\nSQL Server")]
    BOG --> STOQS["STOQS\n(some parameters)"]
    BOG --> ERDDAP["ERDDAP\n(some parameters\nvia erddap-tsdb)"]
    BOG --> Reports["Analyst Reports\n(manual export)"]

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

Current access: Via MS SQL Server connection (internal network only). No public API or standard protocol.


FAIR Status

Principle Score Notes
Findable 1 / 3 Known internally; no catalog entry, no persistent ID per dataset
Accessible 1 / 3 SQL Server access for internal users; no REST API or ERDDAP endpoint for most tables
Interoperable 0 / 3 Proprietary SQL Server; no CF conventions; natural-key instead of FK referential integrity
Reusable 0 / 3 No data dictionary, no license statement, no provenance metadata

Overall FAIR Score: 2 / 12


Notes for FAIR Upgrade

  • Highest priority: Publish time-series station data (M1, M2, Davenport line) via ERDDAP with CF-standard variable names and units. Diana's erddap-tsdb pipeline already does this for some parameters.
  • Data dictionary: BOG has no published data dictionary. Variable names (e.g., FCM_PROS, APH412) are undocumented outside institutional memory. Documenting these is a prerequisite for interoperability.
  • Natural key problem: The (PROJECT, EXPD, SEQ, PLATFORM) composite key makes cross-system joins fragile. EXPD correlates with EXPD in the EXPD database — this linkage should be formalized and documented.
  • NOAA mirror tables: NOAA_* tables (NOAA_BCTD, NOAA_CARBON, etc.) are undocumented. Clarify whether these are MBARI contributions to CalCOFI/NOAA or copies of NOAA data.
  • Underway data gap: Only Underway_DATA captures continuous ship data; ADCP, EK80, and multi-beam are not in BOG.

Existing Documentation

  • SQL schema: docs/systems/BOG/BOG.sql in this repository
  • No public documentation identified