Convert hdf5 CHIME data to PSRFITS