Python library to auto-download, manipulate, and process magnetic data from INTERMAGNET sites
Project description
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>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
intermag-0.0.1.tar.gz
(9.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file intermag-0.0.1.tar.gz.
File metadata
- Download URL: intermag-0.0.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abe9c154fade3a2dc59d226a5c0200fcea2b4800554901f33f2c0f596ddc6620
|
|
| MD5 |
9d143d59aee7526460c335e97932f8f0
|
|
| BLAKE2b-256 |
fbd7bc56585656a21420d87d3c86cc779e2734994a1f119bb73a9cca672d5031
|
File details
Details for the file intermag-0.0.1-py3-none-any.whl.
File metadata
- Download URL: intermag-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7688c8c811d6c81806a92c5a11aa97ef912be9ca74b4bcc1496ca6d0649cf19f
|
|
| MD5 |
fba216f99ca6672cd26c9bb963c79222
|
|
| BLAKE2b-256 |
22b41ff6ebac9eed60c7bef6815fe86f0cbb42441a546cbce2ec683329062cc5
|