In [2]:
# Nice inline plots
%matplotlib inline
# auto reloading of external functions
%load_ext autoreload
%autoreload 2

In [3]:
import pineapple

In [4]:
# Install these objects to the pineapple library
# %pip install AstroML
# %pip install astroML_addons
# %pip install astropy
# %pip install healpy
# %pip install git+https://github.com/astroML/astroML.git

In [5]:
# Cache the data to the disk here...
import os
os.environ['ASTROML_DATA'] = '/Users/ajmendez/data/astroML'

In [6]:
# Check that we can load some nice default libraries
import pylab
import numpy as np
import astroML

In [7]:
# photometry data set
from astroML.datasets import fetch_imaging_sample
photo_data = fetch_imaging_sample()
photo_data.shape


/Applications/Pineapple.app/Contents/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sklearn/utils/fixes.py:64: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead
  if 'order' in inspect.getargspec(np.copy)[0]:
Out[7]:
(330753,)

In [8]:
from astroML.datasets import fetch_sdss_spectrum
data = fetch_sdss_spectrum(plate=1615, mjd=53166, fiber=513)
pylab.plot(data.wavelength(), data.spectrum ,'-k')


Out[8]:
[<matplotlib.lines.Line2D at 0x116d40710>]

In [33]:
from astroML.datasets import tools
target = tools.TARGET_GALAXY
## BROKEN -- res[i] = list(map(int, line.decode().strip().split(',')))
# plt, mjd, fib = tools.query_plate_mjd_fiber(5, primtarget=target)

In [11]:
from astroML.datasets import fetch_sdss_specgals
data = fetch_sdss_specgals()

In [12]:
from astroML.datasets import fetch_dr7_quasar
data = fetch_dr7_quasar()

In [13]:
from astroML.datasets import fetch_sdss_sspp
data = fetch_sdss_sspp()

In [14]:
from astroML.datasets import fetch_sdss_S82standards
data = fetch_sdss_S82standards()

In [15]:
from astroML.datasets import fetch_moving_objects
data = fetch_moving_objects(Parker2008_cuts=True)

In [ ]: