This one is for SLC dats, but maybe you can adapt it according to your needs: Python S1-TOPS-SPLIT Analyzer