interpret_sbs_variable.py#
- class seabirdscientific.interpret_sbs_variable.SBSVariable#
Interpreted metadata for a single SBS variable.
- Parameters:
name – converted variable name with special characters removed
aliases – other names that return this variable
format –
%ffor a numeric value,%sfor a text stringunits – variable units; empty string if undefined
title – variable title, such as Temperature or Conductivity
info – other info, such as ITS-90, Secondary, or sensor model
- seabirdscientific.interpret_sbs_variable.interpret_sbs_variable(alias: str) SBSVariable#
SBS variable name interpretation.
Converts the strings that define SBS variables to strings that exclude special characters. Gives the units, title, and sensor type for each variable and defines whether it is a number or a text string.
All variables are defined in the
sbs_variables.jsonresources file, originally imported from SBEDataProcessing_7.26.4.pdf. There may be additional variables added in future versions of Sea-Bird Data Processing modules that are not included there.- Parameters:
alias – text string with the SBS variable name
- Returns:
a typed dict with the following fields: name, aliases, format, units, title, and info