cloudnetpy-qc 1.27.6__tar.gz → 1.28.0__tar.gz
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-1.27.6/cloudnetpy_qc.egg-info → cloudnetpy_qc-1.28.0}/PKG-INFO +1 -1
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/cloudnetpy_qc/quality.py +24 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/cloudnetpy_qc/version.py +2 -2
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0/cloudnetpy_qc.egg-info}/PKG-INFO +1 -1
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/LICENSE +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/MANIFEST.in +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/README.md +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/cloudnetpy_qc/__init__.py +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/cloudnetpy_qc/coverage.py +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/cloudnetpy_qc/data/area-type-table.xml +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/cloudnetpy_qc/data/cf-standard-name-table.xml +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/cloudnetpy_qc/data/data_quality_config.ini +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/cloudnetpy_qc/data/standardized-region-list.xml +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/cloudnetpy_qc/py.typed +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/cloudnetpy_qc/utils.py +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/cloudnetpy_qc/variables.py +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/cloudnetpy_qc.egg-info/SOURCES.txt +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/cloudnetpy_qc.egg-info/dependency_links.txt +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/cloudnetpy_qc.egg-info/requires.txt +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/cloudnetpy_qc.egg-info/top_level.txt +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/pyproject.toml +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/setup.cfg +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/tests/test_qc.py +0 -0
- {cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/tests/test_utils.py +0 -0
|
@@ -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."
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cloudnetpy_qc-1.27.6 → cloudnetpy_qc-1.28.0}/cloudnetpy_qc/data/standardized-region-list.xml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|