Skip to main content

Package that tells the user if a planet can be detected by PLATO space mission

Project description

The Planet class requires the following arguments for initialization
  • name (str): Name of the planet.

  • depth (int): Transit depth of the planet in parts per million (ppm).

  • duration (int): Transit duration of the planet in hours.

  • number (int, optional): Number of transits. Defaults to 3 if not provided.

The Planet class provides the following methods:

  • noise_level(eta=7.1): Calculates the noise level of the planet transit signal at the detector level. The eta parameter is an optional statistical significance value (default: 7.1). Returns the calculated noise level as a float.

  • is_detectable(nsr, nsr_plato=34): Determines if the planet is detectable based on the noise level (nsr). The nsr_plato parameter is an optional threshold noise level for detection (default: 80). Returns a string indicating whether the planet is detectable or not.

To use the package, create an instance of the Planet class by providing the required arguments (name, depth, and duration). Then, you can call the noise_level method to calculate the noise level and the is_detectable method to determine the detectability of the planet.

Example usage:

from package_name import Planet

earth = Planet(‘Earth’, 84, 13) nsr = earth.noise_level() detection_result = earth.is_detectable(nsr) print(f”{earth.name}: {detection_result}”)

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

platos_closet-1.1.1.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

platos_closet-1.1.1-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

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