Skip to main content

Millstone Hill Incoherent Scatter Radar Spatial-Linear Ionospheric Modeling Engine

Project description

MISA pySLIME: Ionospheric Background Modeling Toolkit

Millstone Hill Incoherent Scatter Radar Spatial-Linear Ionospheric Modeling Engine


MISA pySLIME is a Python library for building and querying binned‑regression ionospheric background models for ion and electron temperature (Ti/Te) and density (Ne) from Millstone Hill Incoherent Scatter Radar (MISA) data. It supports querying predictions for both lat&lon and alt&azimuth, day of year (DOY), and solar local time (SLT) or universal time (UT), while leveraging pre-computed geophysical indices. The library also supports efficient vectorized predictions for multiple inputs.

Features

  • Predict electron density (Ne), electron temperature (Te), or ion temperature (Ti) for specific geospatial and temporal conditions.
  • Flexibility between querying with lat/lon or UT/SLT
  • Efficient batch predictions using vectorized input arrays for higher performance.
  • Supports querying geophysical indices from provided datasets.

🔧 Installation

Prerequisites

  • Python 3.8+
  • NumPy
  • requests
  • SciKit-Learn
  • Pandas
  • Xarray
  • tqdm
  • SciPy

Installation

You can install this package via pip:

pip install MISA_pySLIME

The model downloads missing dependencies on first import (e.g., the geophysical dataset):

Downloading MISA dataset from https://www.dropbox.com/...
MISA dataset downloaded and saved to ancillary/processed_ncs/...
Downloading Geophysical Dataset from https://www.dropbox.com/...
Geophysical Dataset downloaded and saved to ancillary/processed_ncs/...

If the files already exist locally, the library will skip the download step and use the existing files.


Usage

🚀 Quickstart

Here's how you can use the model to predict electron density over 24 hours:

from MISA_pySLIME import predict_ne, predict_ti, predict_te

# Example: predict electron density (Ne) at azimuth=-80°, altitude=350 km,
# DOY=99, UT=12.5 in 2024:
ne = predict_ne(
  doy=99,
  time=12.5,
  year=2024,
  coords=(-80, 350),
  input_coords='az_alt',  # or 'lat_lon'
  time_ref='ut'  # 'slt' or 'ut'
)
print(f"Predicted Ne: {ne:.3e} m⁻³")

Batch Predictions

To predict multiple inputs efficiently, you can pass arrays to predict_ne,predict_te, or predict_ti:

placeholder

Inputs and Parameters

Clamping and Wrapping Input Values

Set argument verbose=True to enable progress bar.

placeholder


All functions are defined in pySLIME.py.

  • get_lat_lon(az, alt) Convert radar beam geometry (azimuth, altitude) to geographic (latitude, longitude).

  • get_az_alt(lat, lon) Inverse mapping: geographic coords → beam (azimuth, altitude).

  • query_model(az, alt, doy, slt, indices, bin_models, feature_order) Low‑level engine that selects the correct bin, scales & transforms features, and runs the Ridge regression.

  • predict_ne(...), predict_ti(...), predict_te(...) High‑level convenience wrappers loading pre‑trained models for electron density, ion temperature, and electron temperature.


📁 Project Structure

pySLIME/
├── ancillary/             # Geophysical & grid datasets (netCDF, CSV)
├── model/                 # Pre‑trained model artifacts (.npy)
├── notebooks/             # Example & tutorial Jupyter notebooks
├── pySLIME.py             # Core library functions
├── requirements.txt       # Python dependencies (pip)
├── environment.yml        # Optional: conda environment spec
├── README.md              # This file
├── LICENSE                # Open‑source license
└── .gitignore             # Ignore patterns for git

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

misa_pyslime-2.0.8b2.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

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

misa_pyslime-2.0.8b2-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file misa_pyslime-2.0.8b2.tar.gz.

File metadata

  • Download URL: misa_pyslime-2.0.8b2.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for misa_pyslime-2.0.8b2.tar.gz
Algorithm Hash digest
SHA256 c02af70986dc466422dafc726e983abe29e0111dd1851a11d8941b1c673d6138
MD5 07a279b6ddeb004a19ea13ab049d94c2
BLAKE2b-256 92f4e9cf6fc9fe2238ffd307b034f9ccd037f413e64ca072083fcf2da812a2ec

See more details on using hashes here.

File details

Details for the file misa_pyslime-2.0.8b2-py3-none-any.whl.

File metadata

  • Download URL: misa_pyslime-2.0.8b2-py3-none-any.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for misa_pyslime-2.0.8b2-py3-none-any.whl
Algorithm Hash digest
SHA256 b617c4a040d753280d742e2f6e2075183d52d680d395362100287344b9fd4933
MD5 befed80d5839704982e8bda07e14a056
BLAKE2b-256 fae851985cc47498562a280b4e1371025dc98318b318e63f24040c8b4946163f

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