Skip to content

Commit

Permalink
Load module added (#11)
Browse files Browse the repository at this point in the history
* relevant figures added

* summary written

* ref formatting changed

* load module added
  • Loading branch information
PennyHow authored May 22, 2024
1 parent 0d85a0a commit ca3ce57
Show file tree
Hide file tree
Showing 14 changed files with 332 additions and 120 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ other/hagen_brae/*
other/lake_temperature/*
other/south_greenland/*
src/griml/examples/*
*.drawio
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added other/reporting/griml_bimonthly_may24.pdf
Binary file not shown.
92 changes: 72 additions & 20 deletions paper/paper.bib
Original file line number Diff line number Diff line change
@@ -1,29 +1,81 @@

@article{fausto-programme-2021,
title = {{Programme} for {Monitoring} of the {Greenland} {Ice} {Sheet} ({PROMICE}) automatic weather station data},
volume = {13},
issn = {1866-3508},
url = {https://essd.copernicus.org/articles/13/3819/2021/},
doi = {10.5194/essd-13-3819-2021},
language = {English},
number = {8},
urldate = {2022-12-15},
journal = {Earth System Science Data},
author = {Fausto, Robert S. and van As, Dirk and Mankoff, Kenneth D. and Vandecrux, Baptiste and Citterio, Michele and Ahlstrøm, Andreas P. and Andersen, Signe B. and Colgan, William and Karlsson, Nanna B. and Kjeldsen, Kristian K. and Korsgaard, Niels J. and Larsen, Signe H. and Nielsen, Søren and Pedersen, Allan Ø and Shields, Christopher L. and Solgaard, Anne M. and Box, Jason E.},
year = {2021},
note = {Publisher: Copernicus GmbH},
pages = {3819--3845},
@article{wilkinson_fair_2016,
title = {The {FAIR} {Guiding} {Principles} for scientific data management and stewardship},
volume = {3},
copyright = {2016 The Author(s)},
issn = {2052-4463},
url = {https://www.nature.com/articles/sdata201618},
doi = {10.1038/sdata.2016.18},
abstract = {There is an urgent need to improve the infrastructure supporting the reuse of scholarly data. A diverse set of stakeholders—representing academia, industry, funding agencies, and scholarly publishers—have come together to design and jointly endorse a concise and measureable set of principles that we refer to as the FAIR Data Principles. The intent is that these may act as a guideline for those wishing to enhance the reusability of their data holdings. Distinct from peer initiatives that focus on the human scholar, the FAIR Principles put specific emphasis on enhancing the ability of machines to automatically find and use the data, in addition to supporting its reuse by individuals. This Comment is the first formal publication of the FAIR Principles, and includes the rationale behind them, and some exemplar implementations in the community.},
language = {en},
number = {1},
urldate = {2024-05-17},
journal = {Scientific Data},
author = {Wilkinson, Mark D. and Dumontier, Michel and Aalbersberg, IJsbrand Jan and Appleton, Gabrielle and Axton, Myles and Baak, Arie and Blomberg, Niklas and Boiten, Jan-Willem and da Silva Santos, Luiz Bonino and Bourne, Philip E. and Bouwman, Jildau and Brookes, Anthony J. and Clark, Tim and Crosas, Mercè and Dillo, Ingrid and Dumon, Olivier and Edmunds, Scott and Evelo, Chris T. and Finkers, Richard and Gonzalez-Beltran, Alejandra and Gray, Alasdair J. G. and Groth, Paul and Goble, Carole and Grethe, Jeffrey S. and Heringa, Jaap and ’t Hoen, Peter A. C. and Hooft, Rob and Kuhn, Tobias and Kok, Ruben and Kok, Joost and Lusher, Scott J. and Martone, Maryann E. and Mons, Albert and Packer, Abel L. and Persson, Bengt and Rocca-Serra, Philippe and Roos, Marco and van Schaik, Rene and Sansone, Susanna-Assunta and Schultes, Erik and Sengstag, Thierry and Slater, Ted and Strawn, George and Swertz, Morris A. and Thompson, Mark and van der Lei, Johan and van Mulligen, Erik and Velterop, Jan and Waagmeester, Andra and Wittenburg, Peter and Wolstencroft, Katherine and Zhao, Jun and Mons, Barend},
month = mar,
year = {2016},
note = {Publisher: Nature Publishing Group},
keywords = {Publication characteristics, Research data},
pages = {160018},
file = {Full Text PDF:/home/pho/Zotero/storage/2YD97CTA/Wilkinson et al. - 2016 - The FAIR Guiding Principles for scientific data ma.pdf:application/pdf},
}

@article{how-greenland-2021,
@article{how_greenland-wide_2021,
title = {Greenland-wide inventory of ice marginal lakes using a multi-method approach},
volume = {11},
url = {https://doi.org/10.1038/s41598-021-83509-1},
copyright = {2021 The Author(s)},
issn = {2045-2322},
url = {https://www.nature.com/articles/s41598-021-83509-1},
doi = {10.1038/s41598-021-83509-1},
language = {English},
number = {4481},
urldate = {2022-02-24},
abstract = {Ice marginal lakes are a dynamic component of terrestrial meltwater storage at the margin of the Greenland Ice Sheet. Despite their significance to the sea level budget, local flood hazards and bigeochemical fluxes, there is a lack of Greenland-wide research into ice marginal lakes. Here, a detailed multi-sensor inventory of Greenland’s ice marginal lakes is presented based on three well-established detection methods to form a unified remote sensing approach. The inventory consists of 3347 (\$\${\textbackslash}pm 8\$\$\%) ice marginal lakes (\$\${\textgreater}0.05{\textbackslash},\{\{{\textbackslash}text\{ km \}\}{\textasciicircum}\{2\}\}\$\$) detected for the year 2017. The greatest proportion of lakes lie around Greenland’s ice caps and mountain glaciers, and the southwest margin of the ice sheet. Through comparison to previous studies, a \$\${\textbackslash}sim 75\$\$\% increase in lake frequency is evident over the west margin of the ice sheet since 1985. This suggests it is becoming increasingly important to include ice marginal lakes in future sea level projections, where these lakes will form a dynamic storage of meltwater that can influence outlet glacier dynamics. Comparison to existing global glacial lake inventories demonstrate that up to 56\% of ice marginal lakes could be unaccounted for in global estimates of ice marginal lake change, likely due to the reliance on a single lake detection method.},
language = {en},
number = {1},
urldate = {2024-05-17},
journal = {Scientific Reports},
author = {How, Penelope and Messerli, Alexandra and Mätzler, Eva and Santoro, Maurizio and Wiesmann, Andreas and Caduff, Rafael and Langley, Kirsty and Bojesen, Mikkel Høegh and Paul, Frank and Kääb, Andreas and Carrivick, Jonathan L.},
month = feb,
year = {2021},
}
note = {Publisher: Nature Publishing Group},
keywords = {Cryospheric science, Hydrology},
pages = {4481},
file = {Full Text PDF:/home/pho/Zotero/storage/48EXCPRT/How et al. - 2021 - Greenland-wide inventory of ice marginal lakes usi.pdf:application/pdf},
}

@article{shugar_rapid_2020,
title = {Rapid worldwide growth of glacial lakes since 1990},
volume = {10},
copyright = {2020 The Author(s), under exclusive licence to Springer Nature Limited},
issn = {1758-6798},
url = {https://www.nature.com/articles/s41558-020-0855-4},
doi = {10.1038/s41558-020-0855-4},
abstract = {Glacial lakes are rapidly growing in response to climate change and glacier retreat. The role of these lakes as terrestrial storage for glacial meltwater is currently unknown and not accounted for in global sea level assessments. Here, we map glacier lakes around the world using 254,795 satellite images and use scaling relations to estimate that global glacier lake volume increased by around 48\%, to 156.5 km3, between 1990 and 2018. This methodology provides a near-global database and analysis of glacial lake extent, volume and change. Over the study period, lake numbers and total area increased by 53 and 51\%, respectively. Median lake size has increased 3\%; however, the 95th percentile has increased by around 9\%. Currently, glacial lakes hold about 0.43 mm of sea level equivalent. As glaciers continue to retreat and feed glacial lakes, the implications for glacial lake outburst floods and water resources are of considerable societal and ecological importance.},
language = {en},
number = {10},
urldate = {2024-05-17},
journal = {Nature Climate Change},
author = {Shugar, Dan H. and Burr, Aaron and Haritashya, Umesh K. and Kargel, Jeffrey S. and Watson, C. Scott and Kennedy, Maureen C. and Bevington, Alexandre R. and Betts, Richard A. and Harrison, Stephan and Strattman, Katherine},
month = oct,
year = {2020},
note = {Publisher: Nature Publishing Group},
keywords = {Climate-change impacts, Cryospheric science, Hydrology},
pages = {939--945},
}

@article{rick_dam_2022,
title = {Dam type and lake location characterize ice-marginal lake area change in {Alaska} and {NW} {Canada} between 1984 and 2019},
volume = {16},
issn = {1994-0416},
url = {https://tc.copernicus.org/articles/16/297/2022/},
doi = {10.5194/tc-16-297-2022},
abstract = {Ice-marginal lakes impact glacier mass balance, water resources, and ecosystem dynamics and can produce catastrophic glacial lake outburst floods (GLOFs) via sudden drainage. Multitemporal inventories of ice-marginal lakes are a critical first step in understanding the drivers of historic change, predicting future lake evolution, and assessing GLOF hazards. Here, we use Landsat-era satellite imagery and supervised classification to semi-automatically delineate lake outlines for four ∼5-year time periods between 1984 and 2019 in Alaska and northwest Canada. Overall, ice-marginal lakes in the region have grown in total number (+183 lakes, 38 \% increase) and area (+483 km2, 59 \% increase) between the time periods of 1984–1988 and 2016–2019. However, changes in lake numbers and area were notably unsteady and nonuniform. We demonstrate that lake area changes are connected to dam type (moraine, bedrock, ice, or supraglacial) and topological position (proglacial, detached, unconnected, ice, or supraglacial), with important differences in lake behavior between the sub-groups. In strong contrast to all other dam types, ice-dammed lakes decreased in number (six fewer, 9 \% decrease) and area (−51 km2, 40 \% decrease), while moraine-dammed lakes increased (56 more, 26 \% and +479 km2, 87 \% increase for number and area, respectively) at a faster rate than the average when considering all dam types together. Proglacial lakes experienced the largest area changes and rate of change out of any lake position throughout the period of study and moraine-dammed lakes which experienced the largest increases are associated with clean-ice glaciers (\<19 \% debris cover). By tracking individual lakes through time and categorizing lakes by dam type, subregion, and topological position, we are able to parse trends that would otherwise be aliased if these characteristics were not considered. This work highlights the importance of such lake characterization when performing ice-marginal lake inventories and provides insight into the physical processes driving recent ice-marginal lake evolution.},
language = {English},
number = {1},
urldate = {2024-05-17},
journal = {The Cryosphere},
author = {Rick, Brianna and McGrath, Daniel and Armstrong, William and McCoy, Scott W.},
month = jan,
year = {2022},
note = {Publisher: Copernicus GmbH},
pages = {297--314},
file = {Full Text PDF:/home/pho/Zotero/storage/SW8L4RIG/Rick et al. - 2022 - Dam type and lake location characterize ice-margin.pdf:application/pdf},
}
26 changes: 21 additions & 5 deletions paper/paper.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "GrIML: A Python package for investigating Greenland's ice marginal lakes under a changing climate"
tags:
- Python
- python
- glaciology
- remote sensing
- greenland
Expand All @@ -12,7 +12,7 @@ authors:
corresponding: true
affiliation: 1
affiliations:
- name: Department of Glaciology and Climate, Geological Survey of Denmark and Greenland (GEUS), Copenhagen, Denmark
- name: Department of Glaciology and Climate, Geological Survey of Denmark and Greenland (GEUS), Nuuk, Greenland
index: 1

date: 01 September 2024
Expand All @@ -22,15 +22,31 @@ bibliography: paper.bib

# Summary

The **GrIML** processing package is for classifying water bodies from satellite imagery using a multi-sensor, multi-method remote sensing approach. This workflow is part of the [ESA GrIML project](https://eo4society.esa.int/projects/griml/) (Investigating Greenland's ice marginal lakes under a changing climate).
The `GrIML` Python package is for the post-processing of classified water bodies from satellite imagery. Initial rasterised binary classifications denoting water bodies can be inputted to `GrIML` to convert, filter and merge into a cohesive ice marginal lake vector dataset, populated with useful metadata and analysed with relevant statistical information (\autoref{fig:workflow}).

Sea level is predicted to rise drastically by 2100, with significant contribution from the melting of the Greenland Ice Sheet (GrIS). In these predictions, melt runoff is assumed to contribute directly to sea level change, with little consideration for meltwater storage at the terrestrial margin of the ice sheet; such as ice marginal lakes.
![An overview of the GrIML Python package workflow \label{fig:workflow}](https://github.com/PennyHow/GrIML/blob/joss-paper/other/reporting/figures/griml_workflow_without_gee.png?raw=true)

In 2017, 3347 ice marginal lakes were identified in Greenland along the ice margin ([How et al., 2021](https://www.nature.com/articles/s41598-021-83509-1), see map figure for all mapped lakes). Globally, these ice marginal lakes hold up to 0.43 mm of sea level equivalent, which could have a marked impact on future predictions ([Shugar et al., 2021](https://www.nature.com/articles/s41558-020-0855-4)). Therefore, they need to be monitored to understand how changes in ice marginal lake water storage affect melt contribution, and how their dynamics evolve under a changing climate.
This package is part of the [ESA GrIML project](https://eo4society.esa.int/projects/griml/) (Investigating Greenland's ice marginal lakes under a changing climate), whose aim is to map and monitor ice marginal lakes across Greenland through a series of annual ice marginal lake inventories (2016-2023). This workflow was used to make the inventory series, and will continue to be used to generate inventories in the future.


# Statement of need

`GrIML` meets four main needs to users in the remote sensing and cryospheric science communities:

1. Provide a usable workflow for post-processing of rasterised water body classifications
2. Document the criteria for classifying an ice marginal lake
3. Showcase a transparent workflow that, in turn, produces an open and reproducible ice marginal lake dataset that adheres to the FAIR principles [@wilkinson_fair_2016]
4. Produce inventories that map the areal extent and frequency of ice marginal lakes across Greenland, which demonstrate ice marginal lake evolution under a changing cliamte


- Many different approaches to classifying ice marginal lakes [@shugar_rapid_2020;@rick_dam_2022]
- Previously this workflow was a closed method [@how_greenland-wide_2021]


Sea level is predicted to rise drastically by 2100, with significant contribution from the melting of the Greenland Ice Sheet (GrIS). In these predictions, melt runoff is assumed to contribute directly to sea level change, with little consideration for meltwater storage at the terrestrial margin of the ice sheet; such as ice marginal lakes.

In 2017, 3347 ice marginal lakes were identified in Greenland along the ice margin ([How et al., 2021](https://www.nature.com/articles/s41598-021-83509-1), see map figure for all mapped lakes). Globally, these ice marginal lakes hold up to 0.43 mm of sea level equivalent, which could have a marked impact on future predictions ([Shugar et al., 2021](https://www.nature.com/articles/s41558-020-0855-4)). Therefore, they need to be monitored to understand how changes in ice marginal lake water storage affect melt contribution, and how their dynamics evolve under a changing climate.

`GrIML` proposes to examine ice marginal lake changes across Greenland using a multi-sensor and multi-method remote sensing approach to better address their influence on sea level contribution forecasting.

1. Greenland-wide inventories of ice marginal lakes will be generated for selected years during the satellite era, building upon established classification methods in a unified cloud processing workflow
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
},
keywords="glaciology ice lake ESA",
classifiers=[
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand All @@ -30,6 +32,6 @@
package_dir={"": "src"},
packages=setuptools.find_packages(where="src"),
package_data={"griml.test": ["*"]},
python_requires=">=3.10",
python_requires=">=3.8",
install_requires=['geopandas', 'pandas', 'scipy', 'Shapely', 'rasterio'],
)
19 changes: 15 additions & 4 deletions src/griml/convert/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@
import glob
from pathlib import Path

def convert(indir, outdir, proj, band_info, startdate, enddate, outfile=None):
def convert(indir, proj, band_info, startdate, enddate, outdir=None):
'''Compile features from multiple processings into one geodataframe
Parameters
----------
inlist : list
List of files or geopandas.dataframe.DataFrame objects to merge
Returns
-------
all_gdf : geopandas.dataframe.GeoDataFrame
Compiled goedataframe
'''

# Iterate through files
converted=[]
Expand All @@ -14,18 +26,17 @@ def convert(indir, outdir, proj, band_info, startdate, enddate, outfile=None):
print('\n'+str(count) + '. Converting ' + str(Path(i).name))

# Convert raster to vector
if outfile is not None:
if outdir is not None:
outfile = str(Path(outdir).joinpath(Path(i).stem+'.shp'))
g = raster_to_vector(str(i), proj, band_info, startdate, enddate, None)
print('Saved to '+str(Path(outfile).name))

else:
g = raster_to_vector(str(i), proj, band_info, startdate, enddate, outfile)
g = raster_to_vector(str(i), proj, band_info, startdate, enddate)

converted.append(g)
count=count+1

print('Finished')
return (converted)

if __name__ == "__main__":
Expand Down
Loading

0 comments on commit ca3ce57

Please sign in to comment.