cloudnetpy-qc 1.22.0__py3-none-any.whl → 1.23.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 +15 -0
- cloudnetpy_qc/version.py +1 -1
- {cloudnetpy_qc-1.22.0.dist-info → cloudnetpy_qc-1.23.0.dist-info}/METADATA +4 -2
- {cloudnetpy_qc-1.22.0.dist-info → cloudnetpy_qc-1.23.0.dist-info}/RECORD +7 -7
- {cloudnetpy_qc-1.22.0.dist-info → cloudnetpy_qc-1.23.0.dist-info}/WHEEL +1 -1
- {cloudnetpy_qc-1.22.0.dist-info → cloudnetpy_qc-1.23.0.dist-info/licenses}/LICENSE +0 -0
- {cloudnetpy_qc-1.22.0.dist-info → cloudnetpy_qc-1.23.0.dist-info}/top_level.txt +0 -0
cloudnetpy_qc/quality.py
CHANGED
|
@@ -797,6 +797,21 @@ class TestModelData(Test):
|
|
|
797
797
|
self._add_error(f"{noun} {values} {verb} missing from variable '{key}'.")
|
|
798
798
|
|
|
799
799
|
|
|
800
|
+
class TestCoordinateVariables(Test):
|
|
801
|
+
name = "Coordinate variables"
|
|
802
|
+
description = "Test dimensions of coordinate variables are correct."
|
|
803
|
+
|
|
804
|
+
def run(self):
|
|
805
|
+
for key, variable in self.nc.variables.items():
|
|
806
|
+
if key in self.nc.dimensions and (
|
|
807
|
+
len(variable.dimensions) != 1 or key != variable.dimensions[0]
|
|
808
|
+
):
|
|
809
|
+
received = "', '".join(variable.dimensions)
|
|
810
|
+
self._add_error(
|
|
811
|
+
f"Expected variable '{key}' to have dimensions '{key}' but received '{received}'"
|
|
812
|
+
)
|
|
813
|
+
|
|
814
|
+
|
|
800
815
|
# ------------------------------#
|
|
801
816
|
# ------ Error / Warning ------ #
|
|
802
817
|
# ----------------------------- #
|
cloudnetpy_qc/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: cloudnetpy_qc
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.23.0
|
|
4
4
|
Summary: Quality control routines for CloudnetPy products
|
|
5
5
|
Author-email: Finnish Meteorological Institute <actris-cloudnet@fmi.fi>
|
|
6
6
|
License: MIT License
|
|
@@ -49,6 +49,7 @@ Requires-Dist: types-requests; extra == "test"
|
|
|
49
49
|
Provides-Extra: dev
|
|
50
50
|
Requires-Dist: pre-commit; extra == "dev"
|
|
51
51
|
Requires-Dist: release-version; extra == "dev"
|
|
52
|
+
Dynamic: license-file
|
|
52
53
|
|
|
53
54
|
# CloudnetPy-QC
|
|
54
55
|
|
|
@@ -135,6 +136,7 @@ print(json_object)
|
|
|
135
136
|
| `TestBrightnessTemperature` | Test that brightness temperature data are valid. |
|
|
136
137
|
| `TestCFConvention` | Test compliance with the CF metadata conventions. |
|
|
137
138
|
| `TestComment` | Check that variables have expected comments. |
|
|
139
|
+
| `TestCoordinateVariables` | Test dimensions of coordinate variables are correct. |
|
|
138
140
|
| `TestDataCoverage` | Test that file contains enough data. |
|
|
139
141
|
| `TestDataModel` | Test netCDF data model. |
|
|
140
142
|
| `TestDataTypes` | Check that variables have expected data types. |
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
cloudnetpy_qc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
cloudnetpy_qc/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
cloudnetpy_qc/quality.py,sha256=
|
|
3
|
+
cloudnetpy_qc/quality.py,sha256=b0V0t0wyKhkHqsRQYx_RaR7xxI2rSvwgmNJB5OZ9Zhs,35313
|
|
4
4
|
cloudnetpy_qc/utils.py,sha256=ssRqu8Auz7YpfZ79mTKmms4DkP9_ExLthbIpQGNq4jc,3270
|
|
5
5
|
cloudnetpy_qc/variables.py,sha256=xDNjk2urxULN8cbTlOCDysgtaqt4tzVouBC0adyFDWc,50862
|
|
6
|
-
cloudnetpy_qc/version.py,sha256=
|
|
6
|
+
cloudnetpy_qc/version.py,sha256=vcC-7aXpO_rnscCrcXHPgds8PHw_3OpsbpHgneXb03M,102
|
|
7
7
|
cloudnetpy_qc/data/area-type-table.xml,sha256=F3lzCQR5LjmsB7qhlBt3CpZRNAH3UZoYJs6fmkvmCCM,17203
|
|
8
8
|
cloudnetpy_qc/data/cf-standard-name-table.xml,sha256=BO6fEXQB6SRDeyP0wb7nyv3koKflM1s-0dIlgNF0KAI,4374043
|
|
9
9
|
cloudnetpy_qc/data/data_quality_config.ini,sha256=URRc93Du2_YFX6Q7GxMHptKIVl6kwxXw-kVyftmsEJk,1242
|
|
10
10
|
cloudnetpy_qc/data/standardized-region-list.xml,sha256=gLRE2G7RQLD9hmvW5dTzyK7XPhORxWv2bfbrvAp5Uto,6426
|
|
11
|
-
cloudnetpy_qc-1.
|
|
12
|
-
cloudnetpy_qc-1.
|
|
13
|
-
cloudnetpy_qc-1.
|
|
14
|
-
cloudnetpy_qc-1.
|
|
15
|
-
cloudnetpy_qc-1.
|
|
11
|
+
cloudnetpy_qc-1.23.0.dist-info/licenses/LICENSE,sha256=P0wszB7Cq2M390SKaqT4DGvECfwGOMdTTdxsWBpEUUc,1094
|
|
12
|
+
cloudnetpy_qc-1.23.0.dist-info/METADATA,sha256=8MugHHN6x-0FbGMnvx_QLkxEpAttD3MeKtIFshGB8ZY,7964
|
|
13
|
+
cloudnetpy_qc-1.23.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
14
|
+
cloudnetpy_qc-1.23.0.dist-info/top_level.txt,sha256=shrf8A1KyrrnhbHocc4gHmTl38YY-DHflgf-gXiKnKs,14
|
|
15
|
+
cloudnetpy_qc-1.23.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|