wradlib.dp.system_phidp_first

wradlib.dp.system_phidp_first#

wradlib.dp.system_phidp_first(phidp, n_valid_bins=10, n_lowest_rays=30)[source]#

Estimate \(\Phi_{DP}^{sys}\) using the first N valid \(\Phi_{DP}\) bins along each ray.

For each ray, the first n_valid_bins valid (non-NaN) \(\Phi_{DP}\) values are selected, regardless of whether they are contiguous in range. The median of these values is computed to obtain a ray-wise \(\Phi_{DP}^{sys}\) estimate. The final \(\Phi_{DP}^{sys}\) is the median of the n_lowest_rays smallest ray-wise estimates.

Parameters:
  • phidp (xarray.DataArray) – Differential phase field with a range dimension.

  • n_valid_bins (int, optional) – Number of valid \(\Phi_{DP}\) samples to use per ray.

  • n_lowest_rays (int, optional) – Number of lowest ray-wise estimates used for the final \(\Phi_{DP}^{sys}\) value.

Returns:

xarray.Dataset – Dataset containing:

  • sysphi_ray : ray-wise \(\Phi_{DP}^{sys}\) estimate.

  • sysphi : global \(\Phi_{DP}^{sys}\) estimate.

  • start_range : Start range of the selected interval.

  • stop_range : Stop range of the selected interval.

  • valid_bins : Number of valid \(\Phi_{DP}\) bins within the selected interval.

Examples

See Core Features - Dual-Pol - System Differential Phase.