Skip to main content

Python wrapper for Madrigal.jl - access the Madrigal database via Julia

Project description

Madrigal

Python wrapper for Madrigal.jl - access the Madrigal upper atmospheric science database from Python.

Installation

With pip (requires Julia to be installed separately):

pip install madrigal-jl

With pixi (installs Julia automatically):

pixi add madrigal-jl

The Julia package installs automatically on first use.

Usage

import madrigal

# Get all instruments
instruments = madrigal.get_instruments()

# Get experiments for Millstone Hill radar (kinst=30)
experiments = madrigal.get_experiments(30, "2020-01-01", "2020-01-31")

# Get files from an experiment
files = madrigal.get_experiment_files(experiments[0])

# Download a file
path = madrigal.download_file(files[0])

Configuration

madrigal.set_default_server("https://cedar.openmadrigal.org")
madrigal.set_default_user("Your Name", "email@example.com", "Institution")

API

All functions from Madrigal.jl are available:

  • get_instruments(server=None, source=:cache)
  • get_experiments(code, t0, t1, server=None, source=:cache)
  • get_experiment_files(experiment, server=None, source=:cache)
  • get_experiment_file_parameters(file, server=None)
  • download_file(file, destination=None, format=:hdf5, ...)
  • download_files(inst, kindat, t0, t1, ...)
  • get_metadata(id, server=None)

See the Madrigal.jl documentation for full details.

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

madrigal_jl-0.1.0.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

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

madrigal_jl-0.1.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file madrigal_jl-0.1.0.tar.gz.

File metadata

  • Download URL: madrigal_jl-0.1.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.26.6 CPython/3.14.2 Darwin/23.0.0

File hashes

Hashes for madrigal_jl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 90354eee705c96c12af04a922d8e0cb21c52f61fa7c995a61988117b39a7fcca
MD5 70a7887c3296edda98878ee07ff6ba39
BLAKE2b-256 552cab2deccded20a1e21e5ca4a7a7d64677a6b87ab398e9435ac6003ad51e1b

See more details on using hashes here.

File details

Details for the file madrigal_jl-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: madrigal_jl-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.26.6 CPython/3.14.2 Darwin/23.0.0

File hashes

Hashes for madrigal_jl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ccdd5432552e5e9be7f5b8825d6b4317c16bfb8280555a82e358e1c25cf791ee
MD5 b951eebb823a996535648e9bb7e6806d
BLAKE2b-256 476a55da73af26873a356808046fc6078f173991c779fa79e3e18baa4e19dfad

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