IDL SAVE XDR format file reading in PHYTON Option 1: - from https://stackoverflow.com/questions/65433407/open-xdr-file-in-python - This functionality is built into scipy now: from scipy.io import readsav data=readsav("filename.xdr") print(data) The result ("data") should be self-explanatory, with the names of the variables as originally saved in IDL. Option 2: - from https://www.astrobetter.com/blog/2009/11/24/read-idl-save-files-into-python/ - I developed IDLSave, a package to read IDL ‘save’ files into Python, after being sent a few such files by collaborators. In this package, scalars are converted to their respective Python types, while arrays and structures are mapped to Numpy arrays and recarrays respectively. - Using IDLSave is easy. Let’s say you (or a collaborator) writes a save file with IDL> save, wavelength, flux, file='spectrum.sav' you will now be able to open this file in Python using >>> import idlsave >>> s = idlsave.read('spectrum.sav') after which you will be able to access the values using s.wavelength and s.flux. - Source: https://sourceforge.net/projects/idlsave/