diff --git a/doc/environment.yml b/doc/environment.yml index ab92bd8da4..3f9549d4fe 100644 --- a/doc/environment.yml +++ b/doc/environment.yml @@ -41,4 +41,3 @@ dependencies: - pip: - pooch - versioneer - - -e .. diff --git a/pyart/io/_sigmetfile.pyx b/pyart/io/_sigmetfile.pyx index c0f31f34e2..9b2faec92b 100644 --- a/pyart/io/_sigmetfile.pyx +++ b/pyart/io/_sigmetfile.pyx @@ -213,7 +213,12 @@ cdef class SigmetFile: prt_value = 1. / self.product_hdr['product_end']['prf'] nyquist = wavelength_cm / (10000.0 * 4.0 * prt_value) data['WIDTH'] *= nyquist - + # scale 1-byte KDP by the wavelength + if 'KDP' in self.data_type_names: + # The IRIS Programmer's Manual indicates 1-byte differential phase format + # data should be divided by the wavelength in cm (section 4.3.12). + wavelength_cm = self.product_hdr['product_end']['wavelength'] + data['KDP'] /= wavelength_cm return data, metadata def _get_sweep(self, full_xhdr=False, raw_data=False):