Skip to main content

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


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.2.tar.gz (9.2 kB view details)

Uploaded Source

File details

Details for the file intermag-0.0.2.tar.gz.

File metadata

  • Download URL: intermag-0.0.2.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

Hashes for intermag-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bae79cd6bec979282cce384d0bb91a3de81eec91f46aaa6b7fa0ba21c18d3562
MD5 cbfcd740da4670c9d0946c4cad98686e
BLAKE2b-256 dc21c9e16f021a73e242147d4242e518c4e682989e518895eb088eade84da03d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page