Skip to content

Commit

Permalink
update notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
MAfarrag committed Dec 8, 2024
1 parent 257843f commit d3218b6
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 73 deletions.
75 changes: 35 additions & 40 deletions examples/notebooks/02spatial-operation-methods.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,14 @@
{
"cell_type": "code",
"source": [
"# NBVAL_IGNORE_OUTPUT\n",
"dataset.plot(vmin=0, title=\"Rhine River Basin\", cbar_label=\"Elevation(m)\")"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2024-12-08T20:50:05.700719Z",
"start_time": "2024-12-08T20:50:03.463903Z"
"end_time": "2024-12-08T21:02:22.273555Z",
"start_time": "2024-12-08T21:02:22.076044Z"
}
},
"outputs": [
Expand All @@ -114,15 +115,15 @@
{
"data": {
"text/plain": [
"<cleopatra.array_glyph.ArrayGlyph at 0x281122bd250>"
"<cleopatra.array_glyph.ArrayGlyph at 0x28114f67bc0>"
]
},
"execution_count": 4,
"execution_count": 21,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 4
"execution_count": 21
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -174,12 +175,15 @@
{
"metadata": {
"ExecuteTime": {
"end_time": "2024-12-08T20:50:15.333156Z",
"start_time": "2024-12-08T20:50:15.066208Z"
"end_time": "2024-12-08T21:02:18.361024Z",
"start_time": "2024-12-08T21:02:18.020663Z"
}
},
"cell_type": "code",
"source": "dataset_8km.plot(vmin=0, title=\"Rhine River Basin (resampled to 8 km)\", cbar_label=\"Elevation(m)\")",
"source": [
"# NBVAL_IGNORE_OUTPUT\n",
"dataset_8km.plot(vmin=0, title=\"Rhine River Basin (resampled to 8 km)\", cbar_label=\"Elevation(m)\")"
],
"outputs": [
{
"data": {
Expand All @@ -194,15 +198,15 @@
{
"data": {
"text/plain": [
"<cleopatra.array_glyph.ArrayGlyph at 0x2810fca94c0>"
"<cleopatra.array_glyph.ArrayGlyph at 0x28115190170>"
]
},
"execution_count": 7,
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 7
"execution_count": 20
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -295,13 +299,14 @@
{
"cell_type": "code",
"source": [
"# NBVAL_IGNORE_OUTPUT\n",
"resampled_dataset.plot(vmin=0, title=\"Rhine River Basin (reprojected to WGS 84)\", cbar_label=\"Elevation(m)\")"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2024-12-08T20:50:24.411253Z",
"start_time": "2024-12-08T20:50:24.198997Z"
"end_time": "2024-12-08T21:02:37.650093Z",
"start_time": "2024-12-08T21:02:37.469037Z"
}
},
"outputs": [
Expand All @@ -318,15 +323,15 @@
{
"data": {
"text/plain": [
"<cleopatra.array_glyph.ArrayGlyph at 0x281145249e0>"
"<cleopatra.array_glyph.ArrayGlyph at 0x281145b2fc0>"
]
},
"execution_count": 11,
"execution_count": 22,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 11
"execution_count": 22
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -393,12 +398,13 @@
{
"metadata": {
"ExecuteTime": {
"end_time": "2024-12-08T20:50:33.665217Z",
"start_time": "2024-12-08T20:50:33.283836Z"
"end_time": "2024-12-08T21:03:01.840130Z",
"start_time": "2024-12-08T21:03:01.668195Z"
}
},
"cell_type": "code",
"source": [
"# NBVAL_IGNORE_OUTPUT\n",
"glyph = meteo_data.plot(\n",
" band=0, figsize=(10, 5), title=\"Noah daily Precipitation 1979-01-01\", cbar_label=\"Raindall mm/day\", vmax=30,\n",
" cbar_length=0.85\n",
Expand All @@ -416,7 +422,7 @@
"output_type": "display_data"
}
],
"execution_count": 14
"execution_count": 23
},
{
"metadata": {
Expand All @@ -433,13 +439,14 @@
{
"cell_type": "code",
"source": [
"# NBVAL_IGNORE_OUTPUT\n",
"meteo_data_r.plot(band=0)"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2024-12-08T20:50:42.402277Z",
"start_time": "2024-12-08T20:50:42.160878Z"
"end_time": "2024-12-08T21:03:22.350554Z",
"start_time": "2024-12-08T21:03:22.149101Z"
}
},
"outputs": [
Expand All @@ -456,15 +463,15 @@
{
"data": {
"text/plain": [
"<cleopatra.array_glyph.ArrayGlyph at 0x2811523ff20>"
"<cleopatra.array_glyph.ArrayGlyph at 0x28115de99d0>"
]
},
"execution_count": 16,
"execution_count": 24,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 16
"execution_count": 24
},
{
"cell_type": "code",
Expand All @@ -483,14 +490,12 @@
},
{
"cell_type": "code",
"source": [
"rhine_meteo_data.plot(band=0)"
],
"source": "rhine_glyph = rhine_meteo_data.plot(band=0)",
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2024-12-08T20:50:47.295641Z",
"start_time": "2024-12-08T20:50:47.064249Z"
"end_time": "2024-12-08T21:03:49.401907Z",
"start_time": "2024-12-08T21:03:49.190520Z"
}
},
"outputs": [
Expand All @@ -503,19 +508,9 @@
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": [
"<cleopatra.array_glyph.ArrayGlyph at 0x281145efbf0>"
]
},
"execution_count": 18,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 18
"execution_count": 25
},
{
"cell_type": "code",
Expand Down
18 changes: 4 additions & 14 deletions examples/notebooks/03convert-longitude.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -196,16 +196,16 @@
{
"cell_type": "code",
"source": [
"new_dataset.plot(\n",
"new_glyph = new_dataset.plot(\n",
" band=0, figsize=(10, 5), title=\"NOAH daily Precipitation 1979-01-01\", cbar_label=\"RainFall mm/day\", vmax=30,\n",
" cbar_length=0.85\n",
")"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2024-12-08T20:51:46.309972Z",
"start_time": "2024-12-08T20:51:46.088502Z"
"end_time": "2024-12-08T21:04:41.180834Z",
"start_time": "2024-12-08T21:04:40.953862Z"
}
},
"outputs": [
Expand All @@ -218,19 +218,9 @@
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": [
"<cleopatra.array_glyph.ArrayGlyph at 0x1c9712f9880>"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 7
"execution_count": 11
},
{
"cell_type": "code",
Expand Down
31 changes: 12 additions & 19 deletions examples/notebooks/south-america.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@
{
"metadata": {
"ExecuteTime": {
"end_time": "2024-12-08T20:53:39.803546Z",
"start_time": "2024-12-08T20:53:38.893215Z"
"end_time": "2024-12-08T21:05:11.703489Z",
"start_time": "2024-12-08T21:05:11.457171Z"
}
},
"cell_type": "code",
"source": "dataset.plot()",
"source": "glyph = dataset.plot()",
"id": "faf1ea9faa725890",
"outputs": [
{
Expand All @@ -80,19 +80,9 @@
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": [
"<cleopatra.array_glyph.ArrayGlyph at 0x2a7c3425820>"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 3
"execution_count": 36
},
{
"metadata": {},
Expand Down Expand Up @@ -1158,12 +1148,15 @@
{
"metadata": {
"ExecuteTime": {
"end_time": "2024-12-08T20:54:35.252771Z",
"start_time": "2024-12-08T20:54:35.247254Z"
"end_time": "2024-12-08T21:06:17.538866Z",
"start_time": "2024-12-08T21:06:17.534382Z"
}
},
"cell_type": "code",
"source": "arr",
"source": [
"# NBVAL_IGNORE_OUTPUT\n",
"arr"
],
"id": "c7db63cf1b26288b",
"outputs": [
{
Expand All @@ -1179,12 +1172,12 @@
" dtype=float32)"
]
},
"execution_count": 30,
"execution_count": 37,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 30
"execution_count": 37
},
{
"metadata": {
Expand Down

0 comments on commit d3218b6

Please sign in to comment.