A CASA-based data reduction pipeline for the STING-HI project