cloudnetpy-qc 1.25.2__py3-none-any.whl → 1.25.3__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 +7 -5
- cloudnetpy_qc/version.py +1 -1
- {cloudnetpy_qc-1.25.2.dist-info → cloudnetpy_qc-1.25.3.dist-info}/METADATA +1 -1
- {cloudnetpy_qc-1.25.2.dist-info → cloudnetpy_qc-1.25.3.dist-info}/RECORD +7 -7
- {cloudnetpy_qc-1.25.2.dist-info → cloudnetpy_qc-1.25.3.dist-info}/WHEEL +0 -0
- {cloudnetpy_qc-1.25.2.dist-info → cloudnetpy_qc-1.25.3.dist-info}/licenses/LICENSE +0 -0
- {cloudnetpy_qc-1.25.2.dist-info → cloudnetpy_qc-1.25.3.dist-info}/top_level.txt +0 -0
cloudnetpy_qc/quality.py
CHANGED
|
@@ -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
|
|
@@ -870,12 +870,14 @@ class TestCoordinates(Test):
|
|
|
870
870
|
|
|
871
871
|
def _calc_max_dist(self, latitude, longitude):
|
|
872
872
|
if self.nc.cloudnet_file_type == "model":
|
|
873
|
+
mean_lat = np.mean(latitude)
|
|
874
|
+
mean_lon = np.mean(longitude)
|
|
873
875
|
angle = 1 # Model resolution should be at least 1 degrees.
|
|
874
876
|
half_angle = angle / 2
|
|
875
|
-
min_lat = np.maximum(-90,
|
|
876
|
-
max_lat = np.minimum(90,
|
|
877
|
-
min_lon = np.maximum(-180,
|
|
878
|
-
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)
|
|
879
881
|
return utils.haversine(min_lat, min_lon, max_lat, max_lon)
|
|
880
882
|
return 10
|
|
881
883
|
|
cloudnetpy_qc/version.py
CHANGED
|
@@ -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=
|
|
4
|
+
cloudnetpy_qc/quality.py,sha256=WNuXeYMHdOZRY-C94asHiZqPdMOUKB6z2CmzVYYwW54,37966
|
|
5
5
|
cloudnetpy_qc/utils.py,sha256=zFVryl56le2cyfDSCyGCzMHACcsjK7AJZknii1fgfgg,5393
|
|
6
6
|
cloudnetpy_qc/variables.py,sha256=YrOw2qCdY8eTT3nlExpdtFU5YmVCC-yF9c0VQ-wWDzw,50851
|
|
7
|
-
cloudnetpy_qc/version.py,sha256=
|
|
7
|
+
cloudnetpy_qc/version.py,sha256=KuUawheHG17X9hdClyuLw0bxFIVrMiLXJHs4rGXMXNs,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=NvW9oPvPwMR1YRIwxajTwvF83oarcwsxkUqnQgqPO3k,4406495
|
|
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.
|
|
13
|
-
cloudnetpy_qc-1.25.
|
|
14
|
-
cloudnetpy_qc-1.25.
|
|
15
|
-
cloudnetpy_qc-1.25.
|
|
16
|
-
cloudnetpy_qc-1.25.
|
|
12
|
+
cloudnetpy_qc-1.25.3.dist-info/licenses/LICENSE,sha256=P0wszB7Cq2M390SKaqT4DGvECfwGOMdTTdxsWBpEUUc,1094
|
|
13
|
+
cloudnetpy_qc-1.25.3.dist-info/METADATA,sha256=a6SXTmJmWK8SZktoE4Au_iS5dsS15-HXrkXQMDyxH5o,8193
|
|
14
|
+
cloudnetpy_qc-1.25.3.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
15
|
+
cloudnetpy_qc-1.25.3.dist-info/top_level.txt,sha256=shrf8A1KyrrnhbHocc4gHmTl38YY-DHflgf-gXiKnKs,14
|
|
16
|
+
cloudnetpy_qc-1.25.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|