ctdclient.model.metadataheader module¶
- class ctdclient.model.metadataheader.MetadataHeader[source]¶
Bases:
objectCollects all methods for filling the custom metadata header.
- classmethod build_metadata_header(psa, platform, cast, operator, pos_alias='', autostart=False)[source]¶
Generates the metadata header in the needed format and saves the last operator.
- Parameters:
psa (
SeasavePsa) – The config file to editplatform (
str) – The instrument namecast (
str) – The cast numberoperator (
str) – The CTD operator namepos_alias (
str) – A station name aliasautostart (
bool) – Whether to start seasave automatically
- classmethod create_metadata_header_line(name, value)[source]¶
Helper method to contruct key-value information in metadata header.
- Parameters:
name – key
value – value
- Return type:
Formatted key-value string.