Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 2.37 KB

README.md

File metadata and controls

49 lines (31 loc) · 2.37 KB

Earthchem & PyData

PyPI GitHub license

This project wraps the Earthchem web services to provide easy access to geochemical data from IEDA in ready-to-use format in your favourite PyData environment.

Maintainer: Jess Robertson (jesse.robertson at csiro.au)

Service master develop
Test status Build Status Build Status
Test coverage Coverage Status Coverage Status

So why would I want to use this?

Say you wanted to know how many samples have been submitted to IEDA by your colleague named Dr Barnes:

>>> from earthchem.query import RESTClientQuery
>>> q = RESTClientQuery(author='barnes')
>>> q.count()

4902

That's a lot of samples. Can we see the compositions of the first 50 say?

>>> df = q.dataframe()
>>> df.head()

Table output

Great, so now I can make some little plots right?

>>> df.plot('al2o3', 'sio2', 'scatter')

Plot output

Great, I'm sold. How do I get it?

Provided you have python installed, this library is just a pip install earthchem away.

If you don't have Python we recommend taking a look at the marvellous Anaconda distribution - just pick your relevant platform download from here.