GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SummerAppSpace/HuntAsteroids

BranchesTags
Open more actions menu

Latest commit

 

History

37 Commits
37 Commits

Folders and files

NameName
Last commit message
Last commit date
Frames
Frames
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
MultiAsteroids.py
MultiAsteroids.py
 
 
MultiAsteroids2.py
MultiAsteroids2.py
 
 
MultiAsteroids3.py
MultiAsteroids3.py
 
 
README.md
README.md
 
 
aliaKodo.py
aliaKodo.py
 
 
fbgraphics.py
fbgraphics.py
 
 
graphics2.py
graphics2.py
 
 
imggraphics.py
imggraphics.py
 
 
main.py
main.py
 
 
plotting.py
plotting.py
 
 
roid_info.txt
roid_info.txt
 
 
simplegraphics.py
simplegraphics.py
 
 

Repository files navigation

Installation Instructions

pip3.5 install --user poliastro

How to Use

First you import all the modules needed for this project;

import numpy as np
from astropy import units as u
from poliastro.bodies import Earth, Sun
from poliastro.twobody import Orbit
from matplotlib import pylab as plt

Next you need the data for Mars at J2000 from JPL HORIZONS which is;

a = 1.523679 * u.AU,
ecc = 0.093315 * u.one,
inc = 1.85 * u.deg,
raan = 49.562 * u.deg,
argp = 286.537 * u.deg,
nu = 23.33 * u.deg.

After you complete that, you have to define Mars:

mars = Orbit.from_classical(Sun, a, ecc, inc, raan, argp, nu)
#then plot
from poliastro.plotting import OrbitPlotter
op = OrbitPlotter()
op.plot(mars, label="Mars")

Then redefine the elements;

a = 1.0779 * u.AU
ecc = 0.8268 * u.one
inc = 22.852 * u.deg
raan = 88.0822 * u.deg
argp = 31.297 * u.deg
nu = 346.34 * u.deg

Now you define a new orbit;

icarus = Orbit.from_classical(Sun, a, ecc, inc, raan, argp, nu)

Next plot icarus and Mars

op = OrbitPlotter()
op.plot(mars, label="Mars")
op.plot(icarus,label="Icarus")
plt.show()
plt.savefig('asteroids.png')

Your code should print out two different images.

HuntAsteroids Original Project Description

There's over 700,000 discovered asteroids in our solar system. Because they are so small, and occupy a region so vast, it's often difficult to depict them visually. If asteroids are shown orbiting the Sun next to the planets, often the sizes of the asteroids have to be greatly exaggerated in order to be seen. This makes space seem more crowded then it actually is. A very popular asteroid depiction is by Scott Manley: https://www.youtube.com/watch?v=BKKg4lZ_o-Y

Active researchers struggle with this problem, as do science communicators trying to help others understand the layout of our solar system. Create one solution by depict the asteroids in our solar system. You can choose to try to show all the asteroids, or a small portion of them.

Tips:

  • Eventually it would be great to create a movie, but start with a single image.
  • With 700,000 asteroids, these plots can take a while to make. Start small while you're figuring things out, with just a few asteroids, and add the rest in later.

Data Resources

  • https://pythonhosted.org/OrbitalPy/ Consider using this code as a starting point. You'll want to modify it so that it produces plots that look the way you want, and then you'll want to modify it so that it can read in the orbital elements of actual asteroids (see below). Later you can use the animation.

  • http://www.minorplanetcenter.net/iau/MPCORB.html Each asteroid's path is described by six numbers, or orbital elements. These numbers are: eccentricity, semimajor axis, inclination, longitude of the ascending node, and argument of periapsis. If you know these six numbers, you know where the asteroid is going, and you can also plot it's orbit. The Minor Planet Center has orbital elements for all the known asteroids.

  • These orbital elements are in a special format, you can read about the format here: http://www.minorplanetcenter.net/iau/info/MPOrbitFormat.html

  • https://github.com/astrofrog/mpl-scatter-density Here's a density map package; density maps are good ways to plot lots of points.

  • Google "point clouds" and data visualization to learn about clever ways to depict large numbers of points.

  • Resources listed on 2016 Space Apps Challenge Page

About

No description, website, or topics provided.

Resources

Readme
License
Activity
Custom properties

Stars

1 star

Watchers

3 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.