Skip to main content

Tool for processing and visualizing exoplanet data.

Project description

ExoAnalyzer

Provides tools to analyze data and graph from the NASA exoplanet archive.

Provides functions to graph various quantitative data about exoplanets. See example code below for examples on how to use. List of data options coming soon.

Installation

Stable release:

pip install exoanalyzer

Beta test versions:

pip install --index-url https://test.pypi.org/simple/ --no-deps exoanalyzer-fellis

Example Code

import exoanalyzer

data = exoanalyzer.data.query(query_columns = [
    "pl_name",
    "hostname",
    "pl_orbper",
    "pl_orbsmax",
    "pl_orbeccen",
    "pl_bmasse",
    "st_met",
    "st_teff",
    "st_metratio",
    "st_mass"]) 
exoanalyzer.plot_dual(data, 'pl_orbsmax', 'pl_bmasse', use_log10 = True)
exoanalyzer.plot_system_average(data, "st_met", "pl_bmasse", use_log10_main=False, use_log10_avg=True)
exoanalyzer.plot_ratio_to_greatest(data, "pl_bmasse", use_log10=True)

exoanalyzer.plot_pl_categories(data, 'pl_orbsmax', {
    "<1 AU": lambda a: a < 1,
    ">1 AU": lambda b: b > 1
})

pairs = exoanalyzer.util.get_system_pairs(data)
exoanalyzer.plot_pair_ratio(pairs, 'pl_orbeccen', use_log10 = False, max_deviations = 3)

exoanalyzer.plot_pair_comparison(pairs, 'pl_bmasse', {
    "Massive Inner": lambda a, b: a/b > 1,
    "Massive Outer": lambda a, b: a/b < 1
})

Versions

0.0.18

Added:

exoanalyzer.plot_system_average(data, main_label, avg_label, **kwargs)
    data: array
        raw data from .data.query()
    main_label: str
        data label to graph on the x-axis
    avg_label: str
        data label to graph on the y-axis (average of all planets in system)
    
    **kwargs
    use_log10_main: bool
        use log10 form for main label (x axis) (good for large values)
    use_log10_avg: bool
        use log10 form for avg label (y axis) (good for large values)
    file_path: str
        path to save the file to. defaults to './graphs/'
    file_name: str
        name of file to save. defaults to "Graph_of_{x_label}_and_{y_label}.png"

exoanalyzer.plot_ratio_to_greatest(data, label, **kwargs)
    data: array
        raw data from .data.query()
    label: str
        data label to graph. x-axis is percentage, y is greatest.
    
    **kwargs
    use_log10: bool
        use log10 form on y axis (good for large values)
    file_path: str
        path to save the file to. defaults to './graphs/'
    file_name: str
        name of file to save. defaults to "Graph_of_{x_label}_and_{y_label}.png"

0.0.17

Added:

exoanalyzer.util.get_label_list()
> returns:
    list: A list of all possible data categories for obtainable exoplanet data.

0.0.14: New feature

Added:

exoanalyzer.plot_dual(data, x_label, y_label, **kwargs)
    data: array
        raw data from .data.query()
    x_label: str
        data label to graph on the x-axis
    y_label: str
        data label to graph on the y-axis
    
    **kwargs
    use_log10: bool
        use log10 form (good for large values)
    file_path: str
        path to save the file to. defaults to './graphs/'
    file_name: str
        name of file to save. defaults to "Graph_of_{x_label}_and_{y_label}.png"

Changed:

exoanalyzer.plot_pair_comparison -> exoanalyzer.plot_pair_ratio

0.0.13: Initial stable release.

exoanalyzer.plot_pair_comparison(pair_data, plotLabel, **kwargs)
    pair_data: array
        data from .util.get_system_pairs(data)
    plotLabel: str
        data label to graph
    
    **kwargs
    use_log10: bool
        use log10 form (good for large values)
    max_deviations: int
        outlier removal. values cannot deviate from the mean by more than std*this number.
    file_path: str
        path to save the file to. defaults to './graphs/'
    file_name: str
        name of file to save. defaults to "Graph_of_{plotLabel}.png"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

exoanalyzer-0.11.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

exoanalyzer-0.11-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file exoanalyzer-0.11.tar.gz.

File metadata

  • Download URL: exoanalyzer-0.11.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for exoanalyzer-0.11.tar.gz
Algorithm Hash digest
SHA256 7d2bf7a1a9f500d5c7e6632f072acab9a6065f9c2b930172a290f367079aaead
MD5 e177f98df0b93b70b7428a66d4ace6ec
BLAKE2b-256 5310c4103feac8134cb9b89e31d4f54f1bea98c64bd76f8656be178c995ae3d1

See more details on using hashes here.

File details

Details for the file exoanalyzer-0.11-py3-none-any.whl.

File metadata

  • Download URL: exoanalyzer-0.11-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for exoanalyzer-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 1b3806f5cdc07d2b88b8e4949d30169f1d3e27a48b0f56447bb8100da2b68e8e
MD5 1204a39f709dd122cfabeda74ed0d4bd
BLAKE2b-256 ae00deee32951c60eeea14d6a5f3119a3e10a93b5bbd386519cc69ac27a71334

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page