cloudnetpy-qc 1.26.4__tar.gz → 1.27.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.26.4/cloudnetpy_qc.egg-info → cloudnetpy_qc-1.27.0}/PKG-INFO +1 -1
  2. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/cloudnetpy_qc/data/data_quality_config.ini +7 -1
  3. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/cloudnetpy_qc/quality.py +6 -7
  4. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/cloudnetpy_qc/version.py +2 -2
  5. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0/cloudnetpy_qc.egg-info}/PKG-INFO +1 -1
  6. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/LICENSE +0 -0
  7. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/MANIFEST.in +0 -0
  8. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/README.md +0 -0
  9. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/cloudnetpy_qc/__init__.py +0 -0
  10. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/cloudnetpy_qc/coverage.py +0 -0
  11. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/cloudnetpy_qc/data/area-type-table.xml +0 -0
  12. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/cloudnetpy_qc/data/cf-standard-name-table.xml +0 -0
  13. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/cloudnetpy_qc/data/standardized-region-list.xml +0 -0
  14. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/cloudnetpy_qc/py.typed +0 -0
  15. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/cloudnetpy_qc/utils.py +0 -0
  16. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/cloudnetpy_qc/variables.py +0 -0
  17. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/cloudnetpy_qc.egg-info/SOURCES.txt +0 -0
  18. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/cloudnetpy_qc.egg-info/dependency_links.txt +0 -0
  19. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/cloudnetpy_qc.egg-info/requires.txt +0 -0
  20. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/cloudnetpy_qc.egg-info/top_level.txt +0 -0
  21. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/pyproject.toml +0 -0
  22. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/setup.cfg +0 -0
  23. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.0}/tests/test_qc.py +0 -0
  24. {cloudnetpy_qc-1.26.4 → cloudnetpy_qc-1.27.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.26.4
3
+ Version: 1.27.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
@@ -1,4 +1,4 @@
1
- [limits]
1
+ [defaults]
2
2
  Z = -100, 50
3
3
  Zh = -100, 50
4
4
  v = -20, 20
@@ -58,3 +58,9 @@ air_temperature = 184.0, 329.85
58
58
  relative_humidity = 0, 1.05
59
59
  wind_speed = 0, 100
60
60
  wind_direction = 0, 360
61
+ [mwr-single]
62
+ relative_humidity = -0.2, 2
63
+ [mwr-multi]
64
+ relative_humidity = -0.2, 2
65
+ [radar]
66
+ wind_direction = -0.1, 360.1
@@ -165,11 +165,6 @@ class Test:
165
165
  def _add_error(self, message: str | list):
166
166
  self._add_message(message, ErrorLevel.ERROR)
167
167
 
168
- def _read_config_keys(self, config_section: str) -> np.ndarray:
169
- field = "all" if "attr" in config_section else self.product.value
170
- keys = METADATA_CONFIG[config_section][field].split(",")
171
- return np.char.strip(keys)
172
-
173
168
  def _get_required_variables(self) -> dict:
174
169
  return {
175
170
  name: var
@@ -241,9 +236,13 @@ class FindVariableOutliers(Test):
241
236
  pressure = utils.calc_pressure(np.mean(self.nc["altitude"][:]))
242
237
  max_diff = pressure * 0.05
243
238
  return (pressure - max_diff, pressure + max_diff)
244
- if not DATA_CONFIG.has_option("limits", key):
239
+ if DATA_CONFIG.has_option(self.product.value, key):
240
+ section = self.product.value
241
+ elif DATA_CONFIG.has_option("defaults", key):
242
+ section = "defaults"
243
+ else:
245
244
  return None
246
- limit_min, limit_max = DATA_CONFIG.get("limits", key).split(",", maxsplit=1)
245
+ limit_min, limit_max = DATA_CONFIG.get(section, key).split(",", maxsplit=1)
247
246
  return (float(limit_min), float(limit_max))
248
247
 
249
248
  def _get_data(self, key: str) -> np.ndarray:
@@ -1,6 +1,6 @@
1
1
  """Cloudnetpy-QC version."""
2
2
 
3
3
  MAJOR = 1
4
- MINOR = 26
5
- PATCH = 4
4
+ MINOR = 27
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.26.4
3
+ Version: 1.27.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
File without changes
File without changes
File without changes