SHEARLINE

v1.1.0
io.github.lostnumber07/shearline Checked 2 days ago Published 5 months ago

Analyst-grade US severe weather: warnings, SPC outlooks, RAP environment, MRMS, GLM lightning

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_active_warnings

Active NWS severe-weather warning polygons near a CONUS point. Returns tornado / severe thunderstorm / flash flood warnings within radius_km, each with Impact-Based Warning tags (max hail size, max wind gust, tornado detection / damage threat), parsed storm motion, expiration times, polygon geometry, and whether the exact point is inside the polygon. Watches in effect at the point are listed separately.

ParameterTypeDescription
lat *number
lon *number
radius_kmnumber

get_spc_outlook

SPC convective outlook at a CONUS point for day 1, 2, or 3. Returns the categorical risk (TSTM/MRGL/SLGT/ENH/MDT/HIGH) plus hazard probabilities (tornado/hail/wind for days 1-2; total severe for day 3) and significant-severe flags, with an interpretation calibrated to the category.

ParameterTypeDescription
lat *number
lon *number
dayinteger

get_point_environment

RAP-analysis severe-weather environment at a CONUS point. Downloads the latest RAP 13-km analysis profile and computes, with MetPy: MLCAPE/MUCAPE/SBCAPE and CINs, LCL height, 0-1 and 0-6 km bulk shear, 0-1 and 0-3 km storm-relative helicity, Bunkers storm motion, effective inflow layer, effective SRH/shear, supercell composite (SCP) and significant-tornado parameter (STP). Interpretation reasons through the parameter space like an analyst. First call may take several seconds.

ParameterTypeDescription
lat *number
lon *number

get_environment_trend

RAP forecast-environment trend at a CONUS point (the anticipatory view). Where get_point_environment is "now" (the f00 analysis), this returns a short forecast series (f00/f01/f03/f06) of the discriminating quantities — MLCAPE, 0-6 km bulk shear, 0-1 km SRH, supercell composite, significant-tornado parameter — all from one consistent RAP cycle, with an interpretation of the TRAJECTORY (intensifying / stabilizing / steady). Downloads and decodes four forecast hours, so the first call can take ~15-20 seconds.

ParameterTypeDescription
lat *number
lon *number

get_mrms_severe

MRMS radar-derived severe weather products near a CONUS point. Samples within radius_km: max 60-minute MESH (hail size, inches and mm), max low-level and mid-level rotation-track azimuthal shear over the last hour, max VIL, and max composite reflectivity — each with valid time and the distance/bearing of the maximum from the point.

ParameterTypeDescription
lat *number
lon *number
radius_kmnumber

get_lightning

GOES GLM total-lightning activity near a CONUS point in the recent window. Returns the flash count and rate within radius_km over the last `minutes`, the nearest strike (distance/bearing/time), and a tiered outdoor-safety interpretation (overhead / within-striking-distance / in-the-area). GLM detects total lightning — both in-cloud and cloud-to-ground — from the GOES-East satellite, with ~20-40 s latency.

ParameterTypeDescription
lat *number
lon *number
minutesnumber
radius_kmnumber

get_storm_reports

Local Storm Reports (spotter/official reports) near a CONUS point. Normalized tornado, hail, wind, and flood reports within radius_km over the past N hours: type, magnitude with units, time, location, distance/bearing from the point, and remarks.

ParameterTypeDescription
lat *number
lon *number
hoursnumber
radius_kmnumber

get_historical_storm_reports

Local Storm Reports near a CONUS point on a specific PAST date. Answers "what hail/wind/tornado hit this location on this day." `date` is a single UTC calendar day formatted 'YYYY-MM-DD'. Returns normalized reports (type, magnitude with units, time, location, distance/bearing, remarks) plus a summary. Coverage begins ~2005; the data is preliminary NWS/spotter reports via the Iowa Environmental Mesonet, not the final NCEI Storm Events record. For the current situation use get_storm_reports instead.

ParameterTypeDescription
date *string
lat *number
lon *number
radius_kmnumber

get_threat_brief

Composite severe-weather threat brief for a CONUS point. Runs warnings, SPC outlook, RAP environment, MRMS products, and storm reports concurrently, then synthesizes: an overall threat level (none/marginal/elevated/significant/extreme) with stated logic, hazards ranked by concern, an environment summary, the nearest current storm signature, and a recommended attention window. The first call can take ~10 seconds while the RAP profile downloads.

ParameterTypeDescription
lat *number
lon *number

get_radar_snapshot

Latest NEXRAD Level 2 volume metadata from the nearest WSR-88D radar. Metadata only (no imagery): radar site and distance, volume scan start time, VCP (scan strategy) with meaning, max reflectivity and its range/azimuth, and a coarse 18-dBZ echo-top estimate. Downloads a full Level 2 volume (~5-15 MB), so expect a few seconds on first call.

ParameterTypeDescription
lat *number
lon *number