GsmDecomposer

class sitchlib.gsm_decomposer.GsmDecomposer[source]

Decomposes GSM scans.

classmethod bts_from_channel(channel)[source]

Return clean BTS from channel.

classmethod convert_float_targets(channel)[source]

Convert rxq and rxl to float.

classmethod convert_hex_targets(channel)[source]

Convert LAC anc CellID from hex to decimal.

classmethod decompose(scan_document)[source]

Turn one scan document into a list of channel scan documents.

Parameters:scan_document (dict) – GSM modem scan.
Returns:
List of tuples. First position in tuple identifies scan
type. Second position is the actual scan data.
Return type:list
classmethod enrich_channel_with_scan(channel, scan_document)[source]

Enrich channel with scan document metadata.

classmethod get_cgi_int(channel)[source]

Attempt to create an integer representation of CGI.

classmethod make_bts_friendly(bts_struct)[source]

Expect a dict with keys for mcc, mnc, lac, cellid.