Stuermer / EchelleSimulator

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

Argparse #10

Closed Stuermer closed 6 years ago

Stuermer commented 6 years ago

Implement command line arguments to replace hard coded parameters:

Use https://github.com/hbristow/argparse for implementation. That looks nice !

Goal would be to have commands like that: echelle++ --spectrograph MaroonX --source etalon --t 10 for a t=10s integration of a etalon spectrum or echelle++ --spectrograph MaroonX --fiber 1 --source mdwarf 3500 4.0 -0.1 --mag 10 --t 200 for a 200s integration of a magintude 10 mdwarf with T=3500 effective temperature log g=4 and metallicity of -0.1

(command line arguments can be added in CLion via Run -> Edit Configurations -> Program arguments)

etc. Required parameters should be: --m : name of spectrograph model --t (integration time) : integration time of the camera --s (source) : name of source --o (output) : path of output file Optional parameters should be: --fibers or maybe list of to select which fiber should be -- optional parameters for sources e.g. see above for mdwarfs, reflectivity, distance etc. for etalon, temperature for blackbody etc.