MickaelRigault / pysedm

Data Reduction Pipeline for the SEDmachine
Apache License 2.0
9 stars 6 forks source link

Set REDUCER keyword in extract_star.py #6

Closed scizen9 closed 6 years ago

scizen9 commented 6 years ago

When re-extraction is performed, this keyword should either be set from the env var SEDM_USER or prompted for.

MickaelRigault commented 6 years ago

Done: There is an keywork entry in the spectrum header called "REDUCER" which is set to be the global variable $SEDM_USER or "auto" if no $SEDM_USER is found.

You can manually set the reducer (which will then ignore $SEDM_USER) when running extract_star: extract_star.py DATE --auto FILEID --reducer YOUR_NAME

Note: this does not change $SEDM_USER. It just bypass it.