cloudnetpy-qc 1.25.1__tar.gz → 1.25.3__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.
- {cloudnetpy_qc-1.25.1/cloudnetpy_qc.egg-info → cloudnetpy_qc-1.25.3}/PKG-INFO +1 -1
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/cloudnetpy_qc/quality.py +12 -6
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/cloudnetpy_qc/version.py +1 -1
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3/cloudnetpy_qc.egg-info}/PKG-INFO +1 -1
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/LICENSE +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/MANIFEST.in +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/README.md +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/cloudnetpy_qc/__init__.py +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/cloudnetpy_qc/coverage.py +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/cloudnetpy_qc/data/area-type-table.xml +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/cloudnetpy_qc/data/cf-standard-name-table.xml +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/cloudnetpy_qc/data/data_quality_config.ini +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/cloudnetpy_qc/data/standardized-region-list.xml +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/cloudnetpy_qc/py.typed +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/cloudnetpy_qc/utils.py +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/cloudnetpy_qc/variables.py +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/cloudnetpy_qc.egg-info/SOURCES.txt +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/cloudnetpy_qc.egg-info/dependency_links.txt +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/cloudnetpy_qc.egg-info/requires.txt +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/cloudnetpy_qc.egg-info/top_level.txt +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/pyproject.toml +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/setup.cfg +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/tests/test_qc.py +0 -0
- {cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/tests/test_utils.py +0 -0
|
@@ -116,7 +116,7 @@ def run_tests(
|
|
|
116
116
|
test_instance._add_error(
|
|
117
117
|
f"Failed to run test: {err} ({type(err).__name__})"
|
|
118
118
|
)
|
|
119
|
-
logging.exception("Failed to run
|
|
119
|
+
logging.exception(f"Failed to run {cls.__name__}:")
|
|
120
120
|
test_reports.append(test_instance.report)
|
|
121
121
|
if test_instance.coverage is not None:
|
|
122
122
|
coverage = test_instance.coverage
|
|
@@ -808,7 +808,11 @@ class TestCoordinates(Test):
|
|
|
808
808
|
file_lon = np.atleast_1d(self.nc["longitude"][:])
|
|
809
809
|
file_lon[file_lon > 180] -= 360
|
|
810
810
|
|
|
811
|
-
if
|
|
811
|
+
if (
|
|
812
|
+
self.site_meta["time"] is not None
|
|
813
|
+
and file_lat.size > 1
|
|
814
|
+
and file_lon.size > 1
|
|
815
|
+
):
|
|
812
816
|
site_time = self._read_site_time()
|
|
813
817
|
file_time = self._read_file_time()
|
|
814
818
|
idx = utils.find_closest(file_time, site_time)
|
|
@@ -866,12 +870,14 @@ class TestCoordinates(Test):
|
|
|
866
870
|
|
|
867
871
|
def _calc_max_dist(self, latitude, longitude):
|
|
868
872
|
if self.nc.cloudnet_file_type == "model":
|
|
873
|
+
mean_lat = np.mean(latitude)
|
|
874
|
+
mean_lon = np.mean(longitude)
|
|
869
875
|
angle = 1 # Model resolution should be at least 1 degrees.
|
|
870
876
|
half_angle = angle / 2
|
|
871
|
-
min_lat = np.maximum(-90,
|
|
872
|
-
max_lat = np.minimum(90,
|
|
873
|
-
min_lon = np.maximum(-180,
|
|
874
|
-
max_lon = np.minimum(180,
|
|
877
|
+
min_lat = np.maximum(-90, mean_lat - half_angle)
|
|
878
|
+
max_lat = np.minimum(90, mean_lat + half_angle)
|
|
879
|
+
min_lon = np.maximum(-180, mean_lon - half_angle)
|
|
880
|
+
max_lon = np.minimum(180, mean_lon + half_angle)
|
|
875
881
|
return utils.haversine(min_lat, min_lon, max_lat, max_lon)
|
|
876
882
|
return 10
|
|
877
883
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cloudnetpy_qc-1.25.1 → cloudnetpy_qc-1.25.3}/cloudnetpy_qc/data/standardized-region-list.xml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|