Skip to content

leaver2000/mrms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mrms.py

Lightweight simple API to live Multi-Radar/Multi-Sensor (MRMS) data to handle data retrieval, unzipping the data, and reading the data from grib2 into an Array which is just a subclassed numpy.ndarray with some additional metadata.

Quick Start

import numpy as np
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import mrms

fig, ax = plt.subplots(subplot_kw={'projection': ccrs.PlateCarree()})
ax.coastlines()

arr = mrms.get(mrms.MERGED_BASE_REFLECTIVITY_QC)
arr[arr < 0] = np.nan

ax.pcolormesh(mrms.longitude, mrms.latitude, arr, transform=ccrs.PlateCarree())
ax.set_title(f"{arr.name}:{arr.datetime}");

mrms

Installation

mkdir myproject
cd myproject 
myproject python3.12 -m venv .venv && source .venv/bin/activate  
pip install git+https://github.com/leaver2000/mrms@master

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages