cloudnetpy-qc 1.25.5__py3-none-any.whl → 1.25.7__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 +6 -4
- cloudnetpy_qc/variables.py +5 -20
- cloudnetpy_qc/version.py +1 -1
- {cloudnetpy_qc-1.25.5.dist-info → cloudnetpy_qc-1.25.7.dist-info}/METADATA +1 -1
- {cloudnetpy_qc-1.25.5.dist-info → cloudnetpy_qc-1.25.7.dist-info}/RECORD +8 -8
- {cloudnetpy_qc-1.25.5.dist-info → cloudnetpy_qc-1.25.7.dist-info}/WHEEL +1 -1
- {cloudnetpy_qc-1.25.5.dist-info → cloudnetpy_qc-1.25.7.dist-info}/licenses/LICENSE +0 -0
- {cloudnetpy_qc-1.25.5.dist-info → cloudnetpy_qc-1.25.7.dist-info}/top_level.txt +0 -0
cloudnetpy_qc/quality.py
CHANGED
|
@@ -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/variables.py
CHANGED
|
@@ -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
|
# ---------------------------------------
|
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
|
-
cloudnetpy_qc/variables.py,sha256=
|
|
7
|
-
cloudnetpy_qc/version.py,sha256=
|
|
6
|
+
cloudnetpy_qc/variables.py,sha256=NM1oBVUB8RqW2U0XUQO7c92ZKvFWReL_M3hQMhClWeM,50532
|
|
7
|
+
cloudnetpy_qc/version.py,sha256=ZIxksgM5LjL2itqKyFPKkiJhrDN74Xtuu5JPLxYwZpg,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.7.dist-info/licenses/LICENSE,sha256=P0wszB7Cq2M390SKaqT4DGvECfwGOMdTTdxsWBpEUUc,1094
|
|
13
|
+
cloudnetpy_qc-1.25.7.dist-info/METADATA,sha256=a4DzBX8SPzLPxCd58jQfOv2kpX6f-_-Vhf7XXSkk0U0,8193
|
|
14
|
+
cloudnetpy_qc-1.25.7.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
|
|
15
|
+
cloudnetpy_qc-1.25.7.dist-info/top_level.txt,sha256=shrf8A1KyrrnhbHocc4gHmTl38YY-DHflgf-gXiKnKs,14
|
|
16
|
+
cloudnetpy_qc-1.25.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|