cloudnetpy-qc 1.30.1__tar.gz → 1.30.2__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.30.1/cloudnetpy_qc.egg-info → cloudnetpy_qc-1.30.2}/PKG-INFO +1 -1
  2. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/cloudnetpy_qc/quality.py +11 -2
  3. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/cloudnetpy_qc/variables.py +12 -4
  4. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/cloudnetpy_qc/version.py +1 -1
  5. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2/cloudnetpy_qc.egg-info}/PKG-INFO +1 -1
  6. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/LICENSE +0 -0
  7. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/MANIFEST.in +0 -0
  8. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/README.md +0 -0
  9. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/cloudnetpy_qc/__init__.py +0 -0
  10. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/cloudnetpy_qc/coverage.py +0 -0
  11. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/cloudnetpy_qc/data/area-type-table.xml +0 -0
  12. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/cloudnetpy_qc/data/cf-standard-name-table.xml +0 -0
  13. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/cloudnetpy_qc/data/data_quality_config.ini +0 -0
  14. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/cloudnetpy_qc/data/standardized-region-list.xml +0 -0
  15. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/cloudnetpy_qc/py.typed +0 -0
  16. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/cloudnetpy_qc/utils.py +0 -0
  17. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/cloudnetpy_qc.egg-info/SOURCES.txt +0 -0
  18. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/cloudnetpy_qc.egg-info/dependency_links.txt +0 -0
  19. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/cloudnetpy_qc.egg-info/requires.txt +0 -0
  20. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/cloudnetpy_qc.egg-info/top_level.txt +0 -0
  21. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/pyproject.toml +0 -0
  22. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/setup.cfg +0 -0
  23. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/tests/test_qc.py +0 -0
  24. {cloudnetpy_qc-1.30.1 → cloudnetpy_qc-1.30.2}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloudnetpy_qc
3
- Version: 1.30.1
3
+ Version: 1.30.2
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
@@ -224,7 +224,11 @@ class FindVariableOutliers(Test):
224
224
  self._add_info(msg)
225
225
 
226
226
  def _get_limits(self, key: str) -> tuple[float, float] | None:
227
- if key == "height" and self.product in (Product.CPR, Product.CPR_VALIDATION):
227
+ if key == "height" and self.product in (
228
+ Product.CPR,
229
+ Product.CPR_VALIDATION,
230
+ Product.CPR_TC_VALIDATION,
231
+ ):
228
232
  return None
229
233
  if key == "air_pressure":
230
234
  pressure = utils.calc_pressure(np.mean(self.nc["altitude"][:]))
@@ -294,7 +298,7 @@ class TestZenithAngle(Test):
294
298
  class TestDataCoverage(Test):
295
299
  name = "Data coverage"
296
300
  description = "Test that file contains enough data."
297
- products = Product.all() - {Product.CPR_VALIDATION}
301
+ products = Product.all() - {Product.CPR_VALIDATION, Product.CPR_TC_VALIDATION}
298
302
 
299
303
  def run(self):
300
304
  coverage, expected_res, actual_res = data_coverage(self.nc)
@@ -454,6 +458,10 @@ class TestGlobalAttributes(Test):
454
458
  product == Product.CPR_VALIDATION
455
459
  and name in ("cpr_l1b_baseline", "cpr_l1b_filename")
456
460
  )
461
+ or (
462
+ product == Product.CPR_TC_VALIDATION
463
+ and name in ("cpr_2a_baseline", "cpr_2a_filename")
464
+ )
457
465
  )
458
466
 
459
467
  def run(self):
@@ -667,6 +675,7 @@ class TestRangeAndHeight(Test):
667
675
  Product.MWR,
668
676
  Product.CPR,
669
677
  Product.CPR_VALIDATION,
678
+ Product.CPR_TC_VALIDATION,
670
679
  }
671
680
 
672
681
  def run(self):
@@ -42,6 +42,7 @@ class Product(Enum):
42
42
  L3_LWC = "l3-lwc"
43
43
  CPR = "cpr-simulation"
44
44
  CPR_VALIDATION = "cpr-validation"
45
+ CPR_TC_VALIDATION = "cpr-tc-validation"
45
46
 
46
47
  @classmethod
47
48
  def all(cls) -> set[Product]:
@@ -79,6 +80,7 @@ LEVELS: dict[Product, Level] = {
79
80
  Product.L3_LWC: "3",
80
81
  Product.CPR: "3",
81
82
  Product.CPR_VALIDATION: "3",
83
+ Product.CPR_TC_VALIDATION: "3",
82
84
  }
83
85
 
84
86
 
@@ -912,7 +914,7 @@ VARIABLES = {
912
914
  "time_cpr": Variable(
913
915
  long_name="Time UTC",
914
916
  units=time_units,
915
- required=[Product.CPR_VALIDATION],
917
+ required=[Product.CPR_VALIDATION, Product.CPR_TC_VALIDATION],
916
918
  dtype=Dtype.DOUBLE,
917
919
  ),
918
920
  "echo_cpr": Variable(
@@ -928,17 +930,17 @@ VARIABLES = {
928
930
  "latitude_cpr": Variable(
929
931
  long_name="Latitude of CPR ground track",
930
932
  units="degree_north",
931
- required=[Product.CPR_VALIDATION],
933
+ required=[Product.CPR_VALIDATION, Product.CPR_TC_VALIDATION],
932
934
  ),
933
935
  "longitude_cpr": Variable(
934
936
  long_name="Longitude of CPR ground track",
935
937
  units="degree_east",
936
- required=[Product.CPR_VALIDATION],
938
+ required=[Product.CPR_VALIDATION, Product.CPR_TC_VALIDATION],
937
939
  ),
938
940
  "distance": Variable(
939
941
  long_name="Distance between site and CPR ground track",
940
942
  units="km",
941
- required=[Product.CPR_VALIDATION],
943
+ required=[Product.CPR_VALIDATION, Product.CPR_TC_VALIDATION],
942
944
  ),
943
945
  "latitude_msi": Variable(
944
946
  long_name="Latitude of MSI ground track",
@@ -955,6 +957,12 @@ VARIABLES = {
955
957
  units="m",
956
958
  required=[Product.CPR_VALIDATION],
957
959
  ),
960
+ "target_classification_cpr": Variable(
961
+ long_name="CPR target classification",
962
+ units="1",
963
+ dtype=Dtype.INT,
964
+ required=[Product.CPR_TC_VALIDATION],
965
+ ),
958
966
  # ----------------------------------------
959
967
  # Required in Epsilon (lidar)
960
968
  # ----------------------------------------
@@ -2,5 +2,5 @@
2
2
 
3
3
  MAJOR = 1
4
4
  MINOR = 30
5
- PATCH = 1
5
+ PATCH = 2
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.30.1
3
+ Version: 1.30.2
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
File without changes
File without changes
File without changes