From 4a350eec042ba49aeacf23a711a49a21b6a4e907 Mon Sep 17 00:00:00 2001 From: Gui-FernandesBR Date: Mon, 18 Dec 2023 00:53:13 -0300 Subject: [PATCH] MNT: polishup the notebook --- docs/examples/juno3_flight_sim.ipynb | 35 +--------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/docs/examples/juno3_flight_sim.ipynb b/docs/examples/juno3_flight_sim.ipynb index 29aac71da..770ae8fa0 100644 --- a/docs/examples/juno3_flight_sim.ipynb +++ b/docs/examples/juno3_flight_sim.ipynb @@ -176,7 +176,7 @@ ], "source": [ "mandioca = SolidMotor(\n", - " thrust_source=\"/home/gfalves/Documents/github/RocketPy/data/motors/mandioca/thrustCurve.csv\",\n", + " thrust_source=\"../../data/motors/mandioca/thrustCurve.csv\",\n", " reshape_thrust_curve=(5.8, 8800),\n", " grain_number=5,\n", " grain_separation=0.006,\n", @@ -612,39 +612,6 @@ ")" ] }, - { - "cell_type": "code", - "execution_count": 55, - "metadata": {}, - "outputs": [], - "source": [ - "# read the cots_gnss\n", - "\n", - "cots_gnss_df = pd.read_csv(\"../../data/juno3/cots_GNSS.csv\")\n", - "\n", - "# Convert the 'UTCTIME' column to datetime\n", - "cots_gnss_df[\"UTCTIME\"] = pd.to_datetime(\n", - " cots_gnss_df[\"UTCTIME\"], format=\"%b %d %Y %H:%M:%S.%f %Z\"\n", - ")\n", - "\n", - "# Calculate the differences in seconds from the first timestamp\n", - "cots_gnss_df[\"time (s)\"] = (\n", - " cots_gnss_df[\"UTCTIME\"] - cots_gnss_df[\"UTCTIME\"].iloc[0]\n", - ").dt.total_seconds()\n", - "\n", - "# convert the ALT, HORZV, and the VERTV to m\n", - "# cots_gnss_df[\"ALT\"] = cots_gnss_df[\"ALT\"] * 0.3048\n", - "# cots_gnss_df[\"HORZV\"] = cots_gnss_df[\"HORZV\"] * 0.3048\n", - "# cots_gnss_df[\"VERTV\"] = cots_gnss_df[\"VERTV\"] * 0.3048\n", - "\n", - "# select columns\n", - "cots_gnss_df = cots_gnss_df[[\"time (s)\", \"ALT\", \"HORZV\", \"VERTV\", \"LAT\", \"LON\"]]\n", - "cots_gnss_df\n", - "\n", - "# override the file\n", - "cots_gnss_df.to_csv(\"../../data/juno3/cots_GNSS.csv\", index=False)" - ] - }, { "cell_type": "code", "execution_count": 58,