pyart icon indicating copy to clipboard operation
pyart copied to clipboard

Bug in zphi retrieval

Open joshua-wx opened this issue 5 years ago • 2 comments

Hi, In the zphi attenuation retrieval (https://github.com/ARM-DOE/pyart/blob/master/pyart/correct/attenuation.py) on line 257, a base 10 power is taken to calculate the 'self_cons_number'. The formula for this technique requires the use of a natural exponent (See Wang et al 2019 equation 4, attached). I've tested this extensively and it corrects an issue where the pyart implementation gives specific attenuation an order of magnitude too high.

The multiplier in your implementation of equation 4 also looks wrong, but maybe you're scaling beta to compensate? It's 0.23 in the paper, and 0.1 in the code. beta should be around 0.62 for S band.

Wang etal 2019.pdf

Cheers! Joshua

joshua-wx avatar May 13 '20 03:05 joshua-wx

So it looks like the two reference provided for ZPHI are two different formulations... one used a base10 exponential (Gu et al) and the other used a natural exponent (Ryzhkov), with different coefficients in the exponent term to adjust for this change. Suggest a note is added to the docs explicitly saying the formulation is from Gu et al

joshua-wx avatar May 13 '20 23:05 joshua-wx

Hi @joshua-wx I'll add a note, and after discussion with @scollis will look into the other formulation. Thank you for finding this!

zssherman avatar May 15 '20 13:05 zssherman