Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add automatic updates of data #13

Merged
merged 8 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Update Data from NOAA
on:
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:
jobs:
update-data:
runs-on: ubuntu-latest
steps:
- name: Check Out
uses: actions/checkout@v4
- name: Update Data
run: "./scripts/process.sh"
- name: Commit and Push Data
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
6 changes: 0 additions & 6 deletions Makefile

This file was deleted.

6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ CO2 PPM - Trends in Atmospheric Carbon Dioxide. Data are sourced from the US Gov
Run the following script from this directory to download and process the data:

```bash
make data
./scripts/process.sh
```

Most likely works for Unix systems only. (Not Windows compatible)

### Resources

The raw data are output to `./tmp`. The processed data are output to `./data`.
The raw data is output to `./tmp`. (Not committed to the repository, you'll have to clone and run locally) The processed data is output to `./data`.

## License

Expand Down
80 changes: 44 additions & 36 deletions data/co2-annmean-gl.csv
Original file line number Diff line number Diff line change
@@ -1,37 +1,45 @@
Year,Mean,Uncertainty
1980-01-01,338.80,0.10
1981-01-01,339.99,0.10
1982-01-01,340.76,0.10
1983-01-01,342.43,0.10
1984-01-01,343.98,0.10
1985-01-01,345.46,0.10
1986-01-01,346.88,0.10
1987-01-01,348.62,0.10
1988-01-01,351.14,0.10
1989-01-01,352.79,0.10
1990-01-01,353.96,0.10
1991-01-01,355.29,0.10
1992-01-01,355.99,0.10
1993-01-01,356.71,0.10
1994-01-01,358.20,0.10
1995-01-01,360.02,0.10
1996-01-01,361.79,0.10
1997-01-01,362.90,0.10
1998-01-01,365.55,0.10
1999-01-01,367.63,0.10
2000-01-01,368.81,0.10
2001-01-01,370.40,0.10
2002-01-01,372.42,0.10
2003-01-01,374.97,0.10
2004-01-01,376.78,0.10
2005-01-01,378.81,0.10
2006-01-01,380.93,0.10
2007-01-01,382.67,0.10
2008-01-01,384.78,0.10
2009-01-01,386.28,0.10
2010-01-01,388.56,0.10
2011-01-01,390.44,0.10
2012-01-01,392.45,0.10
2013-01-01,395.19,0.10
2014-01-01,397.11,0.10
2015-01-01,399.41,0.10
1979,336.85,0.11
1980,338.91,0.07
1981,340.11,0.09
1982,340.86,0.03
1983,342.53,0.06
1984,344.07,0.08
1985,345.54,0.07
1986,346.97,0.07
1987,348.68,0.10
1988,351.16,0.07
1989,352.79,0.07
1990,354.06,0.07
1991,355.39,0.07
1992,356.09,0.06
1993,356.83,0.07
1994,358.33,0.08
1995,360.17,0.05
1996,361.93,0.04
1997,363.04,0.05
1998,365.70,0.04
1999,367.79,0.05
2000,368.96,0.06
2001,370.57,0.05
2002,372.58,0.04
2003,375.14,0.04
2004,376.95,0.06
2005,378.98,0.05
2006,381.15,0.05
2007,382.90,0.04
2008,385.02,0.05
2009,386.50,0.04
2010,388.76,0.06
2011,390.63,0.05
2012,392.65,0.06
2013,395.40,0.06
2014,397.34,0.05
2015,399.65,0.05
2016,403.07,0.06
2017,405.22,0.07
2018,407.61,0.07
2019,410.07,0.07
2020,412.44,0.06
2021,414.70,0.07
2022,417.07,0.07
123 changes: 65 additions & 58 deletions data/co2-annmean-mlo.csv
Original file line number Diff line number Diff line change
@@ -1,59 +1,66 @@
Year,Mean,Uncertainty
1959-01-01,315.97,0.12
1960-01-01,316.91,0.12
1961-01-01,317.64,0.12
1962-01-01,318.45,0.12
1963-01-01,318.99,0.12
1964-01-01,319.62,0.12
1965-01-01,320.04,0.12
1966-01-01,321.38,0.12
1967-01-01,322.16,0.12
1968-01-01,323.04,0.12
1969-01-01,324.62,0.12
1970-01-01,325.68,0.12
1971-01-01,326.32,0.12
1972-01-01,327.45,0.12
1973-01-01,329.68,0.12
1974-01-01,330.18,0.12
1975-01-01,331.11,0.12
1976-01-01,332.04,0.12
1977-01-01,333.83,0.12
1978-01-01,335.40,0.12
1979-01-01,336.84,0.12
1980-01-01,338.75,0.12
1981-01-01,340.11,0.12
1982-01-01,341.45,0.12
1983-01-01,343.05,0.12
1984-01-01,344.65,0.12
1985-01-01,346.12,0.12
1986-01-01,347.42,0.12
1987-01-01,349.18,0.12
1988-01-01,351.57,0.12
1989-01-01,353.12,0.12
1990-01-01,354.39,0.12
1991-01-01,355.61,0.12
1992-01-01,356.45,0.12
1993-01-01,357.10,0.12
1994-01-01,358.83,0.12
1995-01-01,360.82,0.12
1996-01-01,362.61,0.12
1997-01-01,363.73,0.12
1998-01-01,366.70,0.12
1999-01-01,368.38,0.12
2000-01-01,369.55,0.12
2001-01-01,371.14,0.12
2002-01-01,373.28,0.12
2003-01-01,375.80,0.12
2004-01-01,377.52,0.12
2005-01-01,379.80,0.12
2006-01-01,381.90,0.12
2007-01-01,383.79,0.12
2008-01-01,385.60,0.12
2009-01-01,387.43,0.12
2010-01-01,389.90,0.12
2011-01-01,391.65,0.12
2012-01-01,393.85,0.12
2013-01-01,396.52,0.12
2014-01-01,398.65,0.12
2015-01-01,400.83,0.12
2016-01-01,404.21,0.12
1959,315.98,0.12
1960,316.91,0.12
1961,317.64,0.12
1962,318.45,0.12
1963,318.99,0.12
1964,319.62,0.12
1965,320.04,0.12
1966,321.37,0.12
1967,322.18,0.12
1968,323.05,0.12
1969,324.62,0.12
1970,325.68,0.12
1971,326.32,0.12
1972,327.46,0.12
1973,329.68,0.12
1974,330.19,0.12
1975,331.13,0.12
1976,332.03,0.12
1977,333.84,0.12
1978,335.41,0.12
1979,336.84,0.12
1980,338.76,0.12
1981,340.12,0.12
1982,341.48,0.12
1983,343.15,0.12
1984,344.87,0.12
1985,346.35,0.12
1986,347.61,0.12
1987,349.31,0.12
1988,351.69,0.12
1989,353.20,0.12
1990,354.45,0.12
1991,355.70,0.12
1992,356.54,0.12
1993,357.21,0.12
1994,358.96,0.12
1995,360.97,0.12
1996,362.74,0.12
1997,363.88,0.12
1998,366.84,0.12
1999,368.54,0.12
2000,369.71,0.12
2001,371.32,0.12
2002,373.45,0.12
2003,375.98,0.12
2004,377.70,0.12
2005,379.98,0.12
2006,382.09,0.12
2007,384.02,0.12
2008,385.83,0.12
2009,387.64,0.12
2010,390.10,0.12
2011,391.85,0.12
2012,394.06,0.12
2013,396.74,0.12
2014,398.81,0.12
2015,401.01,0.12
2016,404.41,0.12
2017,406.76,0.12
2018,408.72,0.12
2019,411.65,0.12
2020,414.21,0.12
2021,416.41,0.12
2022,418.53,0.12
2023,421.08,0.12
121 changes: 64 additions & 57 deletions data/co2-gr-gl.csv
Original file line number Diff line number Diff line change
@@ -1,58 +1,65 @@
Year,Annual Increase,Uncertainty
1959-01-01,0.96,0.31
1960-01-01,0.71,0.27
1961-01-01,0.78,0.27
1962-01-01,0.56,0.27
1963-01-01,0.57,0.28
1964-01-01,0.49,0.27
1965-01-01,1.10,0.26
1966-01-01,1.10,0.28
1967-01-01,0.61,0.34
1968-01-01,0.99,0.32
1969-01-01,1.32,0.29
1970-01-01,1.13,0.32
1971-01-01,0.73,0.30
1972-01-01,1.47,0.31
1973-01-01,1.46,0.31
1974-01-01,0.68,0.31
1975-01-01,1.23,0.27
1976-01-01,0.97,0.28
1977-01-01,1.92,0.29
1978-01-01,1.29,0.24
1979-01-01,2.14,0.26
1980-01-01,1.71,0.17
1981-01-01,1.15,0.12
1982-01-01,1.00,0.08
1983-01-01,1.84,0.09
1984-01-01,1.24,0.11
1985-01-01,1.63,0.08
1986-01-01,1.04,0.14
1987-01-01,2.69,0.09
1988-01-01,2.24,0.09
1989-01-01,1.38,0.09
1990-01-01,1.18,0.08
1991-01-01,0.73,0.09
1992-01-01,0.70,0.10
1993-01-01,1.22,0.07
1994-01-01,1.68,0.12
1995-01-01,1.95,0.11
1996-01-01,1.07,0.07
1997-01-01,1.98,0.07
1998-01-01,2.81,0.10
1999-01-01,1.34,0.07
2000-01-01,1.24,0.10
2001-01-01,1.85,0.10
2002-01-01,2.38,0.07
2003-01-01,2.27,0.10
2004-01-01,1.56,0.05
2005-01-01,2.43,0.07
2006-01-01,1.77,0.06
2007-01-01,2.09,0.07
2008-01-01,1.78,0.05
2009-01-01,1.62,0.10
2010-01-01,2.44,0.06
2011-01-01,1.68,0.09
2012-01-01,2.36,0.09
2013-01-01,2.47,0.09
2014-01-01,1.99,0.09
2015-01-01,2.96,0.09
1959,0.96,0.31
1960,0.71,0.27
1961,0.78,0.27
1962,0.56,0.27
1963,0.57,0.28
1964,0.49,0.27
1965,1.10,0.26
1966,1.10,0.28
1967,0.61,0.34
1968,0.99,0.32
1969,1.32,0.29
1970,1.13,0.32
1971,0.73,0.30
1972,1.47,0.31
1973,1.46,0.31
1974,0.68,0.31
1975,1.23,0.27
1976,0.97,0.28
1977,1.92,0.29
1978,1.29,0.24
1979,2.14,0.26
1980,1.71,0.10
1981,1.15,0.05
1982,0.99,0.08
1983,1.83,0.09
1984,1.23,0.11
1985,1.65,0.08
1986,1.02,0.10
1987,2.65,0.09
1988,2.17,0.10
1989,1.47,0.09
1990,1.22,0.07
1991,0.75,0.10
1992,0.71,0.09
1993,1.23,0.07
1994,1.66,0.11
1995,2.00,0.10
1996,1.05,0.08
1997,1.97,0.09
1998,2.84,0.13
1999,1.33,0.09
2000,1.25,0.11
2001,1.85,0.10
2002,2.36,0.07
2003,2.29,0.10
2004,1.56,0.05
2005,2.47,0.07
2006,1.77,0.07
2007,2.12,0.07
2008,1.78,0.05
2009,1.58,0.06
2010,2.41,0.06
2011,1.68,0.07
2012,2.42,0.06
2013,2.45,0.06
2014,2.04,0.07
2015,2.95,0.08
2016,2.83,0.08
2017,2.14,0.09
2018,2.39,0.09
2019,2.52,0.06
2020,2.36,0.08
2021,2.46,0.08
2022,2.16,0.08
Loading