# intermag
Python library to auto-download, manipulate, and process magnetic data from INTERMAGNET sites
## Example Python Script
``` python
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
``` cmd
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
```
``` cmd
python intermagnet -l BOU -y 2025 -m 1 -d 1 -u 1 -p True -s <dataset file path>
```
Raw data
{
"_id": null,
"home_page": "https://github.com/PowerBroker2/intermag",
"name": "intermag",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "War Thunder",
"author": "Power_Broker",
"author_email": "gitstuff2@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/dc/21/c9e16f021a73e242147d4242e518c4e682989e518895eb088eade84da03d/intermag-0.0.2.tar.gz",
"platform": null,
"description": "# intermag\r\n\r\nPython library to auto-download, manipulate, and process magnetic data from INTERMAGNET sites\r\n\r\n## Example Python Script\r\n\r\n``` python\r\nimport datetime as dt\r\nimport intermag as im\r\n\r\n\r\nds = im.IM_Dataset()\r\nds.download_dataset(iaga_code = 'BOU',\r\n start_date = dt.datetime(2025, 1, 1),\r\n load_dataset = True,\r\n num_days = 2,\r\n save_dir = os.path.dirname(__file__))\r\n\r\nprint(ds.attrs())\r\nprint(ds.data())\r\n\r\nds.plot_data()\r\n```\r\n\r\n## Command Line Usage\r\n\r\n``` cmd\r\noptions:\r\n -h, --help show this help message and exit\r\n -l, --loc IAGA location code (3-letter)\r\n -y, --year Start year of dataset\r\n -m, --month Start month of dataset\r\n -d, --day DAY Start day of dataset\r\n -u, --dur DUR Duration of dataset in whole number of days\r\n -p, --plot Bool of whether or not to plot the dataset\r\n -s, --savedir Directory to save the dataset to\r\n```\r\n\r\n``` cmd\r\npython intermagnet -l BOU -y 2025 -m 1 -d 1 -u 1 -p True -s <dataset file path>\r\n```\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Python library to auto-download, manipulate, and process magnetic data from INTERMAGNET sites",
"version": "0.0.2",
"project_urls": {
"Download": "https://github.com/PowerBroker2/intermag/archive/0.0.2.tar.gz",
"Homepage": "https://github.com/PowerBroker2/intermag"
},
"split_keywords": [
"war",
"thunder"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "dc21c9e16f021a73e242147d4242e518c4e682989e518895eb088eade84da03d",
"md5": "cbfcd740da4670c9d0946c4cad98686e",
"sha256": "bae79cd6bec979282cce384d0bb91a3de81eec91f46aaa6b7fa0ba21c18d3562"
},
"downloads": -1,
"filename": "intermag-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "cbfcd740da4670c9d0946c4cad98686e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9235,
"upload_time": "2025-01-30T03:39:14",
"upload_time_iso_8601": "2025-01-30T03:39:14.787427Z",
"url": "https://files.pythonhosted.org/packages/dc/21/c9e16f021a73e242147d4242e518c4e682989e518895eb088eade84da03d/intermag-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-30 03:39:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "PowerBroker2",
"github_project": "intermag",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "intermag"
}