cloudnetpy-qc 1.27.6__py3-none-any.whl → 1.28.1__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 +24 -0
- cloudnetpy_qc/variables.py +1 -1
- cloudnetpy_qc/version.py +2 -2
- {cloudnetpy_qc-1.27.6.dist-info → cloudnetpy_qc-1.28.1.dist-info}/METADATA +1 -1
- {cloudnetpy_qc-1.27.6.dist-info → cloudnetpy_qc-1.28.1.dist-info}/RECORD +8 -8
- {cloudnetpy_qc-1.27.6.dist-info → cloudnetpy_qc-1.28.1.dist-info}/WHEEL +0 -0
- {cloudnetpy_qc-1.27.6.dist-info → cloudnetpy_qc-1.28.1.dist-info}/licenses/LICENSE +0 -0
- {cloudnetpy_qc-1.27.6.dist-info → cloudnetpy_qc-1.28.1.dist-info}/top_level.txt +0 -0
cloudnetpy_qc/quality.py
CHANGED
|
@@ -650,6 +650,30 @@ class TestRainfallConsistency(Test):
|
|
|
650
650
|
# -------------------- #
|
|
651
651
|
|
|
652
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
|
+
|
|
653
677
|
class TestDataModel(Test):
|
|
654
678
|
name = "Data model"
|
|
655
679
|
description = "Test netCDF data model."
|
cloudnetpy_qc/variables.py
CHANGED
|
@@ -1031,7 +1031,7 @@ VARIABLES = {
|
|
|
1031
1031
|
# --------------------------------------------
|
|
1032
1032
|
# Variables included in some of Level 1b files
|
|
1033
1033
|
# --------------------------------------------
|
|
1034
|
-
"
|
|
1034
|
+
"Zh_offset": Variable(
|
|
1035
1035
|
long_name="Radar reflectivity calibration offset",
|
|
1036
1036
|
units="dBZ",
|
|
1037
1037
|
),
|
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
|
-
cloudnetpy_qc/variables.py,sha256=
|
|
7
|
-
cloudnetpy_qc/version.py,sha256=
|
|
6
|
+
cloudnetpy_qc/variables.py,sha256=BFWOVyXT1abidN8-lL5JFinzptx2R0mRVUwAikeGWHU,51701
|
|
7
|
+
cloudnetpy_qc/version.py,sha256=TlxSUZ916oK09iJHKYi5v9gQSavGOKGa_VNuqmC632g,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.1.dist-info/licenses/LICENSE,sha256=P0wszB7Cq2M390SKaqT4DGvECfwGOMdTTdxsWBpEUUc,1094
|
|
13
|
+
cloudnetpy_qc-1.28.1.dist-info/METADATA,sha256=pJrSWywMLDzKOwnZuGfSk1heQh0WyzS5AjwPWwc-uBU,8340
|
|
14
|
+
cloudnetpy_qc-1.28.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
15
|
+
cloudnetpy_qc-1.28.1.dist-info/top_level.txt,sha256=shrf8A1KyrrnhbHocc4gHmTl38YY-DHflgf-gXiKnKs,14
|
|
16
|
+
cloudnetpy_qc-1.28.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|