Galaxy:
Filter:
astronomy (extension) | Libraries > Astronomy

Galaxy
ExtensionExtension

Our galaxy

Description

A representation of our galaxy, a.k.a. The Milky Way. It is intended as a placeholder for astronomic information.

A small query system is implemented for handling astronomic elements information.

At the moment, only information about exoplanets is supported.

Get exoplanets information in CSV from here: http://exoplanet.eu/catalog/

Class Methods

.new

Create a galaxy and load its information

Arguments:

filePath

Path to a csv file containing the desired data

type

A \Symbol with the kind of data to load. At the moment, only \exoplanet is supported

Instance Methods

.getExoplanetsBetween

Get a List of all exoplanet names located in the desired distance range,

Arguments:

min
max

.getExoplanetsAround

Get a List with the n exoplanets closer to dist

Arguments:

dist
n

.exoplanets

Get a Dictionary in the form (exoplanetName -> exoplanetInstance)

.getExoplanetNames

Get a List with all exoplanet names

.getExoplanet

Get a exoplanet by name

Arguments:

name

.getExoplanetsWithComposition

Get a List with all exoplanet names in which different molecules have been found

.distMin

.distMax

.orbitMin

.orbitMax

.massMin

.massMax

Examples