Skip to content

Commit

Permalink
maybe running nbs in vscode is generating weird metadata?
Browse files Browse the repository at this point in the history
  • Loading branch information
sblunt committed May 11, 2021
1 parent 06cf635 commit 60264a7
Showing 1 changed file with 36 additions and 34 deletions.
70 changes: 36 additions & 34 deletions docs/faq/Time_Of_Periastron.ipynb
Original file line number Diff line number Diff line change
@@ -1,28 +1,8 @@
{
"metadata": {
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5-final"
},
"orig_nbformat": 2,
"kernelspec": {
"name": "python3",
"display_name": "Python 3",
"language": "python"
}
},
"nbformat": 4,
"nbformat_minor": 2,
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# $\\tau$ and Time of Periastron\n",
"\n",
Expand Down Expand Up @@ -51,20 +31,20 @@
"One thing to note that is a given orbit has only a single valid $\\tau$, but that an orbit can be defined by many $t_p$, since the orbit is periodic. Thus, $t_p + P$ is another valid time of periastron. \n",
"\n",
"We also provide some helper functions to covert between $t_p$ and $\\tau$"
],
"cell_type": "markdown",
"metadata": {}
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"output_type": "stream",
"text": [
"60649.50097715886\n0.2000000000000002\n6634.471662393138\n"
"60649.50097715886\n",
"0.2000000000000002\n",
"6634.471662393138\n"
]
}
],
Expand Down Expand Up @@ -97,26 +77,27 @@
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Relation to Mean Anomaly\n",
"\n",
"The mean anomaly (M) of an orbit describes the current orbital phase of a planet. M goes from 0 to 2$\\pi$, and M = 0 means the planet is at periastron. Unlike $t_p$ and $\\tau$ which describe the epoch of periastron, M describes the current position of the planet in its orbit. \n",
"\n",
"To compute M of a planet at some time t, we have provided the following helper function:"
],
"cell_type": "markdown",
"metadata": {}
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"output_type": "stream",
"text": [
"5.829874251150844\n1.3951473992034527e-15\n"
"5.829874251150844\n",
"1.3951473992034527e-15\n"
]
}
],
Expand All @@ -135,5 +116,26 @@
"print(M_peri)"
]
}
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

0 comments on commit 60264a7

Please sign in to comment.