cloudnetpy-qc 1.22.0__tar.gz → 1.23.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.
Files changed (23) hide show
  1. {cloudnetpy_qc-1.22.0/cloudnetpy_qc.egg-info → cloudnetpy_qc-1.23.0}/PKG-INFO +4 -2
  2. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/README.md +1 -0
  3. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/cloudnetpy_qc/quality.py +15 -0
  4. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/cloudnetpy_qc/version.py +1 -1
  5. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0/cloudnetpy_qc.egg-info}/PKG-INFO +4 -2
  6. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/LICENSE +0 -0
  7. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/MANIFEST.in +0 -0
  8. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/cloudnetpy_qc/__init__.py +0 -0
  9. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/cloudnetpy_qc/data/area-type-table.xml +0 -0
  10. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/cloudnetpy_qc/data/cf-standard-name-table.xml +0 -0
  11. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/cloudnetpy_qc/data/data_quality_config.ini +0 -0
  12. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/cloudnetpy_qc/data/standardized-region-list.xml +0 -0
  13. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/cloudnetpy_qc/py.typed +0 -0
  14. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/cloudnetpy_qc/utils.py +0 -0
  15. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/cloudnetpy_qc/variables.py +0 -0
  16. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/cloudnetpy_qc.egg-info/SOURCES.txt +0 -0
  17. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/cloudnetpy_qc.egg-info/dependency_links.txt +0 -0
  18. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/cloudnetpy_qc.egg-info/requires.txt +0 -0
  19. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/cloudnetpy_qc.egg-info/top_level.txt +0 -0
  20. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/pyproject.toml +0 -0
  21. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/setup.cfg +0 -0
  22. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/tests/test_qc.py +0 -0
  23. {cloudnetpy_qc-1.22.0 → cloudnetpy_qc-1.23.0}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: cloudnetpy_qc
3
- Version: 1.22.0
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. |
@@ -83,6 +83,7 @@ print(json_object)
83
83
  | `TestBrightnessTemperature` | Test that brightness temperature data are valid. |
84
84
  | `TestCFConvention` | Test compliance with the CF metadata conventions. |
85
85
  | `TestComment` | Check that variables have expected comments. |
86
+ | `TestCoordinateVariables` | Test dimensions of coordinate variables are correct. |
86
87
  | `TestDataCoverage` | Test that file contains enough data. |
87
88
  | `TestDataModel` | Test netCDF data model. |
88
89
  | `TestDataTypes` | Check that variables have expected data types. |
@@ -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
  # ----------------------------- #
@@ -1,6 +1,6 @@
1
1
  """Cloudnetpy-QC version."""
2
2
 
3
3
  MAJOR = 1
4
- MINOR = 22
4
+ MINOR = 23
5
5
  PATCH = 0
6
6
  __version__ = f"{MAJOR}.{MINOR}.{PATCH}"
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: cloudnetpy_qc
3
- Version: 1.22.0
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. |
File without changes
File without changes