radarx.retrieve.hail.posh#
- radarx.retrieve.hail.posh(obj, dbz=None, *, freezing_level=None, minus20_level=None, profile=None, zl=40.0, zu=50.0, warning_offset=121.0, posh_offset=50.0, kind=None, missing=None, radar_height=None, tolerance=0.1, n_threads=None, engine='auto')[source]#
Probability of severe hail (POSH) of the reflectivity columns.
POSH = 29 ln(SHI / WT) + 50in % (Witt et al. 1998, Eq. 5), limited to 0 to 100, with the warning thresholdWT = max(57.5 H0 - 121, 20)(J m-1 s-1,H0in km above the radar) of Eq. 4. POSH is 50 % when SHI equals WT. The curve was calibrated with reliability diagrams of ten storm days, mostly in Oklahoma and Florida, so it depends on the region and the radar height (seewarning_offsetandposh_offset). The operational value is rounded to 10 %; this one is not.- Parameters:
obj (
xarray.DataTreeorxarray.Dataset) – A polar volume, a grid or a quasi-vertical profile.
Notes
Dask. This function computes the dask array: the result combines the gates of all sweeps of the volume. The input is loaded into memory and the result is held in memory.
- dbzstr, optional
Name of the reflectivity (dBZ). By default the first found of
DBZH,DBZ,reflectivityandcorrected_reflectivity(for a volume, in the first sweep that has one).- freezing_level, minus20_levelfloat or xarray.DataArray, optional
Height (m above sea level) of the 0 and the -20 degC level: a number, or an array that broadcasts against the columns (a 2-D field on the grid or the polar columns, or one value per time of a profile). NaN where unknown, which gives NaN in the products. Not needed where
profilegives them.- profilexarray.Dataset, optional
A sounding or ERA5 profile with
temperature(K) on aheight(orz) dimension, e.g. fromradarx.io.sounding.read_sounding(),radarx.io.sounding.era5_profile()orradarx.io.sounding.era5_column(). The heights of the 0 and -20 degC isotherms (the highest crossing, seeradarx.io.sounding.isotherm_height()) are used for the levels that are not given.- zl, zufloat, optional
Reflectivities (dBZ) between which the weight W(Z) rises from 0 to 1. Defaults 40 and 50, the values of Witt et al. (1998), who note that they are adaptable.
- warning_offset, posh_offsetfloat, optional
The constants 121 (J m-1 s-1) of the warning threshold
WT = 57.5 H0 - 121and 50 (%) ofPOSH = 29 ln(SHI/WT) + 50of Witt et al. (1998). The Western Region technical attachment 98-27 (Graham and Nelson 1998) reports that the threshold model over-warned for radars high above sea level and quotesWT = 57.5 H0 - 5.8and an offset of 30 % for summer storms as the later NSSL adjustment, which these two options can reproduce. The operational values were not checked in another source.- kind{“volume”, “grid”, “qvp”}, optional
Kind of input. By default a DataTree is a polar volume, a Dataset with
xandyis a grid and one withheighta quasi-vertical profile.- missing{“clear”, “gap”}, optional
What a missing (NaN) value means.
"clear": no echo, which is how radar volumes mark it (for a grid or a profile, only the values above the lowest valid level);"gap": no data, left out. Default"clear"for a volume and"gap"for a grid or a profile.- radar_heightfloat, optional
Height of the radar (m above sea level) that the warning threshold takes the 0 degC level above. Default: the
altitudeof the radar site, else 0.- tolerancefloat, optional
Volume only: sweeps closer than this in elevation (degrees) count as the same cut, and the one that reaches farthest is used. Default 0.1.
- n_threadsint, optional
Threads for the compiled kernel. Default: all cores.
- engine{“auto”, “compiled”, “numpy”}, optional
Implementation to use.
"auto"(default) prefers the compiled kernel and falls back to NumPy.
- Returns:
xarray.DataArray–POSH(%); 0 where SHI is 0.Raises– —— KeyErrorIf the reflectivity or no sweep is found.
- ValueError
If the levels are missing or do not fit the columns, or
zuis not abovezl.- ImportError
If
engine="compiled"and the compiled kernel is not available.
References– ———- Witt, A., M. D. Eilts, G. J. Stumpf, J. T. Johnson, E. D. Mitchell, and K. W. Thomas, 1998: An enhanced hail detection algorithm for the WSR-88D. Wea. Forecasting, 13 (2), 286-303, https://doi.org/10.1175/1520-0434(1998)013<0286:AEHDAF>2.0.CO;2 (Eqs. 1-6 and Fig. 4).Waldvogel, A., W. Schmid, and B. Federer, 1978: The kinetic energy of hailfalls. Part I: Hailstone spectra. J. Appl. Meteor., 17 (4), 515-520, https://doi.org/10.1175/1520-0450(1978)017<0515:TKEOHP>2.0.CO;2 (the reflectivity to energy flux relation is taken from Witt et al. 1998 and Holleman 2001; not compared with this paper).
Waldvogel, A., B. Federer, W. Schmid, and J. F. Mezeix, 1978: The kinetic energy of hailfalls. Part II: Radar and hailpads. J. Appl. Meteor., 17 (11), 1680-1693, https://doi.org/10.1175/1520-0450(1978)017<1680:TKEOHP>2.0.CO;2 (the relation is taken from Witt et al. 1998 and Holleman 2001; not compared with this paper).
Holleman, I., 2001: Hail detection using single-polarization radar. KNMI Scientific Report WR-2001-01 (Eq. 2.4 for
E = 5.0e-6 Z^0.84and Eqs. 2.5 to 2.7 for the SHI).Graham, R. A., and J. A. Nelson, 1998: An examination into the utility of the Build 9 hail detection algorithm (HDA) across northern Utah. NWS Western Region Technical Attachment No. 98-27 (warning threshold and POSH offsets of the later adjustment).
Examples
>>> prob = radarx.retrieve.posh( ... dtree, freezing_level=4200.0, minus20_level=7500.0 ... )