Codes to create files with densities and eigenvalues for halos