{ "cells": [ { "cell_type": "markdown", "id": "f9d6c721-c13d-495e-9232-82e432e72369", "metadata": {}, "source": [ "# Calculating Velocity Aberration\n", "\n", "Velocity aberration is the apparent shift in the position of a star or celestial object caused by the motion of the observer relative to the speed of light. This effect is appreciable in space missions where we are moving at high velocities and have a small pixel scale. \n", "\n", "You can use `lkspacecraft` to calculate this position." ] }, { "cell_type": "code", "execution_count": 1, "id": "bc0c3c96-0795-499b-8503-7ce499f5a4ae", "metadata": {}, "outputs": [], "source": [ "from lkspacecraft import KeplerSpacecraft\n", "from astropy.time import Time\n", "import numpy as np\n", "import matplotlib.pyplot as plt" ] }, { "cell_type": "markdown", "id": "83c76e18-8347-48bc-8bbd-2746a028e758", "metadata": {}, "source": [ "First we initialize the spacecraft" ] }, { "cell_type": "code", "execution_count": 2, "id": "1ffe76f5-8e1c-4a95-ad60-1817d95e7dea", "metadata": {}, "outputs": [], "source": [ "ks = KeplerSpacecraft()" ] }, { "cell_type": "markdown", "id": "302ecda0-b1f2-407f-83b3-78cf1eaa9f83", "metadata": {}, "source": [ "Then we select a time range. I am selecting a year near the start of the mission" ] }, { "cell_type": "code", "execution_count": 3, "id": "bce920e0-64c5-41c3-b839-09bbdfca445d", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "