Skip to content

Commit 1872ad0

Browse files
committed
📈 Cascade plots of a few subglacial lakes
Not to be confused with waterfall plots, nor anything really. This is still a fairly basic graph showing an inferred cascade of Whillans 7 -> Whillans IX -> Subglacial Lake Whillans -> Whillans 12. The numbers don't quite sum up perfectly on the chart, so I might need to look at a few more adjacent lakes. This should do for now though!
1 parent fe281f1 commit 1872ad0

File tree

3 files changed

+94
-1
lines changed

3 files changed

+94
-1
lines changed

atlxi_xover.ipynb

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,60 @@
430430
"fig.show()"
431431
]
432432
},
433+
{
434+
"cell_type": "code",
435+
"execution_count": null,
436+
"metadata": {},
437+
"outputs": [],
438+
"source": []
439+
},
440+
{
441+
"cell_type": "markdown",
442+
"metadata": {},
443+
"source": [
444+
"## Combined ice volume displacement plot\n",
445+
"\n",
446+
"Showing how subglacial water cascades down a drainage basin!"
447+
]
448+
},
449+
{
450+
"cell_type": "code",
451+
"execution_count": null,
452+
"metadata": {
453+
"lines_to_next_cell": 0
454+
},
455+
"outputs": [],
456+
"source": [
457+
"fig = pygmt.Figure()\n",
458+
"fig.basemap(\n",
459+
" region=f\"2019-02-28/2020-09-30/-0.3/0.5\",\n",
460+
" frame=[\"wSnE\", \"xaf\", 'yaf+l\"Ice Volume Displacement (km@+3@+)\"'],\n",
461+
")\n",
462+
"pygmt.makecpt(cmap=\"davosS\", color_model=\"+c\", series=(-2, 4, 0.5))\n",
463+
"for i, (_placename, linestyle) in enumerate(\n",
464+
" iterable=zip(\n",
465+
" [\"whillans_ix\", \"subglacial_lake_whillans\", \"whillans_12\", \"whillans_7\"],\n",
466+
" [\"\", \".-\", \"-\", \"..-\"],\n",
467+
" )\n",
468+
"):\n",
469+
" fig.plot(\n",
470+
" data=f\"figures/{_placename}/ice_dvol_dt_{_placename}.txt\",\n",
471+
" cmap=True,\n",
472+
" pen=f\"thick,{linestyle}\",\n",
473+
" zvalue=i,\n",
474+
" label=_placename,\n",
475+
" columns=\"0,3\", # time column (0), ice_dvol column (3)\n",
476+
" )\n",
477+
"fig.text(\n",
478+
" position=\"TL\",\n",
479+
" offset=\"j0.2c\",\n",
480+
" text=\"Whillans Ice Stream Central Catchment active subglacial lakes\",\n",
481+
")\n",
482+
"fig.legend(position=\"jML+jML+o0.2c\", box=\"+gwhite\")\n",
483+
"fig.savefig(\"figures/cascade_whillans_ice_stream.png\")\n",
484+
"fig.show()"
485+
]
486+
},
433487
{
434488
"cell_type": "code",
435489
"execution_count": null,

atlxi_xover.py

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
)
114114
df_lake: pd.DataFrame = df_lake.loc[gdf_lake.within(lake.geometry)] # polygon subset
115115

116+
116117
# %%
117118
# Run crossover analysis on all tracks
118119
track_dict: dict = deepicedrain.split_tracks(df=df_lake)
@@ -222,7 +223,6 @@
222223
fig.savefig(f"figures/{placename}/crossover_area_{placename}_{min_date}_{max_date}.png")
223224
fig.show()
224225

225-
226226
# %% [markdown]
227227
# ### Plot Crossover Elevation time-series
228228
#
@@ -320,3 +320,40 @@
320320
fig.show()
321321

322322
# %%
323+
324+
# %% [markdown]
325+
# ## Combined ice volume displacement plot
326+
#
327+
# Showing how subglacial water cascades down a drainage basin!
328+
329+
# %%
330+
fig = pygmt.Figure()
331+
fig.basemap(
332+
region=f"2019-02-28/2020-09-30/-0.3/0.5",
333+
frame=["wSnE", "xaf", 'yaf+l"Ice Volume Displacement (km@+3@+)"'],
334+
)
335+
pygmt.makecpt(cmap="davosS", color_model="+c", series=(-2, 4, 0.5))
336+
for i, (_placename, linestyle) in enumerate(
337+
iterable=zip(
338+
["whillans_ix", "subglacial_lake_whillans", "whillans_12", "whillans_7"],
339+
["", ".-", "-", "..-"],
340+
)
341+
):
342+
fig.plot(
343+
data=f"figures/{_placename}/ice_dvol_dt_{_placename}.txt",
344+
cmap=True,
345+
pen=f"thick,{linestyle}",
346+
zvalue=i,
347+
label=_placename,
348+
columns="0,3", # time column (0), ice_dvol column (3)
349+
)
350+
fig.text(
351+
position="TL",
352+
offset="j0.2c",
353+
text="Whillans Ice Stream Central Catchment active subglacial lakes",
354+
)
355+
fig.legend(position="jML+jML+o0.2c", box="+gwhite")
356+
fig.savefig("figures/cascade_whillans_ice_stream.png")
357+
fig.show()
358+
359+
# %%

deepicedrain/features/subglacial_lakes.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,6 @@ Feature: Mapping Antarctic subglacial lakes
6161
Examples:
6262
| lake_name | location |
6363
| Whillans 7 | whillans_upstream |
64+
# | Whillans IX | whillans_upstream |
65+
# | Subglacial Lake Whillans | whillans_downstream |
6466
| Whillans 12 | whillans_downstream |

0 commit comments

Comments
 (0)