@@ -31,6 +31,7 @@ def list_sample_data():
31
31
"japan_quakes" : "Table of earthquakes around Japan from NOAA NGDC database" ,
32
32
"mars_shape" : "Table of topographic signature of the hemispheric dichotomy of "
33
33
" Mars from Smith and Zuber (1996)" ,
34
+ "maunaloa_co2" : "Table of CO2 readings from Mauna Loa" ,
34
35
"ocean_ridge_points" : "Table of ocean ridge points for the entire world" ,
35
36
"notre_dame_topography" : "Table 5.11 in Davis: Statistics and Data Analysis in Geology" ,
36
37
"usgs_quakes" : "Table of global earthquakes from the USGS" ,
@@ -80,6 +81,7 @@ def load_sample_data(name):
80
81
# Dictionary of private load functions
81
82
load_func = {
82
83
"earth_relief_holes" : _load_earth_relief_holes ,
84
+ "maunaloa_co2" : _load_maunaloa_co2 ,
83
85
"notre_dame_topography" : _load_notre_dame_topography ,
84
86
}
85
87
@@ -371,6 +373,21 @@ def _load_notre_dame_topography():
371
373
return pd .read_csv (fname , sep = r"\s+" , header = None , names = ["x" , "y" , "z" ])
372
374
373
375
376
+ def _load_maunaloa_co2 ():
377
+ """
378
+ Load a table of CO2 values from Mauna Loa.
379
+
380
+ Returns
381
+ -------
382
+ data : pandas.DataFrame
383
+ The data table with columns "date" and "co2_ppm".
384
+ """
385
+ fname = which ("@MaunaLoa_CO2.txt" , download = "c" )
386
+ return pd .read_csv (
387
+ fname , header = None , skiprows = 1 , sep = r"\s+" , names = ["date" , "co2_ppm" ]
388
+ )
389
+
390
+
374
391
def _load_earth_relief_holes ():
375
392
"""
376
393
Loads the remote file @earth_relief_20m_holes.grd.
0 commit comments