Repository navigation
Add salinity measurements to Drifters #408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,4 +27,5 @@ Trying to add a sensor to an instrument that does not support it will result in | |
| | **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 | | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? |
||
| | **XBT** | TEMPERATURE | Sea Water Potential Temperature | °C | Physical | | ||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -579,8 +579,13 @@ class DrifterConfig(_InstrumentConfigMixin, pydantic.BaseModel): | |
| ) | ||
|
|
||
| sensors: list[SensorConfig] = pydantic.Field( | ||
| default_factory=lambda: [SensorConfig(sensor_type=SensorType.TEMPERATURE)], | ||
| description=("Sensors fitted to the drifter. Supported: TEMPERATURE. "), | ||
| default_factory=lambda: [ | ||
| SensorConfig(sensor_type=SensorType.TEMPERATURE), | ||
| SensorConfig(sensor_type=SensorType.SALINITY), | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? |
||
| ], | ||
| description=( | ||
| "Sensors fitted to the drifter. Supported: TEMPERATURE, SALINITY. " | ||
| ), | ||
| ) | ||
|
|
||
| model_config = pydantic.ConfigDict(populate_by_name=True) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But not all drifters record salinity, right? This is only for a small subset of the drifters. So make clear it's optional?