cloudnetpy-qc 1.27.5__py3-none-any.whl → 1.28.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cloudnetpy_qc/quality.py +26 -0
- cloudnetpy_qc/version.py +2 -2
- {cloudnetpy_qc-1.27.5.dist-info → cloudnetpy_qc-1.28.0.dist-info}/METADATA +1 -1
- {cloudnetpy_qc-1.27.5.dist-info → cloudnetpy_qc-1.28.0.dist-info}/RECORD +7 -7
- {cloudnetpy_qc-1.27.5.dist-info → cloudnetpy_qc-1.28.0.dist-info}/WHEEL +0 -0
- {cloudnetpy_qc-1.27.5.dist-info → cloudnetpy_qc-1.28.0.dist-info}/licenses/LICENSE +0 -0
- {cloudnetpy_qc-1.27.5.dist-info → cloudnetpy_qc-1.28.0.dist-info}/top_level.txt +0 -0
cloudnetpy_qc/quality.py
CHANGED
|
@@ -494,6 +494,8 @@ class TestMedianLwp(Test):
|
|
|
494
494
|
if median_lwp < limits[0] or median_lwp > limits[1]:
|
|
495
495
|
msg = utils.create_out_of_bounds_msg(key, *limits, median_lwp)
|
|
496
496
|
self._add_warning(msg)
|
|
497
|
+
if ma.all(data == 0):
|
|
498
|
+
self._add_error(f"All unmasked '{key}' values are zero.")
|
|
497
499
|
|
|
498
500
|
|
|
499
501
|
class FindAttributeOutliers(Test):
|
|
@@ -648,6 +650,30 @@ class TestRainfallConsistency(Test):
|
|
|
648
650
|
# -------------------- #
|
|
649
651
|
|
|
650
652
|
|
|
653
|
+
class TestRangeAndHeight(Test):
|
|
654
|
+
name = "Range and height"
|
|
655
|
+
description = "Test that range and height data are valid."
|
|
656
|
+
products = Product.all() - {
|
|
657
|
+
Product.RAIN_GAUGE,
|
|
658
|
+
Product.WEATHER_STATION,
|
|
659
|
+
Product.MODEL,
|
|
660
|
+
Product.DISDROMETER,
|
|
661
|
+
Product.MWR_L1C,
|
|
662
|
+
Product.MWR,
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
def run(self):
|
|
666
|
+
if "range" in self.nc.variables:
|
|
667
|
+
range_var = self.nc["range"][:]
|
|
668
|
+
if ma.min(range_var) < 0:
|
|
669
|
+
self._add_error("Range variable contains negative values.")
|
|
670
|
+
if "height" in self.nc.variables and "altitude" in self.nc.variables:
|
|
671
|
+
altitude = ma.median(self.nc["altitude"][:])
|
|
672
|
+
height_var = self.nc["height"][:]
|
|
673
|
+
if ma.min(height_var) < altitude:
|
|
674
|
+
self._add_error("Height variable contains values below ground.")
|
|
675
|
+
|
|
676
|
+
|
|
651
677
|
class TestDataModel(Test):
|
|
652
678
|
name = "Data model"
|
|
653
679
|
description = "Test netCDF data model."
|
cloudnetpy_qc/version.py
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
cloudnetpy_qc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
cloudnetpy_qc/coverage.py,sha256=21QPbwGX1dvMY0NXmj9Pny1CxzlqUbgeK4wi-X8M9h0,2412
|
|
3
3
|
cloudnetpy_qc/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
cloudnetpy_qc/quality.py,sha256=
|
|
4
|
+
cloudnetpy_qc/quality.py,sha256=jwPsM0P_Ldd2CBawvfzQsB0Eb836Ro-VGpSEjsWbQXs,40732
|
|
5
5
|
cloudnetpy_qc/utils.py,sha256=zFVryl56le2cyfDSCyGCzMHACcsjK7AJZknii1fgfgg,5393
|
|
6
6
|
cloudnetpy_qc/variables.py,sha256=JEzw5tQ-bL0URf_9dpr4E79WTpq5GiOfndi5KNw0Mew,51710
|
|
7
|
-
cloudnetpy_qc/version.py,sha256=
|
|
7
|
+
cloudnetpy_qc/version.py,sha256=tmaVaz75fg9yrVRKmDIePwOR3aQYLbZUIeWPsDX1HyM,102
|
|
8
8
|
cloudnetpy_qc/data/area-type-table.xml,sha256=LQGp6rk8d-jZVjeFWPK_NjG2Kk1atvLlQXmV4UXggKI,17788
|
|
9
9
|
cloudnetpy_qc/data/cf-standard-name-table.xml,sha256=MGqs7uPH62jVpiN6as3jc5gswQvywjJzU_jzHtQOArA,4455853
|
|
10
10
|
cloudnetpy_qc/data/data_quality_config.ini,sha256=deAQzo3eMclgIaQTGYGdwLaD_AM9vGDGaf4VvJ_ZQrs,1449
|
|
11
11
|
cloudnetpy_qc/data/standardized-region-list.xml,sha256=gLRE2G7RQLD9hmvW5dTzyK7XPhORxWv2bfbrvAp5Uto,6426
|
|
12
|
-
cloudnetpy_qc-1.
|
|
13
|
-
cloudnetpy_qc-1.
|
|
14
|
-
cloudnetpy_qc-1.
|
|
15
|
-
cloudnetpy_qc-1.
|
|
16
|
-
cloudnetpy_qc-1.
|
|
12
|
+
cloudnetpy_qc-1.28.0.dist-info/licenses/LICENSE,sha256=P0wszB7Cq2M390SKaqT4DGvECfwGOMdTTdxsWBpEUUc,1094
|
|
13
|
+
cloudnetpy_qc-1.28.0.dist-info/METADATA,sha256=Jd0xEEjVJB9-RzEuA6BcelKQ3TXGFNuDAbnY1kMMvok,8340
|
|
14
|
+
cloudnetpy_qc-1.28.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
15
|
+
cloudnetpy_qc-1.28.0.dist-info/top_level.txt,sha256=shrf8A1KyrrnhbHocc4gHmTl38YY-DHflgf-gXiKnKs,14
|
|
16
|
+
cloudnetpy_qc-1.28.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|