Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/kynan/nbstripout
rev: 0.6.0
rev: 0.8.2
hooks:
- id: nbstripout
args: [
Expand All @@ -10,7 +10,7 @@ repos:
"metadata.vscode",
]
- repo: https://github.com/mwouts/jupytext
rev: v1.14.1
rev: v1.19.0.dev0
hooks:
- id: jupytext
args: [--from, ipynb, --to, ipynb, --update-metadata, '{"kernelspec": {"display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3"}}']
22 changes: 11 additions & 11 deletions dashboards/04_Conjunctions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "d732ec5f",
"id": "0",
"metadata": {},
"source": [
"# Conjunction Finder"
Expand All @@ -11,7 +11,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "8774d230",
"id": "1",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -23,7 +23,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4c251bd1",
"id": "2",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -52,7 +52,7 @@
},
{
"cell_type": "markdown",
"id": "512f0421",
"id": "3",
"metadata": {},
"source": [
"## Build interactivity for finding conjunction times"
Expand All @@ -61,7 +61,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "86cd0b0d",
"id": "4",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -86,7 +86,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "676f60a0",
"id": "5",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -117,7 +117,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "3e08cb7d",
"id": "6",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -145,7 +145,7 @@
},
{
"cell_type": "markdown",
"id": "d3501277",
"id": "7",
"metadata": {},
"source": [
"## Extend with geographic preview of positions"
Expand All @@ -154,7 +154,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "7074d1b5",
"id": "8",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -231,7 +231,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "ab103c59",
"id": "9",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -286,7 +286,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "b2e710e1",
"id": "10",
"metadata": {},
"outputs": [],
"source": [
Expand Down
6 changes: 3 additions & 3 deletions notebooks/00a_External-Notebooks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"cells": [
{
"cell_type": "markdown",
"id": "0b9843d8-7d74-470c-bcfc-0152b308ae58",
"id": "0",
"metadata": {},
"source": [
"# 🌍 Beyond Swarm Notebooks"
]
},
{
"cell_type": "markdown",
"id": "2e0a3bf3-bd3f-4de4-8a56-a18f84cb10d3",
"id": "1",
"metadata": {},
"source": [
"*Swarm Notebooks* document access to Swarm products and show general recipes for their manipulation and visualisation, fully tested and verified to work on the VRE.\n",
Expand All @@ -26,7 +26,7 @@
},
{
"cell_type": "markdown",
"id": "37540a83-e5e1-49f0-bf9d-6f3a60211982",
"id": "2",
"metadata": {},
"source": [
"---\n",
Expand Down
26 changes: 13 additions & 13 deletions notebooks/02e1_Conjunction-Interface.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "92018091",
"id": "0",
"metadata": {},
"source": [
"# Finding conjunctions\n",
Expand Down Expand Up @@ -37,7 +37,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "ed1aaa68",
"id": "1",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -49,7 +49,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "eb7c8326",
"id": "2",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -61,7 +61,7 @@
},
{
"cell_type": "markdown",
"id": "bdde19ca",
"id": "3",
"metadata": {},
"source": [
"Use the [`.get_conjunctions()`](https://viresclient.readthedocs.io/en/latest/api.html#viresclient.SwarmRequest.get_conjunctions) method to search for conjunctions. This takes as its inputs:\n",
Expand All @@ -76,7 +76,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "17bb2cf6",
"id": "4",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -96,15 +96,15 @@
},
{
"cell_type": "markdown",
"id": "b2b7158f",
"id": "5",
"metadata": {},
"source": [
"## Using identified conjunctions"
]
},
{
"cell_type": "markdown",
"id": "c1eb4af7",
"id": "6",
"metadata": {},
"source": [
"We can now use the identified time instances to extract data from around those moments. Let's pick the first conjunction found and create a one-minute time window around it:"
Expand All @@ -113,7 +113,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "ba978bb0",
"id": "7",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -125,7 +125,7 @@
},
{
"cell_type": "markdown",
"id": "ca2235d0",
"id": "8",
"metadata": {},
"source": [
"Now let's pull the magnetic high rate (50Hz) measurements from this period:"
Expand All @@ -134,7 +134,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "736c79b4",
"id": "9",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -151,7 +151,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "8291602a",
"id": "10",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -161,7 +161,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "1933db9b",
"id": "11",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -192,7 +192,7 @@
},
{
"cell_type": "markdown",
"id": "73f5f07d",
"id": "12",
"metadata": {},
"source": [
"The pair of Alpha and Charlie fly together at the same altitude so measure a very similar field. Bravo, in this instance, is flying in the *opposite* direction (in this part of the mission, the orbits are counter-rotating so there are many conjunctions with the spacecraft flying towards each other), but at a *higher altitude* and so measuring a weaker field."
Expand Down
20 changes: 10 additions & 10 deletions notebooks/02h1_HAPI.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "dd034a22-386e-4acc-b004-175f1cdadf85",
"id": "0",
"metadata": {
"tags": []
},
Expand All @@ -12,7 +12,7 @@
},
{
"cell_type": "markdown",
"id": "78c05938-9980-49b9-aa50-b68c132f4795",
"id": "1",
"metadata": {
"tags": []
},
Expand All @@ -37,7 +37,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "92edb7d8-907e-4e69-9dd1-c28566a873ba",
"id": "2",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -46,7 +46,7 @@
},
{
"cell_type": "markdown",
"id": "bace0175-e1e1-448a-9d0c-8621c51e6254",
"id": "3",
"metadata": {
"tags": []
},
Expand All @@ -56,7 +56,7 @@
},
{
"cell_type": "markdown",
"id": "de61190d-0dd4-4a25-8561-bb16be09d14c",
"id": "4",
"metadata": {
"tags": []
},
Expand All @@ -67,7 +67,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "3eb5f6dc-a589-436d-ba40-1de6e2fd3d8d",
"id": "5",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -84,7 +84,7 @@
},
{
"cell_type": "markdown",
"id": "d0839f91-8293-461f-8464-e5f029ad85dc",
"id": "6",
"metadata": {},
"source": [
"Data and metadata are returned separately as a [NumPy Structured Array](https://numpy.org/doc/stable/user/basics.rec.html) and dictionary."
Expand All @@ -93,7 +93,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "8c15b001-c1b2-4549-b760-8c4825205254",
"id": "7",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -103,7 +103,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "80cac1d6-a301-401b-9ee5-eb342d77003d",
"id": "8",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -112,7 +112,7 @@
},
{
"cell_type": "markdown",
"id": "f45c4a54-a012-4861-986b-201c52952701",
"id": "9",
"metadata": {},
"source": [
"For more help, see:\n",
Expand Down
Loading