cloudnetpy-qc 1.25.5__tar.gz → 1.25.7__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.5/cloudnetpy_qc.egg-info → cloudnetpy_qc-1.25.7}/PKG-INFO +1 -1
  2. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/cloudnetpy_qc/quality.py +6 -4
  3. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/cloudnetpy_qc/variables.py +5 -20
  4. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/cloudnetpy_qc/version.py +1 -1
  5. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7/cloudnetpy_qc.egg-info}/PKG-INFO +1 -1
  6. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/LICENSE +0 -0
  7. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/MANIFEST.in +0 -0
  8. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/README.md +0 -0
  9. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/cloudnetpy_qc/__init__.py +0 -0
  10. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/cloudnetpy_qc/coverage.py +0 -0
  11. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/cloudnetpy_qc/data/area-type-table.xml +0 -0
  12. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/cloudnetpy_qc/data/cf-standard-name-table.xml +0 -0
  13. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/cloudnetpy_qc/data/data_quality_config.ini +0 -0
  14. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/cloudnetpy_qc/data/standardized-region-list.xml +0 -0
  15. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/cloudnetpy_qc/py.typed +0 -0
  16. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/cloudnetpy_qc/utils.py +0 -0
  17. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/cloudnetpy_qc.egg-info/SOURCES.txt +0 -0
  18. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/cloudnetpy_qc.egg-info/dependency_links.txt +0 -0
  19. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/cloudnetpy_qc.egg-info/requires.txt +0 -0
  20. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/cloudnetpy_qc.egg-info/top_level.txt +0 -0
  21. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/pyproject.toml +0 -0
  22. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/setup.cfg +0 -0
  23. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/tests/test_qc.py +0 -0
  24. {cloudnetpy_qc-1.25.5 → cloudnetpy_qc-1.25.7}/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.5
3
+ Version: 1.25.7
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
@@ -821,17 +821,19 @@ class TestCoordinates(Test):
821
821
  else:
822
822
  file_lat, file_lon = utils.average_coordinate(file_lat, file_lon)
823
823
  site_lat, site_lon = utils.average_coordinate(site_lat, site_lon)
824
+ file_lat = np.atleast_1d(file_lat)
825
+ file_lon = np.atleast_1d(file_lon)
826
+ site_lat = np.atleast_1d(site_lat)
827
+ site_lon = np.atleast_1d(site_lon)
824
828
 
825
- dist = np.atleast_1d(
826
- utils.haversine(site_lat, site_lon, file_lat, file_lon)
827
- )
829
+ dist = utils.haversine(site_lat, site_lon, file_lat, file_lon)
828
830
  i = np.argmax(dist)
829
831
  max_dist = self._calc_max_dist(site_lat, site_lon)
830
832
  if dist[i] > max_dist:
831
833
  self._add_error(
832
834
  f"Variables 'latitude' and 'longitude' do not match "
833
835
  f"the site coordinates: "
834
- f"expected ({site_lat:.3f},\u00a0{site_lon:.3f}) "
836
+ f"expected ({site_lat[i]:.3f},\u00a0{site_lon[i]:.3f}) "
835
837
  f"but received ({file_lat[i]:.3f},\u00a0{file_lon[i]:.3f}), "
836
838
  f"distance {round(dist[i])}\u00a0km"
837
839
  )
@@ -747,43 +747,28 @@ VARIABLES = {
747
747
  "potential_temperature": Variable(
748
748
  long_name="Potential temperature",
749
749
  units="K",
750
- required=[
751
- Product.MWR_SINGLE,
752
- Product.MWR_MULTI,
753
- ],
750
+ required=[Product.MWR_MULTI],
754
751
  ),
755
752
  "equivalent_potential_temperature": Variable(
756
753
  long_name="Equivalent potential temperature",
757
754
  units="K",
758
- required=[
759
- Product.MWR_SINGLE,
760
- Product.MWR_MULTI,
761
- ],
755
+ required=[Product.MWR_MULTI],
762
756
  ),
763
757
  "relative_humidity": Variable(
764
758
  long_name="Relative humidity",
765
759
  standard_name="relative_humidity",
766
- required=[
767
- Product.MWR_SINGLE,
768
- Product.MWR_MULTI,
769
- ],
760
+ required=[Product.MWR_MULTI],
770
761
  ),
771
762
  "temperature_quality_flag": Variable(
772
763
  long_name="Temperature quality flag",
773
764
  units="1",
774
- required=[
775
- Product.MWR_SINGLE,
776
- Product.MWR_MULTI,
777
- ],
765
+ required=[Product.MWR_MULTI],
778
766
  dtype=Dtype.INT,
779
767
  ),
780
768
  "temperature_quality_flag_status": Variable(
781
769
  long_name="Temperature quality flag status",
782
770
  units="1",
783
- required=[
784
- Product.MWR_SINGLE,
785
- Product.MWR_MULTI,
786
- ],
771
+ required=[Product.MWR_MULTI],
787
772
  dtype=Dtype.INT,
788
773
  ),
789
774
  # ---------------------------------------
@@ -2,5 +2,5 @@
2
2
 
3
3
  MAJOR = 1
4
4
  MINOR = 25
5
- PATCH = 5
5
+ PATCH = 7
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.5
3
+ Version: 1.25.7
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