Formatters¶
Downstream systems ingest transformed survey data in several formats.
Formatter classes are stateless namespaces for functions which convert survey data to those downstream formats.
-
class
sdx.common.formats.cs_formatter.
CSFormatter
[source]¶ Formatter for common software systems.
Serialises standard data types to PCK format. Creates a receipt in IDBR format.
-
static
pck_form_header
(form_id, ru_ref, ru_check, period)[source]¶ Generate a form header for PCK data.
-
static
pck_lines
(data, batch_nr, ts, survey_id, inst_id, ru_ref, ru_check, period, **kwargs)[source]¶ Return a list of lines in a PCK file.
-
static