Skip to main content

Python client for the MIDL solar wind dataset

Project description

midl

Python client for the MIDL solar wind dataset.

Install

pip install csem-midl

Quickstart

import midl

ds = midl.load("2005-01-01 00:00", "2005-01-01 01:00", 32)
print(ds)
<xarray.Dataset> Size: 4kB
Dimensions:  (time: 61)
Coordinates:
  * time     (time) datetime64[ns] 488B 2005-01-01 ... 2005-01-01T01:00:00
Data variables:
    Bx       (time) float64 488B -6.05 -3.94 -3.7 -3.75 ... -2.01 -1.78 -2.08
    By       (time) float64 488B 3.84 3.5 3.12 2.94 3.2 ... 4.97 5.3 5.29 5.2
    Bz       (time) float64 488B -0.93 -4.06 -4.83 -4.92 ... 1.25 2.04 2.05 2.11
    Ux       (time) float64 488B -422.3 -429.9 -433.6 ... -437.4 -441.8 -441.8
    Uy       (time) float64 488B -13.38 -12.91 -9.05 ... -28.15 -27.06 -26.68
    Uz       (time) float64 488B 26.93 47.59 54.86 54.99 ... 0.46 1.42 0.92
    rho      (time) float64 488B 5.169 5.439 5.481 5.359 ... 6.131 6.363 6.323
    T        (time) float64 488B 1.33e+05 1.321e+05 ... 1.159e+05 1.159e+05
Attributes:
    source:             MIDL
    url:                https://csem.engin.umich.edu/MIDL/
    target:             32Re
    midl_propagation:   {'method': 'ballistic', 'target_re': 32.0}
# 14Re and 32Re Ballistically-propagated data are available for direct download
midl.load("2024-05-10 00:00", "2024-05-11 01:00", 14, method="ballistic")
midl.load("2024-05-10 00:00", "2024-05-11 01:00", 32,method="ballistic") 

# [-70,70]Re MHD-propagated data are available for direct download
midl.load("2024-05-10 00:00", "2024-05-11 01:00", 30, method="mhd")

# Any value can be ballistically propagated client-side
midl.load("2024-05-10 00:00", "2024-05-11 01:00", 20.25,method="ballistic") 

# Data at L1 can be downloaded directly as well 
midl.load("2024-05-10 00:00", "2024-05-11 01:00", "l1")

Client-side MHD propagation is not supported.

Saving to file:

midl.to_csv(ds, "storm.csv")
midl.to_dat(ds, "storm.dat")

Data is cached locally after the first download.

See also

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

csem_midl-0.3.0.tar.gz (6.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

csem_midl-0.3.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file csem_midl-0.3.0.tar.gz.

File metadata

  • Download URL: csem_midl-0.3.0.tar.gz
  • Upload date:
  • Size: 6.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for csem_midl-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3af31ef0d59f18b7ba64c99a30aa4ef3fcf394eecad5a87777cf3b75aebb346e
MD5 40c24a020322a1c45101874fb6156e4e
BLAKE2b-256 72de4d00aea5ab720929067722a8b96c8832cd67ce5e9bb5edb909412f955121

See more details on using hashes here.

File details

Details for the file csem_midl-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: csem_midl-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for csem_midl-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a3a0b204e5c83c824cc78c6ebf77711fc5b6e4eb8b0835af742b9728a304f6a
MD5 66d3dea026d7bb532e0ed03f763caba6
BLAKE2b-256 9506439b60ea9645422ef8acd44eab32212a7ec9640d46ba397db96ff9ff5b35

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