Skip to content

ExoPSI/ExoPSI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExoPSI

ExoPSI is an open source Python package which offers similarity indexing of exoplanets in order to assess their habitability. It provides the capability to calculate similarity indices of different planetary candidates with respect to any reference values and any numerical parameter, yielding a more accurate evaluation of the survivability of different species.

ExoPSI offers the ability to use any planet as a reference point and visualization functions that allow for easy comparison of the similarity between the interior and surface parameters of different planets. ExoPSI aims to help planetary sceince researches by offering a comprehensive solution for evaluating planetary similarities.


Installation

To Install ExoPSI simply use pip and type in the following command pip install ExoPSI.


Getting Started

To utilize the functions available in ExoPSI, import the library and instantiate an object of the exopsi class.

image


Importing Datasets

ExoPSI can only handle datasets of the type pandas.core.frame.DataFrame. As a result, any dataset to be used has to be imported as a pandas data frame.

For example, the PHL’s Exoplanet Catalog (PHL-EC) of the Planetary Habitability Laboratory can be imported as:

image


Calculating weights for Similarity Indices

All similarity indices rely on parameters,to calculate the similarity of planets. The weights of individual parameters can be computed by providing the reference value, the lower and upper limits for the parameter (where, lower limit ≤ referance value ≤ upper limit). Optionally, a threshold value of the similarity index (default = 0.8) can also be provided.

The calc_weight function calculates the weight parameters and takes in ref val, upper lim, lower lim and threshold (optional) for the reference values, upper limits, lower limits and threshold value, respectively.

The below example uses planetary radius, density, escape velocity (in Earth Units) and temperature(K) as the parameters.

image

and the following output is received:

image


Calculating Planet Similarity Index (PSI)

The Planet Similarity Index (PSI) is the modified equivalent of the traditional Earth Similarity Index (ESI) and can be calculated for single or multiple planetary properties. As the name suggests it is used to find the simlarity between planets. ExoPSI offers the capability to use any planet as the reference planet.

To utilise this functionality kindly use the calc_psi function. The calc_psi function takes in the following inputs:

  1. params - The dataset containing the values of the different parameters for which PSI is to be calculated.
  2. upper lim - The list of upper limits for the given parameters.
  3. lower lim - The list of lower limits for the given parameters.
  4. ref val - The list of reference values for the given parameters.
  5. threshold (optional) - The threshold value to be considered for very high similarity (default = 0.8).
  6. int param (optional) - List of column names that contribute to interior PSI.
  7. surf param (optional) - List of column names that contribute to surface PSI.
  8. p index (optional) - A column (passed as a pandas data frame) that is to be used as the index for the table.

An example using the the PHL’s Exoplanet Catalog is given:

image

and the output is:

image


Unit Conversion

The similarity index calculations are simplified by converting the property values into a single unit scale. Unit conversion provides the ability to find the value of planetary properties relative to a single planet. This has the added advantage of providing a method for comparing planetary features. ExoPSI offers unit conversion through the function unit conv requiring the data to be converted, the transformation reference value (the values of the given parameters in the same units as the data for the planet taken as the reference), and the name that should be assigned to the unit. These are taken as function arguments data, ref index and unit name. The p index argument serves the same purpose as in the calc psi function.It returns a pandas data frame containing the data values in the desired unit scale.

An example using the the PHL’s Exoplanet Catalog is given:

image

and the output is:

image

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages