Skip to content

Commit

Permalink
d equals
Browse files Browse the repository at this point in the history
  • Loading branch information
robfatland committed Jul 7, 2024
1 parent 0ce1223 commit 66c09e9
Showing 1 changed file with 20 additions and 27 deletions.
47 changes: 20 additions & 27 deletions book/chapters/data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
"[Jupyter Book](https://geo-smart.github.io/oceanography/intro.html) and [GitHub repo](https://github.com/geo-smart/oceanography).\n",
"\n",
"\n",
"> Author's note: This chapter introduces the mechanics of data access: Profiles and sensors. \n",
"\n",
"# Data\n",
"\n",
"\n",
Expand All @@ -18,7 +16,7 @@
"There are two central data concepts driving the initial work here:\n",
"\n",
"\n",
"- Platform metadata: When a profiler is at rest / ascending / descending.\n",
"- Platform metadata: Marks when a profiler is at rest / ascending / descending.\n",
"- Sensor data: The temperature as a function of depth for a given profile.\n",
"\n",
"\n",
Expand Down Expand Up @@ -256,7 +254,7 @@
},
{
"cell_type": "code",
"execution_count": 53,
"execution_count": 1,
"metadata": {
"tags": []
},
Expand All @@ -265,6 +263,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"Jupyter Notebook running Python 3\n",
"\n",
"Jupyter Notebook running Python 3\n"
]
Expand Down Expand Up @@ -378,7 +378,7 @@
},
{
"cell_type": "code",
"execution_count": 54,
"execution_count": 2,
"metadata": {
"tags": []
},
Expand Down Expand Up @@ -632,7 +632,7 @@
"[279 rows x 12 columns]"
]
},
"execution_count": 54,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -647,7 +647,7 @@
},
{
"cell_type": "code",
"execution_count": 55,
"execution_count": 3,
"metadata": {
"tags": []
},
Expand All @@ -671,18 +671,18 @@
},
{
"cell_type": "code",
"execution_count": 56,
"execution_count": 4,
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"text/plain": [
"[<matplotlib.lines.Line2D at 0x7f4b49e323d0>]"
"[<matplotlib.lines.Line2D at 0x7f793ea27ad0>]"
]
},
"execution_count": 56,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
},
Expand Down Expand Up @@ -717,7 +717,7 @@
},
{
"cell_type": "code",
"execution_count": 57,
"execution_count": 5,
"metadata": {
"tags": []
},
Expand Down Expand Up @@ -775,16 +775,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 58,
"execution_count": 7,
"metadata": {
"tags": []
},
Expand Down Expand Up @@ -818,7 +809,7 @@
},
{
"cell_type": "code",
"execution_count": 59,
"execution_count": 8,
"metadata": {
"tags": []
},
Expand Down Expand Up @@ -861,7 +852,7 @@
},
{
"cell_type": "code",
"execution_count": 64,
"execution_count": 9,
"metadata": {
"tags": []
},
Expand Down Expand Up @@ -903,7 +894,7 @@
},
{
"cell_type": "code",
"execution_count": 65,
"execution_count": 10,
"metadata": {
"tags": []
},
Expand Down Expand Up @@ -1016,7 +1007,7 @@
},
{
"cell_type": "code",
"execution_count": 66,
"execution_count": 11,
"metadata": {
"tags": []
},
Expand Down Expand Up @@ -1090,7 +1081,7 @@
},
{
"cell_type": "code",
"execution_count": 67,
"execution_count": 12,
"metadata": {
"tags": []
},
Expand Down Expand Up @@ -1127,7 +1118,7 @@
},
{
"cell_type": "code",
"execution_count": 68,
"execution_count": 13,
"metadata": {
"tags": []
},
Expand Down Expand Up @@ -1163,6 +1154,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Fossil code:\n",
"\n",
"```\n",
"df = ds.to_dataframe()\n",
"vals = [xr.DataArray(data=df[c], dims=['time'], coords={'time':df.index}, attrs=ds[c].attrs) for c in df.columns]\n",
Expand Down

0 comments on commit 66c09e9

Please sign in to comment.