intermag
Python library to auto-download, manipulate, and process magnetic data from INTERMAGNET sites
Example Python Script
import datetime as dt
import intermag as im
ds = im.IM_Dataset()
ds.download_dataset(iaga_code = 'BOU',
start_date = dt.datetime(2025, 1, 1),
load_dataset = True,
num_days = 2,
save_dir = os.path.dirname(__file__))
print(ds.attrs())
print(ds.data())
ds.plot_data()
Command Line Usage
options:
-h, --help show this help message and exit
-l, --loc IAGA location code (3-letter)
-y, --year Start year of dataset
-m, --month Start month of dataset
-d, --day DAY Start day of dataset
-u, --dur DUR Duration of dataset in whole number of days
-p, --plot Bool of whether or not to plot the dataset
-s, --savedir Directory to save the dataset to
python intermagnet -l BOU -y 2025 -m 1 -d 1 -u 1 -p True -s <dataset file path>
Metadata
Release files for intermag 0.0.2
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 |
|---|---|---|---|---|
| intermag-0.0.2.tar.gz | 9.2 kB | Without provenance | Details for intermag-0.0.2.tar.gz |
Release files / intermag-0.0.2.tar.gz
| Download URL | intermag-0.0.2.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bae79cd6bec979282cce384d0bb91a3de81eec91f46aaa6b7fa0ba21c18d3562
|
|
BLAKE2b-256 checksum How to use checksums |
dc21c9e16f021a73e242147d4242e518c4e682989e518895eb088eade84da03d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for intermag 0.0.2
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.