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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for platos_closet-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba2dcca3c5e859b45679272f33c56ebbca24f736f9f0f6a2dde3e706ecc803a7 |
|
MD5 | 40b867f473c5fb6da9bbd990b04bb449 |
|
BLAKE2b-256 | 42d095de0ef5f2c39f829f238fba68303707618c3cce5ae341b541124d1bfd99 |