Codes to convert Halias data