Skip to content

QC check for depth to change #9

@kmexter

Description

@kmexter

Discussed with @bulricht: "depth" in the sampling tab of the logsheets is now to be treated as a string (as indicated in the logsheet_schema file), however as there is a QC check for this against the tot_depth_water_col in the observatory tab of each logsheet, this check will have to be done in a new way:

Read the string.
IF it has a - in it, then assume it is formatted as "float - float".
THEN take the larger of the two floats. This is what you should check against max depth and is what needs to get into the ENA XML files.
IF it does not have a - in it then check whether it is a float (a single number)
IF it is a float. this is the value to check against the max depth and to put in the ENA XML files
IF it is not a float, then report "an error with the formatting of depth"

(taken out of emo-bon/observatory-profile#21)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

⛑️ Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions