Skip to content

Commit

Permalink
Something is off with directions after 2019-01-01 for Flinten7 station
Browse files Browse the repository at this point in the history
See #7
  • Loading branch information
jsmariegaard committed Dec 6, 2024
1 parent bd665b9 commit fd4612e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 28,337 deletions.
44 changes: 29 additions & 15 deletions .preprocessing/preprocess_current_data.ipynb
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Preprocessing of station current data\n",
"\n",
"Note: Something is off with directions after 2019-01-01 for Flinten7 station. They have been removed for now. "
]
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 12,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -12,7 +21,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 13,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -56,7 +65,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -73,7 +82,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 15,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -225,7 +234,7 @@
"[285450 rows x 4 columns]"
]
},
"execution_count": 4,
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -242,7 +251,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 16,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -251,7 +260,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 17,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -286,7 +295,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 18,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -321,7 +330,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 19,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -539,7 +548,7 @@
"[231505 rows x 8 columns]"
]
},
"execution_count": 8,
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -552,7 +561,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 20,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -770,7 +779,7 @@
"[61574 rows x 8 columns]"
]
},
"execution_count": 9,
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -782,11 +791,16 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 21,
"metadata": {},
"outputs": [],
"source": [
"Flinten7[[\"u_depth_averaged\",\"v_depth_averaged\"]].rename(columns={\"u_depth_averaged\":\"u\",\"v_depth_averaged\":\"v\"}).to_csv(\"../observations/Flinten7_u_v.csv\", date_format='%Y-%m-%dT%H:%M:%S')"
"df = Flinten7[[\"u_depth_averaged\",\"v_depth_averaged\"]].rename(columns={\"u_depth_averaged\":\"u\",\"v_depth_averaged\":\"v\"})\n",
"\n",
"# Something is off with directions after 2019-01-01; let's skip for now\n",
"df = df.loc[slice(None,'2019-01-01')]\n",
"\n",
"df.to_csv(\"../observations/Flinten7_u_v.csv\", date_format='%Y-%m-%dT%H:%M:%S')"
]
},
{
Expand All @@ -798,7 +812,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 22,
"metadata": {},
"outputs": [],
"source": [
Expand Down
Loading

0 comments on commit fd4612e

Please sign in to comment.