EXPD Database Schema
EXPD is MBARI's expedition and ROV operations database — the system of record for every research cruise and dive since 1988. It tracks expeditions (ship trips), ROV dives (Ventana, Doc Ricketts, Tiburon, MiniROV), navigation, camera state, and CTD profiles. EXPD is also the source of truth for VARS dive metadata.
EXPD is a Microsoft SQL Server database with 433 tables, the vast majority being year-partitioned data tables (one table per year per data type, 1988–2030, pre-created to 2030). Only ~30 tables are core entity tables; the rest are identical in structure but partitioned by year for performance.
Core Entity Relationships
The fundamental relationships: expeditions contain dives, dives produce navigation and instrument data, and geographic regions describe where expeditions occurred.
erDiagram
PlatformLookup {
int DeviceID
char ShortName
string LongName
}
Person {
int PersonID PK
string LastName
string FirstName
string SystemAccount
string Agency
}
Region {
int RegionID PK
string RegionName
float MaxLatitude
float MinLatitude
float MaxLongitude
float MinLongitude
}
Expedition {
int ExpeditionID PK
int DeviceID
char ShipName
int ShipSeqNum
string ExpdChiefScientist
string ExpdPrincipalInvestigator
datetime ScheduledStartDtg
datetime ScheduledEndDtg
datetime StartDtg
datetime EndDtg
string Purpose
string Accomplishments
}
ExpeditionRegion {
int ExpeditionID_FK FK
int RegionID_FK FK
}
Dive {
int DiveID PK
int DeviceID
char RovName
int DiveNumber
int ExpeditionID_FK FK
datetime DiveStartDtg
datetime DiveEndDtg
string DiveChiefScientist
decimal DiveLatMid
decimal DiveLonMid
decimal DiveDepthMid
}
RovCtdCfg {
int RovCtdCfgID PK
int DeviceId
string ChannelName
int ChannelNumber
string Units
float ScaleFactor
float Offset
}
Waypoint {
string WaypointName PK
int WaypointOwnerID
string Vehicle
decimal Latitude
decimal Longitude
decimal Depth
decimal Heading
datetime CreateDTG
datetime ExpireDTG
}
PlatformLookup ||--o{ Expedition : "DeviceID (ship)"
PlatformLookup ||--o{ Dive : "DeviceID (ROV)"
Expedition ||--o{ Dive : "ExpeditionID_FK"
Expedition ||--o{ ExpeditionRegion : "ExpeditionID_FK"
Region ||--o{ ExpeditionRegion : "RegionID_FK"
Time-Partitioned Data Tables
The 400+ partitioned tables all share the same structure within each data type. Pre-created from 1988 through 2030, each accepts data for its year only (enforced via CHECK constraint on DatetimeGMT).
ROV CTD Data (RovctdData_YYYY)
One table per year, 1988–2030. Temperature, salinity, oxygen, and other CTD channels from ROV-mounted sensors.
erDiagram
RovctdData_YYYY {
datetime DatetimeGMT PK
int DeviceId PK
int EpochSecs
int LoadID_FK
decimal p
decimal t
decimal c
decimal s
decimal o2
decimal light
decimal trans
decimal rlat
decimal rlon
decimal rdepth
}
DeviceId → PlatformLookup.DeviceID (ROV). LoadID_FK → load batch identifier. Channels vary by ROV and configuration; see RovCtdCfg / RovCtdCfg_DocRicketts / RovCtdCfg_Ventana for column-to-sensor mapping.
ROV Navigation (CleanRovnavData_YYYY)
Cleaned, QC'd ROV position, attitude, and ship position.
erDiagram
CleanRovnavData_YYYY {
datetime DatetimeGMT PK
int DeviceId PK
int EpochSecs
int LoadID_FK
decimal Latitude
decimal Longitude
real Pressure
real Depth
real Altitude
real Heading
real Pitch
real Roll
decimal ShipLatitude
decimal ShipLongitude
}
Corresponding RawRovnavData_YYYY stores unprocessed navigation before QC.
Ship Navigation (RawShipnavData_YYYY)
Ship GPS position, heading, and DGPS flag.
erDiagram
RawShipnavData_YYYY {
datetime DatetimeGMT PK
int DeviceId PK
int EpochSecs
int LoadID_FK
decimal Latitude
decimal Longitude
real Heading
boolean Dgps
boolean QCFlag
}
Camera Log (CamlogData_YYYY)
Per-frame camera state: timecode, focus, zoom, iris — synchronized with ROV video.
erDiagram
CamlogData_YYYY {
datetime DatetimeGMT PK
int DeviceID PK
int EpochSecs
int LoadID_FK
string betaTimecode
string hdTimecode
smallint mainFocus
smallint mainZoom
smallint mainIris
decimal focusVolts
decimal zoomVolts
decimal irisVolts
}
Table Inventory by Type
| Table Group | Count | Years | Description |
|---|---|---|---|
RovctdData_YYYY |
43 | 1988–2030 | ROV CTD profiles (temp, sal, O2) |
RovctdBinData_YYYY |
43 | 1988–2030 | Depth-binned ROV CTD averages |
CleanRovnavData_YYYY |
43 | 1988–2030 | Cleaned ROV navigation |
RawRovnavData_YYYY |
43 | 1988–2030 | Raw ROV navigation (pre-QC) |
RawShipnavData_YYYY |
43 | 1988–2030 | Raw ship GPS navigation |
CamlogData_YYYY |
43 | 1988–2030 | Camera log (timecodes, lens state) |
LegacyCamlogData_YYYY |
20 | 1988–2007 | Legacy camera log format |
DocRickettsRawCtdData_YYYY |
23 | 2008–2030 | Doc Ricketts raw CTD |
VentanaRawCtdData_YYYY |
23 | 2008–2030 | Ventana raw CTD |
MinirovRawCtdData_YYYY |
29 | 2012–2040 | MiniROV raw CTD |
| Core entity tables | ~30 | — | Expedition, Dive, Person, Region, etc. |
| Total | 433 | — |
Data Flow
flowchart LR
Ships["Western Flyer\nRachel Carson"] --> ShipNav["Ship Navigation\n(GPS, heading)"]
ROVs["Ventana\nDoc Ricketts\nMiniROV"] --> ROVNav["ROV Navigation\n(USBL, DVL)"]
ROVs --> CTD["ROV CTD\n(SeaBird, AML)"]
ROVs --> Camera["Camera Log\n(timecodes)"]
ShipNav --> EXPD
ROVNav --> EXPD
CTD --> EXPD
Camera --> EXPD[("EXPD\nSQL Server")]
EXPD --> VARS["VARS\n(dive metadata)"]
EXPD --> M3["M3 / Video Lab\n(dive planning)"]
EXPD --> Reports["Cruise Reports\n(manual export)"]
style EXPD fill:#2196f3,color:#fff
FAIR Status
| Principle | Score | Notes |
|---|---|---|
| Findable | 1 / 3 | Known internally; dive records accessible via VARS UI; no external catalog |
| Accessible | 1 / 3 | SQL Server access for internal users; some data surfaces through VARS web API |
| Interoperable | 0 / 3 | Proprietary SQL Server; no CF conventions; custom column names (e.g., p, t, c, s) |
| Reusable | 0 / 3 | No data dictionary for CTD channel names; no license; no provenance metadata |
Overall FAIR Score: 2 / 12
Notes for FAIR Upgrade
- CTD column naming: Columns like
p,t,c,s,o2have no documented meaning in the schema.RovCtdCfgtables map channels to sensors, but this needs surfacing as a data dictionary. Mapping to CF Standard Names (e.g.,sea_water_temperature,sea_water_practical_salinity) is essential for interoperability. - Year-partitioned tables: The 1988–2030 pre-creation strategy works for SQL Server performance but makes querying across years require UNION ALL over 40+ tables. A view or materialized view covering the full time range would dramatically improve usability.
- VARS integration: EXPD and VARS are closely linked — EXPD holds the navigation and CTD data while VARS holds the biological annotations timed to the same dives. A formal FK or join key between the two systems should be documented.
- Ship navigation gap:
RawShipnavData_YYYYcaptures GPS/heading. ADCP, EK80, multi-beam, and ship CTD data are not in EXPD — these are managed separately and represent a gap in the archive. - OpenDAP/OGC: ROV track data would be highly valuable served via OGC Moving Features or WMS/WFS for GIS tools.
Existing Documentation
- SQL schema:
docs/research/data-systems/expd/expd.sqlin this repository (533 KB, 433 tables) - Stored procedures and additional SQL:
docs/research/data-systems/expd/directory