{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## The Data\n", "\n", "For simplicity, we download the data here and save locally" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import pandas as pd\n", "\n", "def get_LINEAR_lightcurve(lcid):\n", " from astroML.datasets import fetch_LINEAR_sample\n", " LINEAR_sample = fetch_LINEAR_sample()\n", " data = pd.DataFrame(LINEAR_sample[lcid],\n", " columns=['t', 'mag', 'magerr'])\n", " data.to_csv('LINEAR_{0}.csv'.format(lcid), index=False)\n", " \n", "# Uncomment to download the data\n", "# get_LINEAR_lightcurve(lcid=11375941)" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
| \n", " | t | \n", "mag | \n", "magerr | \n", "
|---|---|---|---|
| 0 | \n", "52650.434545 | \n", "15.969 | \n", "0.035 | \n", "
| 1 | \n", "52650.448450 | \n", "16.036 | \n", "0.039 | \n", "
| 2 | \n", "52650.462420 | \n", "15.990 | \n", "0.035 | \n", "
| 3 | \n", "52650.476485 | \n", "16.027 | \n", "0.035 | \n", "
| 4 | \n", "52650.490443 | \n", "15.675 | \n", "0.030 | \n", "