How reefsupport/marine-data works
marine-data is a marine-dataset registry, ingestion toolkit, and dataset builder. The principal user workflow is to query sources against a task and licence profile, then use eligible data in published datasets; developers can also ingest source data, normalize and stage it, and release datasets. The graph preserves documented label mapping, task layers, and evaluation/quality capabilities. Edges reflect README statements or shown source references; where runtime wiring is not shown, relationships are omitted or marked unverified.
Main entry points: builder.py Dataset builder · registry.py Source registry · ingest_source.py Source ingestion · __init__.py Source adapters
Components 22
Registry & Licensing
- Source registry
src/marinedata/registry.py - Registry models
src/marinedata/models.py - Licence rules
src/marinedata/licence_class.py - Licence gate
src/marinedata/gate.py
Source Ingestion
- Source adapters
src/marinedata/adapters/__init__.py - Format decoding
src/marinedata/adapters/decode.py - Source ingestion
src/marinedata/ingest_source.py - Stream staging
src/marinedata/ingest_stream.py - S3 upload
src/marinedata/s3_upload.py - Checksums
src/marinedata/checksums.py
Dataset Production
- Dataset schema
src/marinedata/schema.py - Staged tables
src/marinedata/tables.py - Task layers
src/marinedata/task_layers/boxes_table.py - Keyed S3 data
src/marinedata/task_layers/s3_keyed.py - Dataset builder
src/marinedata/builder.py - Release pipeline
src/marinedata/release.py
Dataset Use
- Pandas integration
src/marinedata/integrations/pandas.py - Label mapping
src/marinedata/labels.py - Label quality
src/marinedata/labelquality/pipeline.py - Model evaluation
src/marinedata/eval/cli.py
Other components
- Data user
- Hugging Face datasets
Connections 19
- Data user → Source registry: queries sources
README.md - Source registry → Licence gate: checks eligibility
- Source registry → Registry models: validates entries
src/marinedata/registry.py - Licence rules → Source registry: reads licence data
src/marinedata/licence_class.py - Source ingestion → Source adapters: uses adapters
src/marinedata/ingest_source.py - Source adapters → Format decoding: decodes formats
src/marinedata/adapters/__init__.py - Source ingestion → Stream staging: stages stream
src/marinedata/ingest_source.py - Stream staging → S3 upload: uploads objects
src/marinedata/ingest_stream.py - Source ingestion → Checksums: records digests
src/marinedata/ingest_source.py - Staged tables → Checksums: writes digests
src/marinedata/tables.py - Dataset builder → Dataset schema: uses schema
src/marinedata/integrations/pandas.py - Dataset builder → Pandas integration: supports conversion
src/marinedata/integrations/pandas.py - Task layers → Keyed S3 data: uses keyed data
src/marinedata/task_layers/boxes_table.py - Data user → Hugging Face datasets: loads published data
README.md - Hugging Face datasets → Label mapping: remaps labels
README.md - Data user → Dataset builder: builds dataset
README.md - Dataset builder → Release pipeline: feeds release
- Data user → Label quality: checks annotations
- Data user → Model evaluation: evaluates models