<commit_before>{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Table of Contents\n",
    "* [Explore CARMENES Spectrum](#Explore-CARMENES-Spectrum)\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Explore CARMENES Spectrum"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "- Explore how to load CARMENES Spectra\n",
    "- Splitting/verse correcting Telluric lines\n",
    "- Try extract some precisions and compare to Reiners 2017 [1](#cite-reiners_carmenes_2017)\n",
    "\n",
    "Using Barnard's star so can also compare to Artigau 2018 [2](#cite-artigau_optical_2018)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "<!--bibtex\n",
    "@article{bouchy_fundamental_2001,\n",
    "  title = {Fundamental Photon Noise Limit to Radial Velocity Measurements},\n",
    "  volume = {374},\n",
    "  issn = {0004-6361, 1432-0756},\n",
    "  doi = {10.1051/0004-6361:20010730},\n",
    "  number = {2},\n",
    "  journal = {Astronomy and Astrophysics},\n",
    "  author = {<NAME>. and <NAME>. and <NAME>.},\n",
    "  month = aug,\n",
    "  year = {2001},\n",
    "  pages = {733-739},\n",
    "  file = {/home/jneal/.mozilla/firefox/2rcitvnq.default/zotero/storage/UGSFCJ25/aa1316.pdf},\n",
    "  note = {00258}\n",
    "}\n",
    "\n",
    "@article{artigau_optical_2018,\n",
    "  archivePrefix = {arXiv},\n",
    "  eprinttype = {arxiv},\n",
    "  eprint = {1803.07646},\n",
    "  title = {Optical and {{Near}}-{{Infrared Radial Velocity Content}} of {{M Dwarfs}}: {{Testing Models}} with {{Barnard}}'s {{Star}}},\n",
    "  volume = {155},\n",
    "  issn = {1538-3881},\n",
    "  shorttitle = {Optical and {{Near}}-{{Infrared Radial Velocity Content}} of {{M Dwarfs}}},\n",
    "  doi = {10/gddxj4},\n",
    "  number = {5},\n",
    "  journal = {The Astronomical Journal},\n",
    "  author = {Artigau, {\\'E}tienne and <NAME> and Doyon, Ren{\\'e} and <NAME> and <NAME> and Astudillo-Defru, Nicola},\n",
    "  month = apr,\n",
    "  year = {2018},\n",
    "  keywords = {Astrophysics - Instrumentation and Methods for Astrophysics,Astrophysics - Solar and Stellar Astrophysics},\n",
    "  pages = {198},\n",
    "  file = {/home/jneal/.mozilla/firefox/2rcitvnq.default/zotero/storage/7FULJUP6/Artigau et al_2018_Optical and Near-Infrared Radial Velocity Content of M Dwarfs.pdf;/home/jneal/.mozilla/firefox/2rcitvnq.default/zotero/storage/VXVUZDVW/1803.html}\n",
    "}\n",
    "\n",
    "@article{reiners_carmenes_2017,\n",
    "  title = {The {{CARMENES}} Search for Exoplanets around {{M}} Dwarfs: {{High}}-Resolution Optical and near-Infrared Spectroscopy of 324 Survey Stars},\n",
    "  volume = {1711},\n",
    "  shorttitle = {The {{CARMENES}} Search for Exoplanets around {{M}} Dwarfs},\n",
    "  journal = {ArXiv e-prints},\n",
    "  author = {<NAME>. and <NAME> <NAME> <NAME> <NAME>. and <NAME>. and Sch{\\\"o}fer, P. and Tal-Or, L. and <NAME>. and Amado, <NAME>. and Kaminski, A. and <NAME>. and <NAME>. and <NAME>. and Alonso-Floriano, <NAME>. and Ammler-v<NAME>, M. and Antona, R. and Anglada-Escud{\\'e}, G. and Anwand-Heerwart, H. and Arroyo-Torres, B. and Azzaro, M. and <NAME>. and <NAME>. and B{\\'e}jar, <NAME>. and Ben{\\'\\i}<NAME>. and Berdi{\\~n}<NAME>. and <NAME>. and Bl{\\\"u}mcke, M. and Brinkm{\\\"o}ller, M. and {del Burgo}, C. and <NAME>. and C{\\'a}<NAME>{\\'a}zquez, M. C. and <NAME>. and <NAME>. and Colom{\\'e}, J. and Cort{\\'e}s-Contreras, M. and Czesla, S. and D{\\'\\i}ez-Alonso, E. and Dreizler, S. and Feiz, C. and Fern{\\'a}ndez, M. and <NAME>. and Fuhrmeister, B. and Galad{\\'\\i}-Enr{\\'\\i}quez, D. and Garcia-Piquer, A. and Garc{\\'\\i}<NAME>, M. L. and Gesa, L. and G{\\'o}mez, V. and {Galera} and Gonz{\\'a}lez Hern{\\'a}ndez, J. I. and Gonz{\\'a}lez-Peinado, R. and Gr{\\\"o}zinger, U. and <NAME>. and Gu{\\`a}rdia, J. and <NAME>. and {de Guindos}, E. and Guti{\\'e}rrez-Soto, J. and <NAME>. and Hern{\\'a}ndez Arab{\\'\\i}, R. and Hern{\\'a}ndez Casta{\\~n}o, L. and Hern{\\'a}n<NAME> <NAME>. and {de Juan}, E. and <NAME>. and Kl{\\\"u}ter, J. and <NAME>. and K{\\\"u}rster, M. and <NAME>. and <NAME>. and Lamp{\\'o}n, M. and <NAME>. and Lemke, U. and <NAME>. and Launhardt, R. and {L{\\'o}pez del Fresno}, M. and L{\\'o}pez-Gonz{\\'a}lez, J. and L{\\'o}pez-Puertas, M. and L{\\'o}pez Salas, J. F. and L{\\'o}pez-Santiago, J. and Luque, R. and Mag{\\'a}n Madinabeitia, H. and Mall, U. and Mancini, L. and <NAME>. and <NAME>. and Mar{\\'\\i}n Molina, <NAME>. and <NAME>. and {Fern{\\'a}ndez} and Mart{\\'\\i}n, E. L. and Mart{\\'\\i}n-Ruiz, <NAME> <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Pall{\\'e}, E. and <NAME>. and <NAME>. and P{\\'e}rez-Calpena, A. and P{\\'e}<NAME>. and Ram{\\'o}<NAME>. and <NAME>. and <NAME>. and Rodr{\\'\\i}guez, E. and Rodr{\\'\\i}guez-L{\\'o}pez, C. and Rodr{\\'\\i}guez Trinidad, A. and <NAME>. and <NAME>. and <NAME>. and S{\\'a}nchez-Blanco, E. and S{\\'a}nchez Carrasco, M. A. and S{\\'a}nchez-L{\\'o}pez, A. and <NAME>. and <NAME>. and <NAME>. and Sch{\\\"a}<NAME>. and <NAME>. and <NAME>. and <NAME>. and St{\\\"u}<NAME>. and Su{\\'a}<NAME>. and <NAME>. and <NAME> <NAME>. and <NAME>. and <NAME>.},\n",
    "  month = nov,\n",
    "  year = {2017},\n",
    "  keywords = {Astrophysics - Earth and Planetary Astrophysics,Astrophysics - Solar and Stellar Astrophysics},\n",
    "  pages = {arXiv:1711.06576}\n",
    "}\n",
    "\n",
    "-->"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# References\n",
    "\n",
    "<a name=\"cite-reiners_carmenes_2017\"/><sup>[^](#ref-1) </sup><NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Sch&ouml;<NAME>. and Tal-Or, L. and <NAME>. and Amado, <NAME>. and <NAME>. and <NAME>. and <NAME>. and Aceituno, J. and Alonso-Floriano, <NAME>. and Ammler-von Eiff, M. and Antona, R. and Anglada-Escud&eacute;, G. and Anwand-Heerwart, H. and Arroyo-Torres, B. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Ben\\'\\itez, D. and Berdi&ntilde;<NAME>. and Bergond, G. and Bl&uuml;mcke, M. and Brinkm&ouml;ller, M. and <NAME>, C. and <NAME>. and C&aacute;<NAME>. and <NAME>. and <NAME>. and <NAME>. and Colom&eacute;, J. and Cort&eacute;s-Contreras, M. and Czesla, S. and D\\'\\iez-Alonso, E. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Galad\\'\\i-Enr\\'\\iquez, D. and <NAME>. and Garc\\'\\ia Vargas, <NAME>. and <NAME>. and <NAME>. and Galera and Gonz&aacute;<NAME>;<NAME>. and Gonz&aacute;lez-Peinado, R. and Gr&ouml;zinger, U. and Grohnert, S. and Gu&agrave;<NAME>. and <NAME>. and <NAME>. and <NAME>, E. and Guti&eacute;rrez-Soto, J. and <NAME>. and <NAME>. and <NAME>. and Helmling, J. and <NAME>. and <NAME>. and Hern&aacute;ndez Arab\\'\\i, R. and Hern&aacute;<NAME>&ntilde;o, L. and Hern&aacute;<NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and K&uuml;<NAME>. and <NAME>. and Lamert, A. and Lamp&oacute;n, M. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and L&oacute;<NAME>, M. and L&oacute;pez-Gonz&aacute;lez, J. and L&oacute;pez-Puertas, M. and L&oacute;<NAME>, <NAME>. and L&oacute;pez-Santiago, J. and <NAME>. and Mag&aacute;<NAME>. and <NAME> <NAME> <NAME>. and Mar\\'\\in <NAME>. and <NAME>. and Fern&aacute;ndez and Mart\\'\\in, <NAME>. and Mart\\'\\in-Ruiz, S. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Moreno-Raya, <NAME>. and Moya, A. and Mundt, R. and Nagel, E. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Oreiro, R. and Pall&eacute;, E. and Panduro, J. and Pascual, J. and <NAME>. and <NAME>. and <NAME>. and P&eacute;rez-Calpena, A. and P&eacute;<NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Ram&oacute;<NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Rodr\\'\\iguez, E. and Rodr\\'\\iguez-L&oacute;pez, C. and Rodr\\'\\iguez Trinidad, A. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and S&aacute;nchez-L&oacute;<NAME>. and <NAME>. and <NAME> <NAME> <NAME> <NAME> <NAME>. and <NAME>.. 2017. _The CARMENES Search for Exoplanets around M Dwarfs: High-Resolution Optical and near-Infrared Spectroscopy of 324 Survey Stars_.\n",
    "\n",
    "<a name=\"cite-artigau_optical_2018\"/><sup>[^](#ref-2) </sup>Artigau, &Eacute;tienne and <NAME> and <NAME>&eacute; and <NAME> and <NAME> and <NAME>. 2018. _Optical and Near-Infrared Radial Velocity Content of M Dwarfs: Testing Models with Barnard's Star_.\n",
    "\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python [conda env:eniric]",
   "language": "python",
   "name": "conda-env-eniric-py"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}<commit_msg> add loader code to carmenes exploration<commit_after>{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Table of Contents\n",
    "* [Explore CARMENES Spectrum](#Explore-CARMENES-Spectrum)\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Explore CARMENES Spectrum"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "- Explore how to load CARMENES Spectra\n",
    "- Splitting/verse correcting Telluric lines\n",
    "- Try extract some precisions and compare to Reiners 2017 [1](#cite-reiners_carmenes_2017)\n",
    "\n",
    "Using Barnard's star so can also compare to Artigau 2018 [2](#cite-artigau_optical_2018)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Some codes to load in the Molecfit output from solene\n",
    "\n",
    "import numpy as np\n",
    "from astropy.io import fits\n",
    "import os\n",
    "import matplotlib.pyplot as plt\n",
    "\n",
    "\n",
    "def tac_molecfit(filename):\n",
    "    # Read result file after the fit over full wavelength range and\n",
    "    # telluric correction (= division by the atmospheric transmission)\n",
    "    # wavelengths (wl) in microns and vacuum\n",
    "    hdu_molecfit = fits.open(filename)\n",
    "    data_molecfit = hdu_molecfit[1].data\n",
    "    wl_input = data_molecfit.field('lambda')\n",
    "    wl_model = data_molecfit.field('mlambda')\n",
    "    input_flux = data_molecfit.field('flux')\n",
    "    corr_flux = data_molecfit.field('cflux')\n",
    "    mtrans = data_molecfit.field('mtrans')\n",
    "    weight = data_molecfit.field('weight')\n",
    "    mweight = data_molecfit.field('mweight')\n",
    "    qual = data_molecfit.field('qual')\n",
    "    return wl_input, wl_model, input_flux, corr_flux, mtrans, qual, weight, mweight\n",
    "\n",
    "\n",
    "def molecfit_fit(filename):\n",
    "    # result file after the fit\n",
    "    # in the fitting regions\n",
    "    # Wl in microns and vacuum\n",
    "    hdu_molecfit = fits.open(filename)\n",
    "    data_molecfit = hdu_molecfit[1].data\n",
    "    wl_input = data_molecfit.field('lambda')\n",
    "    input_flux = data_molecfit.field('flux')\n",
    "    weight = data_molecfit.field('weight')\n",
    "    mrange = data_molecfit.field('mrange')\n",
    "    wl_model = data_molecfit.field('mlambda')\n",
    "    mscal = data_molecfit.field('mscal')\n",
    "    mflux = data_molecfit.field('mflux')\n",
    "    mweight = data_molecfit.field('mweight')\n",
    "    dev = data_molecfit.field('dev')\n",
    "    mtrans = data_molecfit.field('mtrans')\n",
    "    return wl_input, input_flux, weight, mrange, wl_model, mscal, mflux, mweight, dev, mtrans\n",
    "\n",
    "\n",
    "def TAC_molecfit(filename):\n",
    "    # Read file TAC\n",
    "    # the wavelength are in the original format\n",
    "    # ------------------------------------------\n",
    "    hdu = fits.open(filename)\n",
    "    header = hdu[1].header\n",
    "    name = os.path.basename(filename)\n",
    "    wl = hdu[1].data.field('WAVE')\n",
    "    input_flux = hdu[1].data.field('SPEC')\n",
    "    input_cont = hdu[1].data.field('CONT')\n",
    "    input_error = hdu[1].data.field('SIG')\n",
    "    corr_flux = hdu[1].data.field('tacflux')\n",
    "    mtrans = hdu[1].data.field('mtrans')\n",
    "    qual = hdu[1].data.field('tacqual')\n",
    "    return name, header, wl*0.001, input_flux, input_cont, input_error, corr_flux, mtrans, qual\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "\n",
    "file0 = 'car-20160325T05h28m38s'\n",
    "filename = 'output/' + file0 + '-sci-gtoc-nir_A_tell_tac.fits'\n",
    "filename2 = 'output/' + file0 + '-sci-gtoc-nir_A_tell_fit.fits'\n",
    "filename3 = 'output/' + 'car-20160325T05h28m38s-sci-gtoc-nir_A_input_TAC.fits'\n",
    "wl_input, wl_model, input_flux, corr_flux, mtrans, qual, weight, mweight = tac_molecfit(filename)\n",
    "plt.plot(wl_input, corr_flux, 'g.-', label='telluric corrected')\n",
    "plt.plot(wl_input, input_flux, 'k.-', label='input data')\n",
    "wl_input, input_flux, weight, mrange, wl_model, mscal, mflux, mweight, dev, mtrans = molecfit_fit(filename2)\n",
    "plt.plot(wl_input, mtrans*mscal, 'r-', label='atmospheric transmission')\n",
    "plt.xlabel('Wavelength (microns and vacuum)')\n",
    "plt.ylabel('Flux')\n",
    "plt.legend()\n",
    "plt.show()\n",
    "\n",
    "name, header, wl, input_flux, input_cont, input_error, corr_flux, mtrans, qual = TAC_molecfit(filename3)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "<!--bibtex\n",
    "@article{bouchy_fundamental_2001,\n",
    "  title = {Fundamental Photon Noise Limit to Radial Velocity Measurements},\n",
    "  volume = {374},\n",
    "  issn = {0004-6361, 1432-0756},\n",
    "  doi = {10.1051/0004-6361:20010730},\n",
    "  number = {2},\n",
    "  journal = {Astronomy and Astrophysics},\n",
    "  author = {<NAME>. and <NAME>. and <NAME>.},\n",
    "  month = aug,\n",
    "  year = {2001},\n",
    "  pages = {733-739},\n",
    "  file = {/home/jneal/.mozilla/firefox/2rcitvnq.default/zotero/storage/UGSFCJ25/aa1316.pdf},\n",
    "  note = {00258}\n",
    "}\n",
    "\n",
    "@article{artigau_optical_2018,\n",
    "  archivePrefix = {arXiv},\n",
    "  eprinttype = {arxiv},\n",
    "  eprint = {1803.07646},\n",
    "  title = {Optical and {{Near}}-{{Infrared Radial Velocity Content}} of {{M Dwarfs}}: {{Testing Models}} with {{Barnard}}'s {{Star}}},\n",
    "  volume = {155},\n",
    "  issn = {1538-3881},\n",
    "  shorttitle = {Optical and {{Near}}-{{Infrared Radial Velocity Content}} of {{M Dwarfs}}},\n",
    "  doi = {10/gddxj4},\n",
    "  number = {5},\n",
    "  journal = {The Astronomical Journal},\n",
    "  author = {Artigau, {\\'E}<NAME>{\\'e} and <NAME> <NAME>},\n",
    "  month = apr,\n",
    "  year = {2018},\n",
    "  keywords = {Astrophysics - Instrumentation and Methods for Astrophysics,Astrophysics - Solar and Stellar Astrophysics},\n",
    "  pages = {198},\n",
    "  file = {/home/jneal/.mozilla/firefox/2rcitvnq.default/zotero/storage/7FULJUP6/Artigau et al_2018_Optical and Near-Infrared Radial Velocity Content of M Dwarfs.pdf;/home/jneal/.mozilla/firefox/2rcitvnq.default/zotero/storage/VXVUZDVW/1803.html}\n",
    "}\n",
    "\n",
    "@article{reiners_carmenes_2017,\n",
    "  title = {The {{CARMENES}} Search for Exoplanets around {{M}} Dwarfs: {{High}}-Resolution Optical and near-Infrared Spectroscopy of 324 Survey Stars},\n",
    "  volume = {1711},\n",
    "  shorttitle = {The {{CARMENES}} Search for Exoplanets around {{M}} Dwarfs},\n",
    "  journal = {ArXiv e-prints},\n",
    "  author = {<NAME>. and <NAME>. and <NAME>. and Sch{\\\"o}fer, P. and Tal-Or, L. and Quirrenbach, A. and <NAME>. and Kaminski, A. and Seifert, W. and <NAME>. and <NAME>. and <NAME>. and <NAME>, M. and <NAME>. and Anglada-Escud{\\'e}, G. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and B{\\'e}jar, <NAME>. and Ben{\\'\\i}tez, D. and Berdi{\\~n}as, <NAME>. and Bergond, G. and Bl{\\\"u}mcke, M. and Brinkm{\\\"o}ller, M. and {del Burgo}, C. and Cano, J. and C{\\'a}rdenas V{\\'a}zquez, M. C. and Casal, E. and Cifuentes, C. and Claret, A. and Colom{\\'e}, J. and Cort{\\'e}s-Contreras, M. and Czesla, S. and D{\\'\\i}ez-Alonso, E. and Dreizler, S. and Feiz, C. and Fern{\\'a}ndez, M. and Ferro, <NAME>. and Fuhrmeister, B. and Galad{\\'\\i}-Enr{\\'\\i}quez, D. and Garcia-Piquer, A. and Garc{\\'\\i}<NAME>, <NAME>. and <NAME>. and G{\\'o}mez, V. and {Galera} and Gonz{\\'a}lez Hern{\\'a}ndez, <NAME>. and Gonz{\\'a}lez-Peinado, R. and Gr{\\\"o}zinger, U. and Grohnert, S. and Gu{\\`a}rdia, J. and <NAME>. and <NAME>. and {de Guindos}, E. and Guti{\\'e}rrez-Soto, J. and <NAME>. and <NAME>. and <NAME> <NAME>. and Hern{\\'a}<NAME>{\\'\\i}, R. and Hern{\\'a}<NAME>{\\~n}o, L. and Hern{\\'a}<NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and {de Juan}, E. and <NAME>. and <NAME>. and Kl{\\\"u}ter, J. and Klutsch, A. and K{\\\"u}rster, M. and <NAME>. and Lamert, A. and Lamp{\\'o}n, M. and Lara, <NAME>. and Laun, W. and Lemke, U. and Lenzen, R. and Launhardt, R. and {L{\\'o}pez del Fresno}, M. and L{\\'o}pez-Gonz{\\'a}lez, J. and L{\\'o}pez-Puertas, M. and L{\\'o}pez Salas, J. F. and L{\\'o}pez-Santiago, J. and Luque, R. and Mag{\\'a}n Madinabeitia, H. and Mall, U. and <NAME>. and <NAME>. and <NAME>. and Mar{\\'\\i}n <NAME>. and <NAME>. and {Fern{\\'a}ndez} and Mart{\\'\\i}n, E. L. and Mart{\\'\\i}n-Ruiz, S. and <NAME>. and <NAME>. and Mirabet, E. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Pall{\\'e}, E. and <NAME> <NAME> <NAME>. and P{\\'e}rez-Calpena, A. and P{\\'e}<NAME>. and <NAME>. and <NAME>. and Pluto, M. and <NAME>. and Ram{\\'o}n, A. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Rodr{\\'\\i}guez, E. and Rodr{\\'\\i}guez-L{\\'o}pez, C. and Rodr{\\'\\i}guez Trinidad, A. and Rohloff, R.-R. and <NAME>. and Sadegi, S. and S{\\'a}nchez-Blanco, E. and S{\\'a}nchez Carrasco, M. A. and S{\\'a}nchez-L{\\'o}pez, A. and Sanz-Forcada, J. and <NAME>. and <NAME>. and Sch{\\\"a}fer, S. and Sch<NAME>{\\\"u}<NAME>. and Su{\\'a}<NAME>. and <NAME>. and <NAME>.},\n",
    "  month = nov,\n",
    "  year = {2017},\n",
    "  keywords = {Astrophysics - Earth and Planetary Astrophysics,Astrophysics - Solar and Stellar Astrophysics},\n",
    "  pages = {arXiv:1711.06576}\n",
    "}\n",
    "\n",
    "-->"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# References\n",
    "\n",
    "<a name=\"cite-reiners_carmenes_2017\"/><sup>[^](#ref-1) </sup><NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Sch&ouml;<NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Ammler-von Eiff, M. and Antona, R. and Anglada-Escud&eacute;, G. and Anwand-Heerwart, H. and Arroyo-Torres, B. and Azzaro, M. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Ben\\'\\itez, D. and Berdi&ntilde;as, <NAME>. and Bergond, G. and Bl&uuml;mcke, M. and Brinkm&ouml;ller, M. and <NAME>, C. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Colom&eacute;, J. and Cort&eacute;s-Contreras, M. and <NAME>. and D\\'\\iez-Alonso, E. and Dreizler, S. and <NAME>. and Fern&aacute;<NAME>. and <NAME>. and Fuhrmeister, B. and Galad\\'\\i-Enr\\'\\iquez, D. and Garcia-Piquer, A. and Garc\\'\\ia Vargas, M. L. and <NAME>. and G&oacute;<NAME>. and Galera and Gonz&aacute;<NAME>;ndez, <NAME>. and Gonz&aacute;lez-Peinado, R. and Gr&ouml;zinger, U. and Grohnert, S. and Gu&agrave;rdia, J. and Guenther, <NAME>. and <NAME>. and de Guindos, E. and Guti&eacute;rrez-Soto, J. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Hern&aacute;n<NAME>\\'\\i, R. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Kl&uuml;<NAME>. and Klutsch, A. and K&uuml;<NAME>. and <NAME>. and <NAME>. and Lamp&oacute;<NAME>. and <NAME>. and <NAME>. and <NAME>. and L&oacute;<NAME>. and L&oacute;pez-Gonz&aacute;<NAME>. and L&oacute;<NAME>. and L&oacute;<NAME>. and L&oacute;pez-Santiago, J. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Mar\\'\\in Molina, J. A. and Maroto, D. and Fern&aacute;ndez and Mart\\'\\in, E. L. and Mart\\'\\in-Ruiz, S. and <NAME>. and <NAME>. and Mirabet, E. and Montes, D. and Moreno-Raya, M. E. and Moya, A. and Mundt, R. and Nagel, E. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Oreiro, R. and Pall&eacute;, E. and Panduro, J. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Ram&oacute;<NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>. and Rodr\\'\\iguez, E. and Rodr\\'\\iguez-L&oacute;pez, C. and Rodr\\'\\iguez Trinidad, A. and <NAME>. and <NAME> <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME> <NAME>. and <NAME>. and <NAME>. and <NAME>. and <NAME>.. 2017. _The CARMENES Search for Exoplanets around M Dwarfs: High-Resolution Optical and near-Infrared Spectroscopy of 324 Survey Stars_.\n",
    "\n",
    "<a name=\"cite-artigau_optical_2018\"/><sup>[^](#ref-2) </sup>Artigau, &Eacute;<NAME> and <NAME>. 2018. _Optical and Near-Infrared Radial Velocity Content of M Dwarfs: Testing Models with Barnard's Star_.\n",
    "\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python [conda env:eniric]",
   "language": "python",
   "name": "conda-env-eniric-py"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
{'fraction_non_alphanumeric': 0.2276579986833443, 'fraction_numerical': 0.017239960500329166, 'mean_word_length': 2.9896585686145767, 'pattern_counts': {'":': 170, '<': 396, '<?xml version=': 0, '>': 396, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7460537', 'n_tokens_mistral': 10270, 'n_tokens_neox': 9590, 'n_words': 2444}