Earthchem & PyData
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 | ||
| Test coverage |
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]
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')
Maybe we'd like to see this as a ternary plot instead...
>>> earthchem.plot.ternaryplot(df, components=['mgo', 'al2o3', 'cao'])
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)
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| earthchem-0.0.5.macosx-10.9-x86_64.tar.gz | 63.5 kB | Without provenance | Details for earthchem-0.0.5.macosx-10.9-x86_64.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| earthchem-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for earthchem-0.0.5-py3-none-any.whl |
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 |
Security for earthchem 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.