pyart icon indicating copy to clipboard operation
pyart copied to clipboard

Masking reflectivity values for attenuation calculations has no effect

Open habipyesilyurt opened this issue 10 years ago • 3 comments
trafficstars

In attenuation.py reflectivity values are masked by "refl = np.ma.masked_where(mask, reflectivity_horizontal + z_offset) " expression. But mask is removed after "sm_refl = phase_proc.smooth_and_trim(ray_init_refl, window_len=5)" expression. Then all calculations are done using unmasked reflectivity "sm_refl ". Is that the intent? Or should masked range cells be filled using interpolation?

habipyesilyurt avatar Nov 13 '15 15:11 habipyesilyurt

I'm not sure what the proper behavior is in this function. Since attenuation is cumulatinve, the specific attenuation likely needs to be calculated at every gate even if the underlying data is "bad" and should be ignored. It looks like the masking is applied to the corrected reflectivity field, perhaps this mask should also apply to the specific attenuation?

Regardless, this function should be updated to use a gatefilter to specify valid gates rather than using the field based minimums.

jjhelmus avatar Nov 16 '15 19:11 jjhelmus

Was this closed on purpose? I do not believe this issue has been fixed.

jjhelmus avatar Feb 08 '16 22:02 jjhelmus

Sorry!

habipyesilyurt avatar Feb 09 '16 05:02 habipyesilyurt

gatefilter exists for zhiphi and philinear, still needs top be added to attenuation function

zssherman avatar Nov 07 '22 17:11 zssherman