cloudnetpy 1.86.2__py3-none-any.whl → 1.86.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.
Potentially problematic release.
This version of cloudnetpy might be problematic. Click here for more details.
- cloudnetpy/concat_lib.py +12 -1
- cloudnetpy/version.py +1 -1
- {cloudnetpy-1.86.2.dist-info → cloudnetpy-1.86.3.dist-info}/METADATA +1 -1
- {cloudnetpy-1.86.2.dist-info → cloudnetpy-1.86.3.dist-info}/RECORD +8 -8
- {cloudnetpy-1.86.2.dist-info → cloudnetpy-1.86.3.dist-info}/WHEEL +0 -0
- {cloudnetpy-1.86.2.dist-info → cloudnetpy-1.86.3.dist-info}/entry_points.txt +0 -0
- {cloudnetpy-1.86.2.dist-info → cloudnetpy-1.86.3.dist-info}/licenses/LICENSE +0 -0
- {cloudnetpy-1.86.2.dist-info → cloudnetpy-1.86.3.dist-info}/top_level.txt +0 -0
cloudnetpy/concat_lib.py
CHANGED
|
@@ -132,13 +132,24 @@ class _Concat:
|
|
|
132
132
|
concat_dimension: str = "time",
|
|
133
133
|
interp_dim: str = "range",
|
|
134
134
|
) -> None:
|
|
135
|
-
self.filenames = sorted(map(Path, filenames), key=lambda f: f.name)
|
|
136
135
|
self.concat_dimension = concat_dimension
|
|
137
136
|
self.interp_dim = interp_dim
|
|
137
|
+
self.filenames = sorted(
|
|
138
|
+
[Path(filename) for filename in filenames if self._is_valid_file(filename)],
|
|
139
|
+
key=lambda f: f.name,
|
|
140
|
+
)
|
|
138
141
|
self.first_filename = self.filenames[0]
|
|
139
142
|
self.first_file = netCDF4.Dataset(self.first_filename)
|
|
140
143
|
self.concatenated_file = self._init_output_file(output_file)
|
|
141
144
|
|
|
145
|
+
def _is_valid_file(self, filename: str | PathLike) -> bool:
|
|
146
|
+
# Added to handle strange .znc files with no time and huge range
|
|
147
|
+
# dimension resulting in large memory usage (e.g. Jülich 2019-05-18).
|
|
148
|
+
with netCDF4.Dataset(filename) as nc:
|
|
149
|
+
return (
|
|
150
|
+
nc[self.concat_dimension].size > 0 and nc[self.interp_dim].size < 10_000
|
|
151
|
+
)
|
|
152
|
+
|
|
142
153
|
def create_global_attributes(self, new_attributes: dict | None) -> None:
|
|
143
154
|
"""Copies global attributes from one of the source files."""
|
|
144
155
|
_copy_attributes(self.first_file, self.concatenated_file)
|
cloudnetpy/version.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
cloudnetpy/__init__.py,sha256=X_FqY-4yg5GUj5Edo14SToLEos6JIsC3fN-v1FUgQoA,43
|
|
2
2
|
cloudnetpy/cli.py,sha256=kG48AI5wNK9MfxiUsQPiz56BQLgAZ3AyN0ehUO6MyuI,20892
|
|
3
3
|
cloudnetpy/cloudnetarray.py,sha256=I_U1W2rEXw8lbLwg3XBrr_qHGPqhQG9z_ouvVEg7p24,4908
|
|
4
|
-
cloudnetpy/concat_lib.py,sha256=
|
|
4
|
+
cloudnetpy/concat_lib.py,sha256=CkSYzTLzP3bVLA7Hp2Pq49okTz4eoCxzIGna0A9izPw,13695
|
|
5
5
|
cloudnetpy/constants.py,sha256=YnoSzZm35NDooJfhlulSJBc7g0eSchT3yGytRaTaJEI,845
|
|
6
6
|
cloudnetpy/datasource.py,sha256=EMJ4UHD8Z-JJ9Q82S7RgU1I2q4Z0RcBzBMKUAIwnZBI,6356
|
|
7
7
|
cloudnetpy/exceptions.py,sha256=ZB3aUwjVRznR0CcZ5sZHrB0yz13URDf52Ksv7G7C7EA,1817
|
|
@@ -9,7 +9,7 @@ cloudnetpy/metadata.py,sha256=qqLXSUVhIi6H_Z1zlfXeEkc9qBqA1XO-UwsCVxjIcfk,7317
|
|
|
9
9
|
cloudnetpy/output.py,sha256=NpuxmtLk2JLTdubCupdL4rFbx30YqgeU6vwAe_v8thc,15133
|
|
10
10
|
cloudnetpy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
cloudnetpy/utils.py,sha256=9MMYok1A7oJS2XBkIFhaiDWt_MYLo8tLzF3_880masM,34321
|
|
12
|
-
cloudnetpy/version.py,sha256=
|
|
12
|
+
cloudnetpy/version.py,sha256=fFMhfzPgAQTnH4EcNXqfMkShM7r1U4B56xzlJp8XWrQ,72
|
|
13
13
|
cloudnetpy/categorize/__init__.py,sha256=gtvzWr0IDRn2oA6yHBvinEhTGTuub-JkrOv93lBsgrE,61
|
|
14
14
|
cloudnetpy/categorize/atmos_utils.py,sha256=uWc9TABVYPI0sn4H5Az9Jf6NVRaWyEKIi17f0pAJQxE,10679
|
|
15
15
|
cloudnetpy/categorize/attenuation.py,sha256=Y_-fzmQTltWTqIZTulJhovC7a6ifpMcaAazDJcnMIOc,990
|
|
@@ -118,10 +118,10 @@ cloudnetpy/products/lwc.py,sha256=xsNiiG6dGKIkWaFk0xWTabc1bZ4ULf6SqcqHs7itAUk,19
|
|
|
118
118
|
cloudnetpy/products/mie_lu_tables.nc,sha256=It4fYpqJXlqOgL8jeZ-PxGzP08PMrELIDVe55y9ob58,16637951
|
|
119
119
|
cloudnetpy/products/mwr_tools.py,sha256=MMWnp68U7bv157-CPB2VeTQvaR6zl7sexbBT_kJ_pn8,6734
|
|
120
120
|
cloudnetpy/products/product_tools.py,sha256=eyqIw_0KhlpmmYQE69RpGdRIAOW7JVPlEgkTBp2kdps,11302
|
|
121
|
-
cloudnetpy-1.86.
|
|
121
|
+
cloudnetpy-1.86.3.dist-info/licenses/LICENSE,sha256=wcZF72bdaoG9XugpyE95Juo7lBQOwLuTKBOhhtANZMM,1094
|
|
122
122
|
docs/source/conf.py,sha256=IKiFWw6xhUd8NrCg0q7l596Ck1d61XWeVjIFHVSG9Og,1490
|
|
123
|
-
cloudnetpy-1.86.
|
|
124
|
-
cloudnetpy-1.86.
|
|
125
|
-
cloudnetpy-1.86.
|
|
126
|
-
cloudnetpy-1.86.
|
|
127
|
-
cloudnetpy-1.86.
|
|
123
|
+
cloudnetpy-1.86.3.dist-info/METADATA,sha256=QQLkcSX05Op0Lks5K_uNbwteImRdke5u9CUjLkAR63I,5836
|
|
124
|
+
cloudnetpy-1.86.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
125
|
+
cloudnetpy-1.86.3.dist-info/entry_points.txt,sha256=HhY7LwCFk4qFgDlXx_Fy983ZTd831WlhtdPIzV-Y3dY,51
|
|
126
|
+
cloudnetpy-1.86.3.dist-info/top_level.txt,sha256=ibSPWRr6ojS1i11rtBFz2_gkIe68mggj7aeswYfaOo0,16
|
|
127
|
+
cloudnetpy-1.86.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|