cloudnetpy 1.77.1__py3-none-any.whl → 1.77.2__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/instruments/bowtie.py +8 -0
- cloudnetpy/utils.py +2 -0
- cloudnetpy/version.py +1 -1
- {cloudnetpy-1.77.1.dist-info → cloudnetpy-1.77.2.dist-info}/METADATA +1 -1
- {cloudnetpy-1.77.1.dist-info → cloudnetpy-1.77.2.dist-info}/RECORD +9 -9
- {cloudnetpy-1.77.1.dist-info → cloudnetpy-1.77.2.dist-info}/WHEEL +1 -1
- {cloudnetpy-1.77.1.dist-info → cloudnetpy-1.77.2.dist-info}/entry_points.txt +0 -0
- {cloudnetpy-1.77.1.dist-info → cloudnetpy-1.77.2.dist-info}/licenses/LICENSE +0 -0
- {cloudnetpy-1.77.1.dist-info → cloudnetpy-1.77.2.dist-info}/top_level.txt +0 -0
cloudnetpy/instruments/bowtie.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
from os import PathLike
|
2
2
|
|
3
|
+
import numpy as np
|
4
|
+
|
3
5
|
from cloudnetpy import output
|
4
6
|
from cloudnetpy.constants import G_TO_KG, MM_H_TO_M_S
|
5
7
|
from cloudnetpy.exceptions import ValidTimeStampError
|
@@ -59,6 +61,7 @@ def bowtie2nc(
|
|
59
61
|
bowtie.add_site_geolocation()
|
60
62
|
bowtie.add_height()
|
61
63
|
bowtie.convert_units()
|
64
|
+
bowtie.fix_chirp_start_indices()
|
62
65
|
bowtie.test_if_all_masked()
|
63
66
|
attributes = output.add_time_attribute(ATTRIBUTES, bowtie.date)
|
64
67
|
output.update_attributes(bowtie.data, attributes)
|
@@ -76,6 +79,11 @@ class Bowtie(NcRadar):
|
|
76
79
|
self.data["rainfall_rate"].data *= MM_H_TO_M_S
|
77
80
|
self.data["relative_humidity"].data /= 100
|
78
81
|
|
82
|
+
def fix_chirp_start_indices(self) -> None:
|
83
|
+
ind = self.data["chirp_start_indices"].data
|
84
|
+
self.data["chirp_start_indices"].data = np.array([int(i) for i in ind])
|
85
|
+
self.data["chirp_start_indices"].data_type = "int32"
|
86
|
+
|
79
87
|
def check_date(self, date: str):
|
80
88
|
if "-".join(self.date) != date:
|
81
89
|
raise ValidTimeStampError
|
cloudnetpy/utils.py
CHANGED
@@ -826,6 +826,8 @@ def get_epoch(units: str) -> Epoch:
|
|
826
826
|
except IndexError:
|
827
827
|
return fallback
|
828
828
|
date = date.replace(",", "")
|
829
|
+
if "T" in date:
|
830
|
+
date = date[: date.index("T")]
|
829
831
|
try:
|
830
832
|
date_components = [int(x) for x in date.split("-")]
|
831
833
|
except ValueError:
|
cloudnetpy/version.py
CHANGED
@@ -8,8 +8,8 @@ cloudnetpy/exceptions.py,sha256=hYbUtBwjCIfxnPe_5mELDEw87AWITBrwuo7WYIEKmJ8,1579
|
|
8
8
|
cloudnetpy/metadata.py,sha256=lO7BCbVAzFoH3Nq-VuezYX0f7MnbG1Zp11g5GSiuQwM,6189
|
9
9
|
cloudnetpy/output.py,sha256=l0LoOhcGCBrg2EJ4NT1xZ7-UKWdV7X7yQ0fJmhkwJVc,15829
|
10
10
|
cloudnetpy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
|
-
cloudnetpy/utils.py,sha256=
|
12
|
-
cloudnetpy/version.py,sha256=
|
11
|
+
cloudnetpy/utils.py,sha256=FFV4MRoiJfcbbknMD5DM-VesY-7yCb8jzeeadyyijLg,33532
|
12
|
+
cloudnetpy/version.py,sha256=MBEzrrjK2C6qfoMHCRMYDIMl98CZIE1aPKuEZsjCPeo,72
|
13
13
|
cloudnetpy/categorize/__init__.py,sha256=s-SJaysvVpVVo5kidiruWQO6p3gv2TXwY1wEHYO5D6I,44
|
14
14
|
cloudnetpy/categorize/atmos_utils.py,sha256=RcmbKxm2COkE7WEya0mK3yX5rzUbrewRVh3ekm01RtM,10598
|
15
15
|
cloudnetpy/categorize/attenuation.py,sha256=Y_-fzmQTltWTqIZTulJhovC7a6ifpMcaAazDJcnMIOc,990
|
@@ -34,7 +34,7 @@ cloudnetpy/categorize/attenuations/melting_attenuation.py,sha256=9c9xoZHtGUbjFYJ
|
|
34
34
|
cloudnetpy/categorize/attenuations/rain_attenuation.py,sha256=qazJzRyXf9vbjJhh4yiFmABI4L57j5W_6YZ-6qjRiBI,2839
|
35
35
|
cloudnetpy/instruments/__init__.py,sha256=PEgrrQNoiOuN_ctYilmt4LV2QCLg1likPjJdWtuGlLs,528
|
36
36
|
cloudnetpy/instruments/basta.py,sha256=Lb_EhQTI93S5Bd9osDbCE_tC8gZreRsHz7D2_dFOjmE,3793
|
37
|
-
cloudnetpy/instruments/bowtie.py,sha256=
|
37
|
+
cloudnetpy/instruments/bowtie.py,sha256=jrEkOsZ4ScwmTN35rAwIbVHkHxQatFCHiuzBjVA4pJ0,3279
|
38
38
|
cloudnetpy/instruments/ceilo.py,sha256=qM3AkQKHUblhRCD42HsB6lr82giBH-0g_VzoWHZDgeA,9535
|
39
39
|
cloudnetpy/instruments/ceilometer.py,sha256=ati9-fUQ54K9tvynIPB-nlBYwtvBVaQtUCjVCLNB67w,12059
|
40
40
|
cloudnetpy/instruments/cl61d.py,sha256=g6DNBFju3wYhLFl32DKmC8pUup7y-EupXoUU0fuoGGA,1990
|
@@ -117,10 +117,10 @@ cloudnetpy/products/lwc.py,sha256=sl6Al2tuH3KkCBrPbWTmuz3jlD5UQJ4D6qBsn1tt2CQ,18
|
|
117
117
|
cloudnetpy/products/mie_lu_tables.nc,sha256=It4fYpqJXlqOgL8jeZ-PxGzP08PMrELIDVe55y9ob58,16637951
|
118
118
|
cloudnetpy/products/mwr_tools.py,sha256=8HPZpQMTojKZP1JS1S83IE0sxmbDE9bxlaWoqmGnUZE,6199
|
119
119
|
cloudnetpy/products/product_tools.py,sha256=uu4l6reuGbPcW3TgttbaSrqIKbyYGhBVTdnC7opKvmg,11101
|
120
|
-
cloudnetpy-1.77.
|
120
|
+
cloudnetpy-1.77.2.dist-info/licenses/LICENSE,sha256=wcZF72bdaoG9XugpyE95Juo7lBQOwLuTKBOhhtANZMM,1094
|
121
121
|
docs/source/conf.py,sha256=IKiFWw6xhUd8NrCg0q7l596Ck1d61XWeVjIFHVSG9Og,1490
|
122
|
-
cloudnetpy-1.77.
|
123
|
-
cloudnetpy-1.77.
|
124
|
-
cloudnetpy-1.77.
|
125
|
-
cloudnetpy-1.77.
|
126
|
-
cloudnetpy-1.77.
|
122
|
+
cloudnetpy-1.77.2.dist-info/METADATA,sha256=soDh6zzIkRMSYIeYp6NiOTksTWZX0zttG8MnWJuFjNs,5796
|
123
|
+
cloudnetpy-1.77.2.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
124
|
+
cloudnetpy-1.77.2.dist-info/entry_points.txt,sha256=HhY7LwCFk4qFgDlXx_Fy983ZTd831WlhtdPIzV-Y3dY,51
|
125
|
+
cloudnetpy-1.77.2.dist-info/top_level.txt,sha256=ibSPWRr6ojS1i11rtBFz2_gkIe68mggj7aeswYfaOo0,16
|
126
|
+
cloudnetpy-1.77.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|