Miscellaneous routines for CHIME analysis