Skip to main content

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 Codecov branch Codecov branch

So why would I want to use this?

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

>>> import earthchem
>>> q = earthchem.Query(
        author='barnes',
        geologicalage='archean'
    )
>>> q.count()
876

Nice, let's take a look at the compositions of these

>>> df = q.dataframe()
>>> df.head()
Downloading pages: 100%|██████████| 18/18 [00:29<00:00,  1.66s/it]

Table output

Hmm looks like Dr Barnes is a bit of a komatiite expert

>>> fig = df.mgo.hist()
>>> fig.set_xlabel('MgO (wt %)')
>>> fig.set_ylabel('Sample count')

Plot output

Maybe we'd like to see this as a ternary plot instead...

>>> earthchem.plot.ternaryplot(df, components=['mgo', 'al2o3', 'cao'])

Plot output

If spiderplots are more your thing we have you covered too (although we have to make up some data for this one...):

>>> reels = ec.geochem.REE(output='string')
>>> df = pd.DataFrame({k: v for k,v in zip(reels, np.random.rand(len(reels), 2))})
>>> ec.plot.spiderplot(df)

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.

Metadata

Release files for earthchem 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for earthchem 0.0.5
File Size Uploaded
earthchem-0.0.5.macosx-10.9-x86_64.tar.gz 63.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for earthchem 0.0.5
File Interpreter ABI Platform
earthchem-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 119.3 kB

Release files / earthchem-0.0.5.macosx-10.9-x86_64.tar.gz

Download URL earthchem-0.0.5.macosx-10.9-x86_64.tar.gz
Size 63.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d8b04f449d7bc5dbaced1927543dc4982fb1d3361b90cc7078eeb2ce3ed0080d
BLAKE2b-256 checksum
How to use checksums
0b8331210a918bd577ce4bb0d71066742b34924eef5f087b45003aabfbe3f94d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / earthchem-0.0.5-py3-none-any.whl

Download URL earthchem-0.0.5-py3-none-any.whl
Size 55.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6253962eaa288add6b706cf0e2a89d9ece25adac4192e157b1b0cc3ffdada22a
BLAKE2b-256 checksum
How to use checksums
fa28cfb14a86aa6437842cad5f69a2ca7e4169fdeda360358e555ad3a9e27c11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

3 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page