tools-python
Additional tools to support hapiclient, including merge, etc. Currently consists of 'merge_hapi()' and 'hapi_to_df()'. Cloud HAPI coming soon. Assuming you have fetched 2 HAPI datasets and their metadata using hapiclient ( dataA, metaA and dataB, metaB):
merged_data, merged_meta = hapiutils.merge_hapi(dataA, metaA, dataB, metaB, round_to_sec=True)
Useful to feed into hapi-nn (see https://github.com/hapi-server/application-neuralnetwork-python)
Also, you can cast HAPI data into a Pandas dataframe with:
hapidf = hapi_to_df(dataA)
Full example:
from hapiclient import hapi
from hapiplot import hapiplot
import hapiutils
opts = {'logging': False, 'usecache': True, 'cachedir': './hapicache' }
start = '2013-01-01T00:00:54Z'
stop = '2013-01-01T06:00:54.000Z'
serverA, datasetA, parametersA = 'https://cdaweb.gsfc.nasa.gov/hapi', 'OMNI2_H0_MRG1HR', 'DST1800'
serverB, datasetB, parametersB = "https://imag-data.bgs.ac.uk/GIN_V1/hapi", "cki/best-avail/PT1M/hdzf", "Field_Vector"
dataA, metaA = hapi(serverA, datasetA, parametersA, start, stop, **opts)
dataB, metaB = hapi(serverB, datasetB, parametersB, start, stop, **opts)
newAB, metaAB = hapiutils.merge_hapi(dataA, metaA, dataB, metaB, True)
hapiplot(newAB, metaAB)
Metadata
Release files for hapiutils 0.1
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 |
|---|---|---|---|---|
| hapiutils-0.1.tar.gz | 4.9 kB | Without provenance | Details for hapiutils-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hapiutils-0.1-py3-none-any.whl | Python 3 | none | any | Details for hapiutils-0.1-py3-none-any.whl |
Total release size: 9.3 kB
Release files / hapiutils-0.1.tar.gz
| Download URL | hapiutils-0.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3c9504b0991ffc0b99acde1f4be5d6d912eb4273ef2ac021d84340225880cfa
|
|
BLAKE2b-256 checksum How to use checksums |
7050aa82ea551ebf1c8024d47efb4f9128b0cebcaa59b6603e22d02ae6c37e1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / hapiutils-0.1-py3-none-any.whl
| Download URL | hapiutils-0.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd94bb642d6c111575352e6a591add9af7d0c628f8fafc822bc6681cbc82d651
|
|
BLAKE2b-256 checksum How to use checksums |
ec0dd70c3c5963dfd00c42bd51042c419b07ca2c20a5232a6aba59f9df61ba61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for hapiutils 0.1
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.