Skip to content

Add salinity measurements to Drifters - #408

Merged
j-atkins merged 8 commits into
mainfrom
drifter-sal
Oct 21, 2026
Merged

j-atkins merged 8 commits into
mainfrom
drifter-sal

Conversation

@j-atkins

@j-atkins j-atkins commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

This PR adds salinity as a measurement to the Drifter instrument, which is a requested feature (see #312 ).

  • Updates docs to explain that the salinity sensor is available to Drifters, and the Drifter output tutorial to be able to plot salinity
  • Updates/adds tests

Closes #312

@j-atkins j-atkins changed the title Drifter sal Add salinity measurements to Drifters Oct 6, 2026

@erikvansebille erikvansebille left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments below

Comment thread docs/user-guide/assignments/Research_proposal_intro.ipynb
| **ARGO_FLOAT** | TEMPERATURE | Sea Water Potential Temperature | °C | Physical |
| | SALINITY | Sea Water Salinity | psu | Physical |
| **DRIFTER** | TEMPERATURE | Sea Water Potential Temperature | °C | Physical |
| | SALINITY | Sea Water Salinity | psu | Physical |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, we might need to consider the units here. psu is old and deprecated - the "correct" uint is g/kg (or unites) now. But what does copernicusmarine provide?

Comment thread src/virtualship/models/expedition.py Outdated
description=("Sensors fitted to the drifter. Supported: TEMPERATURE. "),
default_factory=lambda: [
SensorConfig(sensor_type=SensorType.TEMPERATURE),
SensorConfig(sensor_type=SensorType.SALINITY),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So salinity sampling is default always on for drifters? Do we really want that? is that authentic?

@j-atkins

Copy link
Copy Markdown
Collaborator Author

@erikvansebille, following your review, I have updated this PR to add a salinity sensor to the Drifters, but as an optional sensor which is not on by default, using the same approach as for the BGC Argo floats (i.e. #414).

Re: the psu units, I've checked the Copernicus docs and they are still providing psu. What do you think?

@erikvansebille erikvansebille left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, happy to be merged!

@j-atkins
j-atkins merged commit c603870 into main Oct 21, 2026
12 checks passed
@j-atkins
j-atkins deleted the drifter-sal branch October 21, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Salinity to drifter measurements

2 participants