Stuermer / EchelleSimulator

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

"-c / --constant" flag not working properly #13

Closed cmbergmann closed 6 years ago

cmbergmann commented 6 years ago

When using the "-c" flag when calling echellesimulator (like below), it crashes:

I called the program via: ./echellesimulator -s VeloceRosso -t 1000 -k 1 -f 1 -c 2 0 1 -o test_01.fit and got the following messages:

Spectrograph file found
Read in 42 Orders

Iterating over elements in the file
Simulating constant source with spectral density = 2 [micro watt] / ([micro meter] * [meter]^2)
terminate called after throwing an instance of 'std::invalid_argument'
  what():  stod
Aborted (core dumped)
cmbergmann commented 6 years ago

I believe the syntax should be "-c 2,0,1", in which case it works. However, I do not get the same results for "-c 1,0,1" as compared to when the -c flag is omitted, although that is supposed to be the default case. The photon count rates are a factor of 10^5 higher than with "-c 1,0,1"