From 60e769d1b16e2d3ffedfdaf845ee04a39022cd85 Mon Sep 17 00:00:00 2001 From: Oleg Lavrovsky Date: Fri, 25 Sep 2020 23:09:34 +0200 Subject: [PATCH 1/3] Data update --- data/glaciers.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/glaciers.csv b/data/glaciers.csv index 8c7758d..386ec13 100644 --- a/data/glaciers.csv +++ b/data/glaciers.csv @@ -68,4 +68,4 @@ Year,Mean cumulative mass balance,Number of observations 2011,-26.294,37 2012,-26.93,36 2013,-27.817,31 -2014,-28.652,24 \ No newline at end of file +2014,-28.652,24 From f0d1f0d5bac1a3d8196095589a9545399345c887 Mon Sep 17 00:00:00 2001 From: Oleg Lavrovsky Date: Fri, 25 Sep 2020 23:11:56 +0200 Subject: [PATCH 2/3] Wikipedia link --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 165fda5..ee1bc61 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,14 @@ Average cumulative mass balance of "reference" Glaciers worldwide from 1945-2014 sourced from [US EPA][datahome] and the [World Glacier Monitoring Service (WGMS)][wgms]. -This is cumulative change in mass balance of a set of "reference" glaciers worldwide beginning in 1945. The values represents the average of all the glaciers that were measured. Negative values indicate a net loss of ice and snow compared with the base year of 1945. For consistency, measurements are in meters of water equivalent, which represent changes in the average thickness of a glacier. -[datahome]: http://www3.epa.gov/climatechange/science/indicators/snow-ice/glaciers.html -[wgms]: http://wgms.ch/data_databaseversions/ +This is cumulative change in mass balance of a set of "reference" glaciers worldwide beginning in 1945. The values represent the average of all the glaciers that were measured. Negative values indicate a net loss of ice and snow compared with the base year of 1945. For consistency, measurements are in meters of water equivalent, which represent changes in the average thickness of a glacier. + +See also: [Glacier mass balance](https://en.wikipedia.org/wiki/Glacier_mass_balance) (Wikipedia) ## Data +[datahome]: http://www3.epa.gov/climatechange/science/indicators/snow-ice/glaciers.html +[wgms]: http://wgms.ch/data_databaseversions/ + ### Sources 1. From f4e2adb0528890d7961d515f65b169aacc3ff38b Mon Sep 17 00:00:00 2001 From: Oleg Lavrovsky Date: Fri, 25 Sep 2020 23:15:52 +0200 Subject: [PATCH 3/3] Fix hanging first record --- data/glaciers.csv | 2 +- scripts/process.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/data/glaciers.csv b/data/glaciers.csv index 386ec13..b89e60c 100644 --- a/data/glaciers.csv +++ b/data/glaciers.csv @@ -1,5 +1,5 @@ Year,Mean cumulative mass balance,Number of observations -1945,0, +1945,0,1 1946,-1.13,1 1947,-3.19,1 1948,-3.19,1 diff --git a/scripts/process.py b/scripts/process.py index 8048c65..a9493da 100644 --- a/scripts/process.py +++ b/scripts/process.py @@ -23,6 +23,7 @@ def execute(): records =records[7:] for r in records: r[2] = r[2].strip() + if r[2] is '': r[2] = '1' writer = csv.writer(open(data, 'w'), lineterminator='\n') writer.writerow(header) writer.writerows(records)