Generate the .csv for the melding analysis