Giter Site home page Giter Site logo

planetbody's Introduction

Planetbody

This is a Python package providing basic informations for some planetary bodies. Units used are exclusively from the International System of units.

Usage example

# Import package
from planetbody import earth, mars, europa

# Display Mars radiuses
In [1]: mars.radius
Out[1]: {'unit': 'm', 'val': {'a': 3396200.0, 'b': 3396200.0, 'c': 3376200.0}}

# Display Earth volume
In [2]: earth.volume()
Out[2]: {'unit': 'm^{-3}', 'val': 1.0832072662532028e+21}

# Display Europa mass related to Earth
In [3]: europa.mass['val']/earth.mass['val']
Out[3]: 0.00803691778058

#Display Mars Fact Sheet
In [3]: mars.report()
Mars (S IV) is a planet orbiting Sun

	[Physical Properties]
	Mass           = 6.42e+23 kg
	Radius (Mean)  = 3.39e+06 m
	Radius (Equ.1) = 3.40e+06 m
	Radius (Equ.2) = 3.40e+06 m
	Radius (Polar) = 3.38e+06 m
	Flattening     = 5.89e-03 None
	Ellipticity    = 1.08e-01 None
	Surface Area   = 1.44e+14 m^2
	Volume         = 1.63e+20 m^{-3}
	Density        = 3.93e+03 kg.m^{-3}
	Mean Gravity   = 3.73e+00 m.s^{-2}

	[Orbital Properties]
	Rotation Period    = 1.03e+00 days
	Rotation Axis Tilt = 2.52e+01 deg
	Periapsis          = 2.07e+11 m
	Apoapsis           = 2.49e+11 m
	Semi-Major axis    = 2.28e+11 m
	Orbit Inclination  = 1.85e+00 deg
	Periapsis Argument = 2.87e+02 deg
	Ascending Node     = 4.96e+01 deg

planetbody's People

Contributors

cgrima avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.