jobovy / apogee

Tools for dealing with APOGEE data
BSD 3-Clause "New" or "Revised" License
43 stars 25 forks source link

Fixes for astroNN #69

Closed hopkins9942 closed 2 years ago

hopkins9942 commented 2 years ago

download.astroNNDistances and download.astroNNAges previously only downloaded DR14 distance and age files, regardless of dr argument, causing incorrect file to be saved as the combined astroNN file for DR16 and DR17. Now fixed so download.astroNN is called for DR16 and DR17, downloading correct combined astroNN file.

Judging by previous code in read._add_astroNN_orbits, the DR16 astroNN FITS file used to have a field Energy_Err, however in most up-to-date version (v1) this field has been changed to Energy_err to match DR17. Now fixed so fields_to_append is the same for both DR16 and DR17. N.B. this bug only affects users with fitsio installed, as with fitsio FITS fields are case-sensitive whereas with astropy.io.fits they are not.

jobovy commented 2 years ago

Thanks for the fixes! Just so I understand correctly:

hopkins9942 commented 2 years ago