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. diff --git a/data/glaciers.csv b/data/glaciers.csv index 8c7758d..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 @@ -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 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)