First Last - Plotting Asteroids


In [ ]:
%matplotlib inline
import matplotlib.pyplot as plt

import numpy as np
from astropy.table import QTable

The file SDSS_MainBelt.csv contains data on objects in the asteroid belt collected by the Sloan Digital Sky Survey.

The columns are:

  • Name - Object name
  • a - semi-major axis
  • cA - SDSS a$^*$ color
  • cI - SDSS i color (near infrared)
  • cZ - SDSS z color (infrared)
  • X - X position [au] - Sun-centered coords (10/29/2014)
  • Y - Y position [au] - Sun-centered coords (10/29/2014)
  • Z - Z position [au] - Sun-centered coords (10/29/2014)

Read in the file SDSS_MainBelt.csv


In [ ]:

The Color of the Asteroids

  • Make three (3) plots in one row
  • In each panel, plot a histogram of the semi-major axis (a) for all of the asteroids.
  • Bins = 100.
  • Only show 2.0 AU < a < 3.6 AU
  • In the first panel, overplot a histogram of a for C-Type asteroids only.
  • In the first panel, overplot a histogram of a for S-Type asteroids only.
  • In the first panel, overplot a histogram of a for V-Type asteroids only.
  • In each panel, draw a vertical line at a = mean(a) for that type of asteroid.
  • Adjust the color and transparency of the overplotted histograms so that it is easy to see.
  • The asteroid types can be determined from their colors (see image below).
  • Output size w:15in, h:5in
  • Make the plot look nice (including clear labels)

In [ ]:

The Position of the Asteroids

  • Make a 3D plot of X vs Y vs Z for the asteroids
  • Orient the plot so you can see the 3D structure of the asteroid belt
  • Output size w:9in, h:9in
  • Make the plot look nice

In [ ]:


Asteroid classes - SDSS Colors


Due Thurs Nov 02 - 5pm

  • Make sure to change the filename to your name!
  • Make sure to change the Title to your name!
  • File -> Download as -> HTML (.html)
  • upload your .html and .ipynb file to the class Canvas page

In [ ]: