<commit_before>.. doctest-skip-all

.. _astroquery.exoplanets:

*****************************************************
Exoplanet Parameter Queries (`astroquery.exoplanets`)
*****************************************************

Accessing the tables
====================

You can access the complete tables from each table source, with units assigned
to columns wherever possible.

.. code-block:: python

        >>> from astroquery.exoplanet_archive import ExoplanetArchive
        >>> exoplanet_archive_table = ExoplanetArchive.get_confirmed_planets_table()

        >>> exoplanet_archive_table[:2]
        <Table masked=True length=2>
        pl_hostname pl_letter pl_discmethod ... pl_nnotes rowupdate  NAME_LOWERCASE
                                            ...
           str27       str1       str29     ...   int64     str10        str29
        ----------- --------- ------------- ... --------- ---------- --------------
         Kepler-151         b       Transit ...         1 2014-05-14   kepler-151 b
         Kepler-152         b       Transit ...         1 2014-05-14   kepler-152 b

        >>> from astroquery.exoplanet_orbit_database import ExoplanetOrbitDatabase
        >>> exoplanet_orbit_database_table = ExoplanetOrbitDatabase.get_table()

        >>> exoplanet_orbit_database_table[:2]
        <Table masked=True length=2>
            A        AUPPER      ALOWER        UA     ... KEPID  KDE  NAME_LOWERCASE
            AU         AU          AU          AU     ...
         float64    float64     float64     float64   ... int64 int64     str20
        --------- ----------- ----------- ----------- ... ----- ----- --------------
        0.0780099  0.00130017  0.00130017  0.00130017 ...    --     1   kepler-107 d
        0.0344721 0.000675924 0.000675924 0.000675924 ...    --     1  kepler-1049 b

You can query for the row from each table corresponding to one exoplanet:

.. code-block:: python

        >>> from astroquery.exoplanet_orbit_database import ExoplanetOrbitDatabase
        >>> hatp11b = ExoplanetOrbitDatabase.query_planet('HAT-P-11 b')


Access a single planet's parameters
===================================

The exoplanets module allows you to download (and optionally cache) the
exoplanet parameter tables from `exoplanets.org <http://www.exoplanets.org>`_ or
from NExScI's
`Exoplanet Archive <http://exoplanetarchive.ipac.caltech.edu/index.html>`_.

You can access the Exoplanet Archive parameters like so<commit_msg>Updating exoplanet orbit database (from exoplanets.org)<commit_after>.. doctest-skip-all

.. _astroquery.exoplanets:

*****************************************************
Exoplanet Parameter Queries (`astroquery.exoplanets`)
*****************************************************

Accessing the tables
====================

You can access the complete tables from each table source, with units assigned
to columns wherever possible.

.. code-block:: python

        >>> from astroquery.exoplanet_archive import ExoplanetArchive
        >>> exoplanet_archive_table = ExoplanetArchive.get_confirmed_planets_table()

        >>> exoplanet_archive_table[:2]
        <Table masked=True length=2>
        pl_hostname pl_letter pl_discmethod ... pl_nnotes rowupdate  NAME_LOWERCASE
                                            ...
           str27       str1       str29     ...   int64     str10        str29
        ----------- --------- ------------- ... --------- ---------- --------------
         Kepler-151         b       Transit ...         1 2014-05-14   kepler-151 b
         Kepler-152         b       Transit ...         1 2014-05-14   kepler-152 b

        >>> from astroquery.exoplanet_orbit_database import ExoplanetOrbitDatabase
        >>> exoplanet_orbit_database_table = ExoplanetOrbitDatabase.get_table()

        >>> exoplanet_orbit_database_table[:2]
        <Table masked=True length=2>
            A        AUPPER      ALOWER        UA     ... KEPID  KDE  NAME_LOWERCASE
            AU         AU          AU          AU     ...
         float64    float64     float64     float64   ... int64 int64     str20
        --------- ----------- ----------- ----------- ... ----- ----- --------------
        0.0780099  0.00130017  0.00130017  0.00130017 ...    --     1   kepler-107 d
        0.0344721 0.000675924 0.000675924 0.000675924 ...    --     1  kepler-1049 b

You can query for the row from each table corresponding to one exoplanet:

.. code-block:: python

        >>> from astroquery.exoplanet_orbit_database import ExoplanetOrbitDatabase
        >>> hatp11b = ExoplanetOrbitDatabase.query_planet('HAT-P-11 b')


Access a single planet's parameters
===================================

The exoplanets module allows you to download (and optionally cache) the
exoplanet parameter tables from the `Exoplanet Orbit Database (exoplanets.org)
<http://www.exoplanets.org>`_ or from NExScI's
`Exoplanet Archive <http://exoplanetarchive.ipac.caltech.edu/index.html>`_.

You can access the Exoplanet Archive parameters like so
{'fraction_non_alphanumeric': 0.18626472349770412, 'fraction_numerical': 0.05789578758235177, 'mean_word_length': 1.9349736379613356, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6862686', 'n_tokens_mistral': 1613, 'n_tokens_neox': 1318, 'n_words': 340}