CalCOFI.io
Documentation
Start here
CalCOFI.io is the open, versioned, integrated database of CalCOFI’s observations — the physical, chemical and biological measurements of one of the world’s longest ocean time series, from 20 datasets, in one schema — and the products around it: an explorer that runs in your browser, packages for R and Python, a page and a citable record for every dataset, and the portals the data reach. This book is its documentation, for everyone who uses the data, builds on it, or contributes to it.
Five phases, one system
The SIO-CalCOFI data management plan organizes the work into five phases. They are also the book’s spine: each phase has a product that realizes it and a chapter that explains it, and Figure 1 reads left to right along them.
- Ingest. Each source dataset — a bottle database, a CTD archive, a net-tow spreadsheet — is turned into the shared schema by one reproducible notebook, with the provider’s own identifiers kept as columns and every open question filed with the provider. → Ingesting a dataset, Metadata & the ingest loop.
- Integrate. The shards join on a handful of shared keys — the cruise, the station, the sampling event, the taxon, the measured quantity — under one naming convention, and a release is cut only after its keys and its bounds have been checked. → The database, Keys and integrity, Naming conventions, Releases.
- Publish. From the release, one record per dataset is generated, and from that record the dataset pages, the metadata documents and the packages that reach ERDDAP, OBIS, EDI and the archives — so a description written once reaches every portal. → Portals, Cite this data.
- Visualize. The Explorer looks at the whole database through six lenses with nothing but a browser; the packages read the same bytes from R and Python; every dataset has a page. → Explore, Access the data.
- Synthesize. The plan, its tasks and their status, and the architecture that ties the rest together, kept as a living record. → The data management plan, Architecture, Status.
Which door is yours
Short answers to the questions asked most — how to download, how to cite, which site is which — are in Frequently asked questions. Otherwise, pick the row that fits you.
The rows name what you see on calcofi.io. Its first screen asks Where do you want to start? over three cards — Visualize on a map, Download a dataset and Pull exact data — with two links under them, Contribute and Statewide monitoring (for ocean and fisheries management, calcofi.io/#monitor). Its header, the one at the top of this book too, reads Data · Map · Learn.
| If you are … | start with | then |
|---|---|---|
| new to CalCOFI and curious what it collects | Learn › How CalCOFI samples in the header (calcofi.io/#learn) | Explore |
| a researcher new to CalCOFI data, who wants to see it and take some home | the first card, Visualize on a map: its button opens the Explorer, where you pick what, when and where on a map, then download the table (Explore is its guide) | Access the data, Cite this data |
| familiar with CalCOFI and after one particular dataset | the second card, Download a dataset: Browse datasets opens the dataset catalog (also Data › Datasets in the header), where each dataset’s page says where to get it and how to cite it | Portals |
| publishing or reporting work that uses CalCOFI data | Cite this data, which is Learn › Cite the data in the header | Releases |
| an analyst or programmer pulling data in R, Python or SQL | the third card, Pull exact data: the Query Builder (also Data › Query Builder in the header) makes one table across datasets with no code, and Code opens R, Python, SQL and ERDDAP side by side (calcofi.io/#program), which Access the data explains | The database, Keys and integrity, Releases |
| a data provider, now or in future | Contribute, under the cards, which opens Providing data to CalCOFI | Metadata & the ingest loop, Portals |
If you are not sure between the second and third rows: use the Explorer when you want several kinds of observations together, or only one area and period; use a dataset’s own page when you want that one dataset as its provider published it.
If you work on the CalCOFI team, these are your doors.
| If you are … | start with | then |
|---|---|---|
| on the CTD team | CTD QA/QC, start to release | Server access |
| on the data team, or building a CalCOFI.io product | Ingesting a dataset | Products, brand and uptime, Architecture |
| reporting on the program | The data management plan | Status |
Pick your row in Table 1, or in Table 2 if you work on the team; every chapter links onward to the next one you are likely to want.
How this book is kept true
Prose is authored; facts are generated. Every table of counts, columns, keys, datasets, portals or statuses is read from the record — the promoted release’s own sidecars and the registries in CalCOFI/workflows — when the book renders, so a page cannot describe a database that has since changed. Where a chapter states a rule, the rule is one the pipeline enforces, and the chapter says how. The source of every chapter is one file in CalCOFI/docs; the pencil in the margin edits it.