code used for converting fits to txt and calling correlation function code xi