pvtend.RWBConfig

class pvtend.RWBConfig(level_mode: str | int = 'wavg', try_levels: int = 300, min_vertices: int = 30, n_meridians: int = 240, min_cross: int = 3, n_samp: int = 240, min_points: int = 15, area_min_deg2: float = 30.0, x_min_awb: float = -1.0, x_max_cwb: float = 1.0, circumpolar_min_lon_span: float = 355.0, pv_cmap: str = 'coolwarm', base_contour_color: str = 'k', color_awb: str = 'dodgerblue', color_cwb: str = 'tomato', fill_alpha: float = 0.28, contour_ovt_color: str = 'gold', contour_ovt_lw: float = 2.0, contour_base_lw: float = 1.2)[source]

Configuration for RWB detection and classification.

level_mode

Vertical level mode - ‘wavg’ or integer hPa.

Type:

str | int

try_levels

Number of contour levels to probe on full NH field.

Type:

int

min_vertices

Minimum vertices for a valid contour.

Type:

int

n_meridians

Number of meridian probes for overturn detection.

Type:

int

min_cross

Minimum crossings to flag overturning.

Type:

int

n_samp

Number of sample points for polygon construction.

Type:

int

min_points

Minimum valid points for polygon.

Type:

int

area_min_deg2

Minimum bay area (deg²) filter.

Type:

float

x_min_awb

AWB centroid x must be >= this.

Type:

float

x_max_cwb

CWB centroid x must be <= this.

Type:

float

circumpolar_min_lon_span

Minimum longitude span (°) to accept a contour as circumpolar (default 355°).

Type:

float

__init__(level_mode: str | int = 'wavg', try_levels: int = 300, min_vertices: int = 30, n_meridians: int = 240, min_cross: int = 3, n_samp: int = 240, min_points: int = 15, area_min_deg2: float = 30.0, x_min_awb: float = -1.0, x_max_cwb: float = 1.0, circumpolar_min_lon_span: float = 355.0, pv_cmap: str = 'coolwarm', base_contour_color: str = 'k', color_awb: str = 'dodgerblue', color_cwb: str = 'tomato', fill_alpha: float = 0.28, contour_ovt_color: str = 'gold', contour_ovt_lw: float = 2.0, contour_base_lw: float = 1.2) None

Methods

__init__([level_mode, try_levels, ...])

Attributes

area_min_deg2

base_contour_color

circumpolar_min_lon_span

color_awb

color_cwb

contour_base_lw

contour_ovt_color

contour_ovt_lw

fill_alpha

level_mode

max_keep

min_cross

min_points

min_vertices

n_meridians

n_samp

pv_cmap

try_levels

x_max_cwb

x_min_awb