Skip to content

Instantly share code, notes, and snippets.

@kreed
kreed / tcx_dist.py
Last active January 23, 2020 04:07
#!/usr/bin/env python
# Usage: ./tcx_dist.py [input.tcx] [new distance in meters]
# Override distance of track points in TCX with new overall distance
from time import strptime, strftime
import xml.etree.ElementTree as ET
import sys
import re
infile = open(sys.argv[1])
#!/usr/bin/env python
# Extracts T-Mobile cells from from Mozilla Location Service data
#
# Usage: Download an MLS export from https://location.services.mozilla.com/downloads
# and run with mls.py MLS-full-cell-export-XXXXXXXXX.csv.gz [low sector] [high sector]
from __future__ import print_function
import gzip