cloudnetpy-qc 1.25.4__py3-none-any.whl → 1.25.6__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.4.dist-info → cloudnetpy_qc-1.25.6.dist-info}/METADATA +1 -1
- {cloudnetpy_qc-1.25.4.dist-info → cloudnetpy_qc-1.25.6.dist-info}/RECORD +7 -7
- {cloudnetpy_qc-1.25.4.dist-info → cloudnetpy_qc-1.25.6.dist-info}/WHEEL +1 -1
- {cloudnetpy_qc-1.25.4.dist-info → cloudnetpy_qc-1.25.6.dist-info}/licenses/LICENSE +0 -0
- {cloudnetpy_qc-1.25.4.dist-info → cloudnetpy_qc-1.25.6.dist-info}/top_level.txt +0 -0
cloudnetpy_qc/quality.py
CHANGED
|
@@ -569,7 +569,7 @@ class TestIfRangeCorrected(Test):
|
|
|
569
569
|
sgl_res = scipy.stats.siegelslopes(y, x)
|
|
570
570
|
residuals = np.abs(y - (sgl_res.intercept + sgl_res.slope * x))
|
|
571
571
|
outliers = residuals > 20 * np.percentile(
|
|
572
|
-
residuals, 25
|
|
572
|
+
residuals.compressed(), 25
|
|
573
573
|
) # Ad hoc outlier detection
|
|
574
574
|
res = scipy.stats.pearsonr(x[~outliers], y[~outliers])
|
|
575
575
|
if res.statistic < 0.75:
|
|
@@ -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 =
|
|
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
|
)
|
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=s6kWzYZF9IakMAVGuf_DkoWWvonDUsR-FegHlvZo4Yc,38144
|
|
5
5
|
cloudnetpy_qc/utils.py,sha256=zFVryl56le2cyfDSCyGCzMHACcsjK7AJZknii1fgfgg,5393
|
|
6
6
|
cloudnetpy_qc/variables.py,sha256=ycgC2DvXA_6gLQB-sbSSFc3YPqVTTLkC8NeQcm4s2WM,50807
|
|
7
|
-
cloudnetpy_qc/version.py,sha256=
|
|
7
|
+
cloudnetpy_qc/version.py,sha256=bFLPF6xnFqZjtSjA3EOYfEbTQzQ1A5MDmh3e7sCg7E0,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.6.dist-info/licenses/LICENSE,sha256=P0wszB7Cq2M390SKaqT4DGvECfwGOMdTTdxsWBpEUUc,1094
|
|
13
|
+
cloudnetpy_qc-1.25.6.dist-info/METADATA,sha256=fYsYoTIAv-CORQS1XFDDiiCxadptIHvl74p7l1dQDqo,8193
|
|
14
|
+
cloudnetpy_qc-1.25.6.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
|
|
15
|
+
cloudnetpy_qc-1.25.6.dist-info/top_level.txt,sha256=shrf8A1KyrrnhbHocc4gHmTl38YY-DHflgf-gXiKnKs,14
|
|
16
|
+
cloudnetpy_qc-1.25.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|