Added stitching tutorial
"cell_type": "markdown",
"metadata": {},
"source": [
- "Above we have created a `KeplerLightCurve` object from the first quarter of the data, using the PDCSAP_FLUX. Then we have looped through all the quarters, appending a "
+ "Above we have created a `KeplerLightCurve` object from the first quarter of the data, choosing to use the PDCSAP_FLUX. Then we have looped through all the quarters, appending each new light curve to the fist one. We can plot this new `KeplerLightCurve` using the `plot` function (and all the other functions from previous tutorials will work too!)"
]
},
{
"lc.plot();"
]
},
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Unfortunately, as the light fell on difference pixels in each quarter and the spacecraft changed temperature during observation, these light curves all have difference offsets. We can remove them by normalizing each light curve before we append it. We can do this with the lightkurve function `normalize`."
+ ]
+ },
{
"cell_type": "code",
"execution_count": 4,
"lc.plot();"
]
},
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Now that the light curves are normalized they don't have significant offsets. However, there are clear long term trends in some of the early quarters of the data. We can remove this using lightkurve's `flatten` method before appending each object."
+ ]
+ },
{
"cell_type": "code",
"execution_count": 6,
"lc.plot();"
]
},
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Now all of the light curves stitch together with no visible join. We can use the `fold` and `bin` methods to form a planet transit out of all of the data for Kepler-8b."
+ ]
+ },
{
"cell_type": "code",
"execution_count": 8,
