Tutorial: Lab 3, step by step¶
Linda Angulo Lopez, 29 November 2026. ODP Academy, Working with Ocean Data on ODP, Module 3: Code, Lab 3: Our places together.
Lab 3 puts each person's Lab 2 place on one shared map. It has three parts: (i) a group dataset that everyone can write to, (ii) your own dataset, holding your place as one row, and (iii) a Map Explorer view of your place for the assignment. This is how I did them for Group 21, in order, with the mistakes I made so you can skip them.
The three UUIDs¶
Every dataset on ODP has a UUID, on its page under UUID. Lab 3 uses several, and they look alike. Write yours down before you start:
| What | Group 21 |
|---|---|
| My own dataset (my place) | 363b2cc8-dcac-4ef8-aed0-44464d365eee |
| The group dataset (everyone's places) | c67bd440-2888-40c1-95a6-41ab4a95d954 |
| The group's collection | 1e1d78ff-3c8f-4486-95a5-52d5d0f01d42 |
I pasted the wrong one twice. Each time, the error message named the UUID it had used: read it.
Step 1. The group dataset (one person per group)¶
Say in the group chat that you will make it, so there are not two. Then on ODP:
- My Data → Add New Dataset. Name: Group 21 - all places. A one-line description and a few tags. No files: it stays empty, and each person's notebook adds a row.
- Manage Access. The group WIO Intro 2026 - Group 21 as Editor, and WIO Intro 2026 - All as Viewer. Then check the page: the group must be listed under Editors. Mine was under Viewers, which gives "403 Forbidden" when the others write.
- Collection ⊕ on the dataset page, and paste the collection's UUID.
- Post the dataset's UUID in the group chat and on the group page.
Do not click Request To Publish. The group dataset does not need the public catalog, and while it is In Review its access settings are locked. I clicked it, and had to ask HUB Ocean to add the group as Editor.
Step 2. Your own dataset: one row, your place¶
The Lab 3 notebook reads your place from your own dataset's table. Open the dataset page and look at Table: it should say 1 row.
Mine said 21 rows: protected areas in Tanzania. Earlier, in the lesson Pulling your first data, I had pasted my own dataset's UUID into the practice-dataset cell, and the lesson's practice table went into my real dataset.
To put my place back, in a Workspace:
from odp.client import Client
import urllib.request
cli = Client()
MY_ID = "363b2cc8-dcac-4ef8-aed0-44464d365eee"
MY_PLACE = "https://raw.githubusercontent.com/lindangulopez/odp-academy-2026/main/outputs/lab2/my_place.geojson"
ds = cli.dataset(MY_ID)
fid = ds.files.upload("my_place.geojson", urllib.request.urlopen(MY_PLACE).read())
ds.files.ingest(fid, opt="drop") # remove the old table, make a new one from my place
print(ds.table.stats().num_rows, "row") # 1 row
Use drop, not truncate: truncate keeps the old columns, and my place has different ones (name, why, geometry), so ODP refuses it. By hand it is the same: Upload files, then Ingest file to table. My full notebook, which looks at the table first and checks the result: lab3_prepare_my_place.ipynb.
Then add your own dataset to the group's collection too: Collection ⊕, and paste the collection's UUID.
Close the old lesson notebook. Later that evening I opened the wrong notebook and ran its "make the table" cell again. It stopped with Table already exists, because my place was there. The next cell would have added the Tanzania rows again. If a notebook has your real dataset's UUID in a practice cell, change it to your practice dataset, or delete the notebook.
Step 3. The map for the assignment¶
- On ODP, open Map Explorer and switch on Search in private data.
- Paste your own dataset's UUID and add it: your place. Once the group's rows are in, add the group dataset instead and colour it by
protected_pct. - Add a layer that says something about your place. I added ProtectedSeas Navigator for the Pondoland Marine Protected Area, and the GSFM Canyons for the seafloor.
- Zoom to your place and copy the link: it keeps the layers, colours and position.
In the assignment box: the link, and one line on what the data shows. Mine:
My place, the Port St Johns canyons, holds two submarine canyons that cut the narrow shelf within 8 km of the shore, and the map shows them mostly outside the Pondoland Marine Protected Area, just to its south.
Going further: species records with an AI helper¶
The optional lesson Code with an AI helper brings outside data into ODP for your place, with full metadata. The course gives a helper file for AI assistants, ODP AI Helper (v0.4): it tells the AI how ODP works, and never to ask for your API key. I used it with Claude Code, which wrote lab3_ai_helper_obis_species.ipynb. It runs in a Workspace, so no key is needed.
The notebook (i) reads my place from my own dataset, (ii) asks OBIS, the Ocean Biodiversity Information System, for the species records inside it, (iii) leaves out records whose source is restricted, (iv) writes the rest into a new dataset, Group 21 - Linda - species, as a table with a description for each column, and (v) sets the description, tags, licence, citation and additional info by code. Make the empty dataset in My Data first: the SDK cannot create one.
For the Port St Johns canyons, OBIS holds 4,172 records from 37 source datasets, 1900 to 2026, mostly line-fish: groupers (Epinephelus), the Chrysoblephus sea breams, and tiger sharks. Their licences differ:
| Licence | Source datasets |
|---|---|
| CC BY 4.0 | 23 |
| CC BY-NC 4.0 | 8 |
| CC0 1.0 | 4 |
| ODC-By 1.0 | 1 |
| Restricted | 1 (iziko South African Museum, Fish Collection: 101 records) |
So the notebook keeps 4,071 records of 762 taxa from 36 sources, gives every row its source dataset and licence, so each can be credited, and gives the dataset the strictest licence kept, CC BY-NC 4.0, as the helper advises. A "Restricted" source is a reason to leave its records out, not to ask the AI to look away.
Map from the notebook, run in my ODP Workspace on 29 November 2026. Data: OBIS (obis.org); records from Restricted sources left out. Axes in degrees, WGS84.
The records crowd the inshore corner near Port St Johns, where line-fish are landed and surveyed; offshore, over the canyons, they thin out. Few records there says more about where people have looked than about what lives there: a count of 0 means "not in this dataset", not "not there".
To save the map from the notebook, add one line at the end of its map cell: ax.figure.savefig("obis_records_port_st_johns.png", dpi=200, bbox_inches="tight").
I tested the OBIS part on my own computer, then ran the whole notebook in my Workspace on 29 November: 4,071 rows in the new dataset, and the description, licence, citation and additional info all set. Two fields stay by hand, because code does not save them: the Provider, and Manage Access (the group as Viewer).
What the AI did: it wrote the code, read the licences and drafts the description from the data. What stays yours: check the licence table, the records left out, and the printed description before they go on ODP, then the dataset page after.
Metadata on your own dataset¶
Your dataset page is what others see first. Three fields are worth a minute:
- Citation. Text takes the full citation, Doi only the DOI, without
https://doi.org/. My Module 2 layers are on Zenodo: doi:10.5281/zenodo.24659418. - Licence. Mine is the Open Data Commons Open Database License (ODbL 1.0) on ODP; the files on Zenodo are CC BY 4.0, as their sources.
- Provider. Everyone who can open the dataset sees the Email field. Leave it empty if the dataset is shared by link.
When it goes wrong¶
| What you see | Why | What to do |
|---|---|---|
| Your table has rows that are not your place | A practice cell wrote to your real dataset | Ingest your place with drop |
403 Forbidden, with PASTE-... in the URL |
The UUID is still placeholder text | Paste the real UUID between the quotes |
403 Forbidden when the group writes |
The group is Viewer, not Editor | Manage Access → group as Editor |
| Manage Access will not save | The dataset is In Review | Ask HUB Ocean in Slack or Discussions |
| The ingest is refused | truncate keeps the old columns |
Use drop |
| Add to Collection asks for an ID | It wants the collection's UUID | Copy it from the collection's page |
Table already exists |
The table is there | Fine, unless you are in the wrong notebook: check the UUID |
What this shows¶
The code was the easy part. Every problem I had came from one of three similar UUIDs in the wrong place, or from a button whose effect I had not checked. Look at a table before you change it, and read the UUID in every error.
Which UUID would you least want in the wrong cell?