Code to continuum normalize M dwarfs using alpha hulls and local polynomial regression.
Use the following commands to install the code locally.
git clone https://github.com/imedan/mdwarf_contin
cd mdwarf_contin
conda create -n "mdwarf_contin_code" python=3.10 ipython
conda activate mdwarf_contin_code
pip install poetry
poetry install --without extras
If you want to install the extra dependencies needed to use features that manipulate model spectra into SDSS-like spectra, then the extra dependencies must also be installed. This can be done by running:
poetry install
The notebook in tests/example_usage.ipynb provides an overview on how to use the code for doing normalization.