L1 analysis code and scripts