Metadata-Version: 2.4
Name: csem-midl
Version: 0.1.0
Summary: Python client for the MIDL solar wind dataset
Project-URL: Homepage, https://csem.engin.umich.edu/MIDL/
Author: Connor DiMarco
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: pandas>=2.0
Requires-Dist: platformdirs>=3.0
Requires-Dist: requests>=2.28
Requires-Dist: xarray>=2023.1
Provides-Extra: dev
Requires-Dist: pytest>=7; extra == 'dev'
Description-Content-Type: text/markdown

# midl

Python client for the [MIDL solar wind dataset](https://csem.engin.umich.edu/MIDL/).

## Install

```
pip install midl
```

## Quickstart

```python
import midl

ds = midl.load("2015-03-17", "2015-03-18", "32re")
print(ds)

# Save to file
midl.to_csv(ds, "storm.csv")
midl.to_dat(ds, "storm.dat")
```

`midl.load()` returns an `xarray.Dataset` with time coordinate and variables:
Bx, By, Bz (nT), Ux, Uy, Uz (km/s), rho (cm^-3), T (K).

Data is cached locally after the first download.
