cloudnetpy-qc 1.25.8__tar.gz → 1.26.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 (24) hide show
  1. {cloudnetpy_qc-1.25.8/cloudnetpy_qc.egg-info → cloudnetpy_qc-1.26.0}/PKG-INFO +2 -1
  2. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/README.md +1 -0
  3. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/cloudnetpy_qc/quality.py +17 -0
  4. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/cloudnetpy_qc/variables.py +4 -0
  5. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/cloudnetpy_qc/version.py +2 -2
  6. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0/cloudnetpy_qc.egg-info}/PKG-INFO +2 -1
  7. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/LICENSE +0 -0
  8. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/MANIFEST.in +0 -0
  9. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/cloudnetpy_qc/__init__.py +0 -0
  10. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/cloudnetpy_qc/coverage.py +0 -0
  11. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/cloudnetpy_qc/data/area-type-table.xml +0 -0
  12. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/cloudnetpy_qc/data/cf-standard-name-table.xml +0 -0
  13. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/cloudnetpy_qc/data/data_quality_config.ini +0 -0
  14. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/cloudnetpy_qc/data/standardized-region-list.xml +0 -0
  15. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/cloudnetpy_qc/py.typed +0 -0
  16. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/cloudnetpy_qc/utils.py +0 -0
  17. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/cloudnetpy_qc.egg-info/SOURCES.txt +0 -0
  18. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/cloudnetpy_qc.egg-info/dependency_links.txt +0 -0
  19. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/cloudnetpy_qc.egg-info/requires.txt +0 -0
  20. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/cloudnetpy_qc.egg-info/top_level.txt +0 -0
  21. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/pyproject.toml +0 -0
  22. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/setup.cfg +0 -0
  23. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/tests/test_qc.py +0 -0
  24. {cloudnetpy_qc-1.25.8 → cloudnetpy_qc-1.26.0}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloudnetpy_qc
3
- Version: 1.25.8
3
+ Version: 1.26.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
@@ -163,6 +163,7 @@ print(json_object)
163
163
  | `TestUnits` | Check that variables have expected units. |
164
164
  | `TestVariableNames` | Check that file contains required variables. |
165
165
  | `TestVariableNamesDefined` | Check that variables have expected names. |
166
+ | `TestZenithAngle` | Test lidar zenith angle. |
166
167
 
167
168
  ## License
168
169
 
@@ -110,6 +110,7 @@ print(json_object)
110
110
  | `TestUnits` | Check that variables have expected units. |
111
111
  | `TestVariableNames` | Check that file contains required variables. |
112
112
  | `TestVariableNamesDefined` | Check that variables have expected names. |
113
+ | `TestZenithAngle` | Test lidar zenith angle. |
113
114
 
114
115
  ## License
115
116
 
@@ -281,6 +281,23 @@ class FindFolding(Test):
281
281
  )
282
282
 
283
283
 
284
+ class TestZenithAngle(Test):
285
+ name = "Lidar zenith angle"
286
+ description = "Test lidar zenith angle."
287
+ products = [Product.LIDAR]
288
+
289
+ def run(self):
290
+ key = "zenith_angle"
291
+ if key not in self.nc.variables:
292
+ self._add_error(f"Zenith angle, '{key}', is missing.")
293
+ return
294
+ max_value = np.max(self.nc[key][:])
295
+ if max_value < 1:
296
+ self._add_info(
297
+ f"Zenith angle {max_value} degrees – risk of specular reflection."
298
+ )
299
+
300
+
284
301
  class TestDataCoverage(Test):
285
302
  name = "Data coverage"
286
303
  description = "Test that file contains enough data."
@@ -1725,4 +1725,8 @@ VARIABLES = {
1725
1725
  comment="SNR threshold used in data screening.",
1726
1726
  dtype=Dtype.FLOAT,
1727
1727
  ),
1728
+ "correction_bits": Variable(
1729
+ long_name="Correction bits",
1730
+ dtype=Dtype.INT,
1731
+ ),
1728
1732
  }
@@ -1,6 +1,6 @@
1
1
  """Cloudnetpy-QC version."""
2
2
 
3
3
  MAJOR = 1
4
- MINOR = 25
5
- PATCH = 8
4
+ MINOR = 26
5
+ PATCH = 0
6
6
  __version__ = f"{MAJOR}.{MINOR}.{PATCH}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloudnetpy_qc
3
- Version: 1.25.8
3
+ Version: 1.26.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
@@ -163,6 +163,7 @@ print(json_object)
163
163
  | `TestUnits` | Check that variables have expected units. |
164
164
  | `TestVariableNames` | Check that file contains required variables. |
165
165
  | `TestVariableNamesDefined` | Check that variables have expected names. |
166
+ | `TestZenithAngle` | Test lidar zenith angle. |
166
167
 
167
168
  ## License
168
169
 
File without changes
File without changes