Skip to content

Commit

Permalink
feat: update notebooks to latest astro changes (#112)
Browse files Browse the repository at this point in the history
* feat: update notebooks to latest astro changes

* feat: update remaining

* feat: missed a spot
  • Loading branch information
vishwa2710 authored Apr 11, 2024
1 parent d598357 commit eda4c2d
Show file tree
Hide file tree
Showing 24 changed files with 200,094 additions and 200,109 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2,562 changes: 1,281 additions & 1,281 deletions notebooks/Astrodynamics/Mission Analysis/QLaw-examples.ipynb

Large diffs are not rendered by default.

1,001 changes: 501 additions & 500 deletions notebooks/Astrodynamics/Mission Analysis/Station-Keeping Sequence [QLaw].ipynb

Large diffs are not rendered by default.

1,222 changes: 611 additions & 611 deletions notebooks/Astrodynamics/Mission Analysis/Station-keeping Sequence.ipynb

Large diffs are not rendered by default.

2,140 changes: 1,070 additions & 1,070 deletions notebooks/Astrodynamics/Orbit Computation/Access Computation.ipynb

Large diffs are not rendered by default.

664 changes: 332 additions & 332 deletions notebooks/Astrodynamics/Orbit Computation/Constant Thrust Dynamics.ipynb

Large diffs are not rendered by default.

554 changes: 277 additions & 277 deletions notebooks/Astrodynamics/Orbit Computation/Custom Event Condition.ipynb

Large diffs are not rendered by default.

844 changes: 419 additions & 425 deletions notebooks/Astrodynamics/Orbit Computation/Custom Window Generation.ipynb

Large diffs are not rendered by default.

1,416 changes: 708 additions & 708 deletions notebooks/Astrodynamics/Orbit Computation/Find RF Interference Accesses.ipynb

Large diffs are not rendered by default.

This file was deleted.

1,256 changes: 628 additions & 628 deletions notebooks/Astrodynamics/Orbit Computation/Orbit Computation.ipynb

Large diffs are not rendered by default.

2,478 changes: 1,239 additions & 1,239 deletions notebooks/Astrodynamics/Sensor Modeling/Area Coverage.ipynb

Large diffs are not rendered by default.

2,244 changes: 1,122 additions & 1,122 deletions notebooks/Astrodynamics/Sensor Modeling/Sensor Modeling.ipynb

Large diffs are not rendered by default.

240 changes: 120 additions & 120 deletions notebooks/Physics/Coordinate Conversion/LLA to ECEF.ipynb
Original file line number Diff line number Diff line change
@@ -1,121 +1,121 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "1df2d753-3542-4a06-b700-632d59a4541a",
"metadata": {},
"source": [
"# LLA to ECEF Converter"
]
},
{
"cell_type": "markdown",
"id": "80200afc-988a-4396-8ac2-9019f8df4991",
"metadata": {},
"source": [
"Convert **Latitude, Longitude and Altitude (LLA)** coordinates to **Earth-Centered, Earth-Fixed (ECEF)** coordinates.\n",
"\n",
"*Note: Geodetic latitude (WGS84) is used here.*"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "4d7d9823-9667-4807-8a9c-852eafcd7312",
"metadata": {},
"outputs": [],
"source": [
"from ostk.physics.units import Length\n",
"from ostk.physics.units import Angle\n",
"from ostk.physics.coordinate.spherical import LLA\n",
"from ostk.physics import Environment"
]
},
{
"cell_type": "markdown",
"id": "40e49199-ee09-4eeb-bb8a-4e5a028b669d",
"metadata": {},
"source": [
"---"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "30fa82fa-5366-4988-a9c8-e39b34a6d7e2",
"metadata": {},
"outputs": [],
"source": [
"environment = Environment.default()\n",
"earth = environment.access_celestial_object_with_name(\"Earth\")"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "54ab52ef-2713-4e89-8830-e108723d1258",
"metadata": {},
"outputs": [],
"source": [
"lla = LLA(Angle.degrees(65.0), Angle.degrees(-30.0), Length.meters(30.0))"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "b76d0811-f5be-4b3d-becb-1162f35d005c",
"metadata": {},
"outputs": [],
"source": [
"x_ECEF = lla.to_cartesian(earth.get_equatorial_radius(), earth.get_flattening())"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "290445ed-346a-47ca-8df1-311ffacc6783",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[ 2340841.98864643 -1351485.7522754 5757737.03072958]\n"
]
}
],
"source": [
"print(x_ECEF)"
]
},
{
"cell_type": "markdown",
"id": "7ce5c980-97d3-44d2-805a-f0765ab264a9",
"metadata": {},
"source": [
"---"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"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.11.6"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
"cells": [
{
"cell_type": "markdown",
"id": "1df2d753-3542-4a06-b700-632d59a4541a",
"metadata": {},
"source": [
"# LLA to ECEF Converter"
]
},
{
"cell_type": "markdown",
"id": "80200afc-988a-4396-8ac2-9019f8df4991",
"metadata": {},
"source": [
"Convert **Latitude, Longitude and Altitude (LLA)** coordinates to **Earth-Centered, Earth-Fixed (ECEF)** coordinates.\n",
"\n",
"*Note: Geodetic latitude (WGS84) is used here.*"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "4d7d9823-9667-4807-8a9c-852eafcd7312",
"metadata": {},
"outputs": [],
"source": [
"from ostk.physics.unit import Length\n",
"from ostk.physics.unit import Angle\n",
"from ostk.physics.coordinate.spherical import LLA\n",
"from ostk.physics import Environment"
]
},
{
"cell_type": "markdown",
"id": "40e49199-ee09-4eeb-bb8a-4e5a028b669d",
"metadata": {},
"source": [
"---"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "30fa82fa-5366-4988-a9c8-e39b34a6d7e2",
"metadata": {},
"outputs": [],
"source": [
"environment = Environment.default()\n",
"earth = environment.access_celestial_object_with_name(\"Earth\")"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "54ab52ef-2713-4e89-8830-e108723d1258",
"metadata": {},
"outputs": [],
"source": [
"lla = LLA(Angle.degrees(65.0), Angle.degrees(-30.0), Length.meters(30.0))"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "b76d0811-f5be-4b3d-becb-1162f35d005c",
"metadata": {},
"outputs": [],
"source": [
"x_ECEF = lla.to_cartesian(earth.get_equatorial_radius(), earth.get_flattening())"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "290445ed-346a-47ca-8df1-311ffacc6783",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[ 2340841.98864643 -1351485.7522754 5757737.03072958]\n"
]
}
],
"source": [
"print(x_ECEF)"
]
},
{
"cell_type": "markdown",
"id": "7ce5c980-97d3-44d2-805a-f0765ab264a9",
"metadata": {},
"source": [
"---"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"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.11.6"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Loading

0 comments on commit eda4c2d

Please sign in to comment.