From ce1347424077a99a5d6dec5be181659e11795e5a Mon Sep 17 00:00:00 2001 From: gransen312 <66414670+gransen312@users.noreply.github.com> Date: Wed, 7 Aug 2024 17:23:37 +0800 Subject: [PATCH] Update _sigmetfile.pyx add decoding for corrected velocity --- pyart/io/_sigmetfile.pyx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyart/io/_sigmetfile.pyx b/pyart/io/_sigmetfile.pyx index 3f5d507c1e..c0f31f34e2 100644 --- a/pyart/io/_sigmetfile.pyx +++ b/pyart/io/_sigmetfile.pyx @@ -715,6 +715,13 @@ def convert_sigmet_data(data_type, data, nbins): out[:] = (ndata - 128.) / 127. mask[ndata == 0] = True + elif data_type_name == 'VELC': + # VELC, 3, Velocity (1 byte) + # 1-byte Corrected Velocity Format, section 4.4.42 + out[:] = (ndata - 128.) / 127. *75. + mask[ndata == 0] = True + mask[ndata == 255] = True + elif data_type_name == 'WIDTH': # WIDTH, 4, Width (1 byte) # 1-byte Width format, section 4.3.25