@@ -24,6 +24,7 @@ def list_sample_data():
24
24
"""
25
25
names = {
26
26
"bathymetry" : "Table of ship bathymetric observations off Baja California" ,
27
+ "compositions" : "Table of rock sample compositions" ,
27
28
"earth_relief_holes" : "Regional 20 arc-minute Earth relief grid with holes" ,
28
29
"fractures" : "Table of hypothetical fracture lengths and azimuths" ,
29
30
"hotspots" : "Table of locations, names, and symbol sizes of hotpots from "
@@ -70,6 +71,7 @@ def load_sample_data(name):
70
71
# Dictionary of public load functions for backwards compatibility
71
72
load_func_old = {
72
73
"bathymetry" : load_sample_bathymetry ,
74
+ "compositions" : load_sample_compositions ,
73
75
"fractures" : load_fractures_compilation ,
74
76
"hotspots" : load_hotspots ,
75
77
"japan_quakes" : load_japan_quakes ,
@@ -359,6 +361,21 @@ def load_mars_shape(**kwargs):
359
361
)
360
362
return data
361
363
364
+ def load_sample_compositions (** kwargs ):
365
+ """
366
+ Loads the remote file @ternary.txt.
367
+
368
+ Returns
369
+ -------
370
+ data : pandas.DataFrame
371
+ The data table with columns "a", "b", "c", "z".
372
+ """
373
+
374
+ fname = which ("@ternary.txt" , download = "c" )
375
+ data = pd .read_csv (
376
+ fname , sep = "\t " , header = None , names = ["a" , "b" , "c" , "z" ]
377
+ )
378
+ return data
362
379
363
380
def _load_notre_dame_topography ():
364
381
"""
0 commit comments