adokter / bioRad

R package for analysis and visualisation of biological signals in weather radar data
http://adokter.github.io/bioRad
Other
29 stars 16 forks source link

ignore NA in integrate_to_ppi #658

Closed adokter closed 4 months ago

adokter commented 4 months ago

Change the behavior of integrate_to_ppi() by ignoring scan pixel values equal to NA (pixels never irradiated). Behavior for scan pixel values equal to NaN remains the same. For pixels not irradiated we expect no reflectivity return, i.e. the behavior should be that the scan elevation for this pixel is fully ignored in the vertical integration. The behavior until now was that we did expect reflectivity return from NA pixels when constructing the PPI.

This feature is added to allow manual introduction of NA values in DBZH fields at locations with beam occultation. Note that NA values do not usually occur in DBZH fields (unless manually added), only NaN values occur (nothing detected above the detection threshold), and therefore this change should be backward compatible and not alter previous behavior.