Stuermer / EchelleSimulator

GNU General Public License v3.0
11 stars 2 forks source link

PHOENIX spectra flag #14

Closed cmbergmann closed 6 years ago

cmbergmann commented 6 years ago

There seems to be a problem with the PHOENIX spectra flag.

  1. In the documentation ./echellesimulator -h , the order of the parameters does not match what is passed to the ftp download command. I think the correct syntax should be --phoenix/-p T_eff, log_g, Z, alpha, Mag
  2. The download results in a crash. While I can manually download wget ftp://phoenix.astro.physik.uni-goettingen.de/HiResFITS/PHOENIX-ACES-AGSS-COND-2011/Z-0.0/lte06200-5.00-1.0.PHOENIX-ACES-AGSS-COND-2011-HiRes.fits, if I run eg ./echellesimulator -s VeloceRosso -p 6200,5.,-1.,0.,1 -t 1 -k 1 -f 1 -o test.fitthis results in screen output like this:
    
    Spectrograph file found
    Read in 42 Orders

Iterating over elements in the file Simulating phoenix spectra with magnitude = 1 Downloading spectra from: ftp://phoenix.astro.physik.uni-goettingen.de/HiResFITS/PHOENIX-ACES-AGSS-COND-2011/Z-1.0/lte06200-5.00-1.0.PHOENIX-ACES-AGSS-COND-2011-HiRes.fits Segmentation fault (core dumped)


ie the parameters are used correctly in the filename, but the download does not succeed. I have never used the PHOENIX library before, so I don't know if the problem lies in the EchelleSimulator code or within the PHOENIX library.
cmbergmann commented 6 years ago

Ah, point 2 is solved, I did not have the WAVE_PHOENIX-ACES-AGSS-COND-2011.fits file in the /data/phoenix_spectra folder. It did not automatically do that...