cloudnetpy-qc 1.25.9__py3-none-any.whl → 1.26.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 CHANGED
@@ -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."
cloudnetpy_qc/version.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """Cloudnetpy-QC version."""
2
2
 
3
3
  MAJOR = 1
4
- MINOR = 25
5
- PATCH = 9
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.9
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
 
@@ -1,16 +1,16 @@
1
1
  cloudnetpy_qc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  cloudnetpy_qc/coverage.py,sha256=WeLiiGRYIjIvXo2QR7Z03WD_RPaV2D8d1R_oQiX68h8,2291
3
3
  cloudnetpy_qc/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- cloudnetpy_qc/quality.py,sha256=3-43LU4pzYAryAuAWifkRCxl2XqN7NzAEiYjNnJTOeE,38296
4
+ cloudnetpy_qc/quality.py,sha256=a39q7YISi5ryBmEp-3CpJ8nfe_CNCeh9dkrN4tOp1X8,38808
5
5
  cloudnetpy_qc/utils.py,sha256=zFVryl56le2cyfDSCyGCzMHACcsjK7AJZknii1fgfgg,5393
6
6
  cloudnetpy_qc/variables.py,sha256=GIbVYxPyN_X5d5HWR_eV1g6X_8GHCarRWz3nhWkpF3Q,51181
7
- cloudnetpy_qc/version.py,sha256=jYBo1MdSL5edbSet3i11rIi3JcL5Hzkfo-u_3lYRnGo,102
7
+ cloudnetpy_qc/version.py,sha256=mWK3-fS5EEqF4RqDfP_ZYVnuVUP6gNU-dSh-VKJheEU,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=tQpbRQUlA3iz_8wCRMJfdKrP8ByWiM2SxtqszSoxQeA,1242
11
11
  cloudnetpy_qc/data/standardized-region-list.xml,sha256=gLRE2G7RQLD9hmvW5dTzyK7XPhORxWv2bfbrvAp5Uto,6426
12
- cloudnetpy_qc-1.25.9.dist-info/licenses/LICENSE,sha256=P0wszB7Cq2M390SKaqT4DGvECfwGOMdTTdxsWBpEUUc,1094
13
- cloudnetpy_qc-1.25.9.dist-info/METADATA,sha256=YBdFv8_AFtSLe2nPoW_hup8v0zRNQLk_Xz3TElIdK0w,8193
14
- cloudnetpy_qc-1.25.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- cloudnetpy_qc-1.25.9.dist-info/top_level.txt,sha256=shrf8A1KyrrnhbHocc4gHmTl38YY-DHflgf-gXiKnKs,14
16
- cloudnetpy_qc-1.25.9.dist-info/RECORD,,
12
+ cloudnetpy_qc-1.26.0.dist-info/licenses/LICENSE,sha256=P0wszB7Cq2M390SKaqT4DGvECfwGOMdTTdxsWBpEUUc,1094
13
+ cloudnetpy_qc-1.26.0.dist-info/METADATA,sha256=hj19UAvUpDlWiCz4ET450Vy3WcKCPG4YFvb6MOaa6Q8,8315
14
+ cloudnetpy_qc-1.26.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ cloudnetpy_qc-1.26.0.dist-info/top_level.txt,sha256=shrf8A1KyrrnhbHocc4gHmTl38YY-DHflgf-gXiKnKs,14
16
+ cloudnetpy_qc-1.26.0.dist-info/RECORD,,