doppy 0.2.1__cp310-abi3-win_amd64.whl → 0.2.2__cp310-abi3-win_amd64.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 doppy might be problematic. Click here for more details.
- doppy/product/__init__.py +2 -1
- doppy/product/wind.py +30 -2
- doppy/rs.pyd +0 -0
- {doppy-0.2.1.dist-info → doppy-0.2.2.dist-info}/METADATA +1 -1
- {doppy-0.2.1.dist-info → doppy-0.2.2.dist-info}/RECORD +9 -9
- {doppy-0.2.1.dist-info → doppy-0.2.2.dist-info}/WHEEL +0 -0
- {doppy-0.2.1.dist-info → doppy-0.2.2.dist-info}/entry_points.txt +0 -0
- {doppy-0.2.1.dist-info → doppy-0.2.2.dist-info}/license_files/LICENSE +0 -0
doppy/product/__init__.py
CHANGED
doppy/product/wind.py
CHANGED
|
@@ -18,6 +18,11 @@ import doppy
|
|
|
18
18
|
SelectionGroupKeyType: TypeAlias = tuple[int, int, tuple[int, ...]]
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
@dataclass
|
|
22
|
+
class Options:
|
|
23
|
+
azimuth_offset_deg: float | None
|
|
24
|
+
|
|
25
|
+
|
|
21
26
|
@dataclass
|
|
22
27
|
class Wind:
|
|
23
28
|
time: npt.NDArray[np.datetime64]
|
|
@@ -45,6 +50,7 @@ class Wind:
|
|
|
45
50
|
| Sequence[Path]
|
|
46
51
|
| Sequence[bytes]
|
|
47
52
|
| Sequence[BufferedIOBase],
|
|
53
|
+
options: Options | None = None,
|
|
48
54
|
) -> Wind:
|
|
49
55
|
raws = doppy.raw.HaloHpl.from_srcs(data)
|
|
50
56
|
|
|
@@ -60,6 +66,9 @@ class Wind:
|
|
|
60
66
|
if len(raw.time) == 0:
|
|
61
67
|
raise doppy.exceptions.NoDataError("No suitable data for the wind product")
|
|
62
68
|
|
|
69
|
+
if options and options.azimuth_offset_deg:
|
|
70
|
+
raw.azimuth += options.azimuth_offset_deg
|
|
71
|
+
|
|
63
72
|
groups = _group_scans_by_azimuth_rotation(raw)
|
|
64
73
|
time_list = []
|
|
65
74
|
elevation_list = []
|
|
@@ -104,6 +113,7 @@ class Wind:
|
|
|
104
113
|
| Sequence[Path]
|
|
105
114
|
| Sequence[bytes]
|
|
106
115
|
| Sequence[BufferedIOBase],
|
|
116
|
+
options: Options | None = None,
|
|
107
117
|
) -> Wind:
|
|
108
118
|
raws = doppy.raw.WindCube.from_vad_srcs(data)
|
|
109
119
|
|
|
@@ -119,6 +129,9 @@ class Wind:
|
|
|
119
129
|
if len(raw.time) == 0:
|
|
120
130
|
raise doppy.exceptions.NoDataError("No suitable data for the wind product")
|
|
121
131
|
|
|
132
|
+
if options and options.azimuth_offset_deg:
|
|
133
|
+
raw.azimuth += options.azimuth_offset_deg
|
|
134
|
+
|
|
122
135
|
time_list = []
|
|
123
136
|
elevation_list = []
|
|
124
137
|
wind_list = []
|
|
@@ -159,6 +172,7 @@ class Wind:
|
|
|
159
172
|
| Sequence[Path]
|
|
160
173
|
| Sequence[bytes]
|
|
161
174
|
| Sequence[BufferedIOBase],
|
|
175
|
+
options: Options | None = None,
|
|
162
176
|
) -> Wind:
|
|
163
177
|
raws = doppy.raw.Wls70.from_srcs(data)
|
|
164
178
|
|
|
@@ -170,6 +184,20 @@ class Wind:
|
|
|
170
184
|
.sorted_by_time()
|
|
171
185
|
.non_strictly_increasing_timesteps_removed()
|
|
172
186
|
)
|
|
187
|
+
|
|
188
|
+
if options and options.azimuth_offset_deg:
|
|
189
|
+
theta = np.deg2rad(options.azimuth_offset_deg)
|
|
190
|
+
cos_theta = np.cos(theta)
|
|
191
|
+
sin_theta = np.sin(theta)
|
|
192
|
+
|
|
193
|
+
meridional_wind = (
|
|
194
|
+
sin_theta * raw.zonal_wind + cos_theta * raw.meridional_wind
|
|
195
|
+
)
|
|
196
|
+
zonal_wind = cos_theta * raw.zonal_wind - sin_theta * raw.meridional_wind
|
|
197
|
+
else:
|
|
198
|
+
meridional_wind = raw.meridional_wind
|
|
199
|
+
zonal_wind = raw.zonal_wind
|
|
200
|
+
|
|
173
201
|
mask = (
|
|
174
202
|
np.isnan(raw.meridional_wind)
|
|
175
203
|
| np.isnan(raw.zonal_wind)
|
|
@@ -178,8 +206,8 @@ class Wind:
|
|
|
178
206
|
return Wind(
|
|
179
207
|
time=raw.time,
|
|
180
208
|
height=raw.altitude,
|
|
181
|
-
zonal_wind=
|
|
182
|
-
meridional_wind=
|
|
209
|
+
zonal_wind=zonal_wind,
|
|
210
|
+
meridional_wind=meridional_wind,
|
|
183
211
|
vertical_wind=raw.vertical_wind,
|
|
184
212
|
mask=mask,
|
|
185
213
|
system_id=raw.system_id,
|
doppy/rs.pyd
CHANGED
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
doppy-0.2.
|
|
2
|
-
doppy-0.2.
|
|
3
|
-
doppy-0.2.
|
|
4
|
-
doppy-0.2.
|
|
5
|
-
doppy-0.2.
|
|
1
|
+
doppy-0.2.2.dist-info/METADATA,sha256=pB8rf-ENhdOyoHh9mbT0IOuxQeQ1_weyuWro8BpE5MU,1793
|
|
2
|
+
doppy-0.2.2.dist-info/WHEEL,sha256=d75zPPyDx5l542fz5cKSMKvSEn203Dzoi4bYqdZk0D8,95
|
|
3
|
+
doppy-0.2.2.dist-info/entry_points.txt,sha256=9b_Ca7vJoh6AwL3W8qAPh_UmJ_1Pa6hi-TDfCTDjvSk,43
|
|
4
|
+
doppy-0.2.2.dist-info/license_files/LICENSE,sha256=RIAxFjJLTw0wQ3_SM73JoTeppoD99DJJ72cjvVuRrW4,1110
|
|
5
|
+
doppy-0.2.2.dist-info/license_files/LICENSE,sha256=RIAxFjJLTw0wQ3_SM73JoTeppoD99DJJ72cjvVuRrW4,1110
|
|
6
6
|
doppy/bench.py,sha256=fLN2iS5mmoYH4qZjD80Vl1h9lp3C-KDfhj9fteWRPtM,260
|
|
7
7
|
doppy/data/api.py,sha256=c3zbZI3IV7HnzhyFzJpUPOFT20eYFuQlJ5K_1ZEe1Pg,1921
|
|
8
8
|
doppy/data/cache.py,sha256=VNPB3XsWGwY2bNXBs1r_sEWF4qBq_U7sJSlSmt1Rxm8,1033
|
|
@@ -13,8 +13,8 @@ doppy/exceptions.py,sha256=YNEyz4r0ObzZHZ9re83K3wZlR2CRI1GyhH0vvFGasgQ,148
|
|
|
13
13
|
doppy/netcdf.py,sha256=UnuecY_yEijEDpsuOBCj3EGeWMXtyRIOlLAC1UVUVHY,3527
|
|
14
14
|
doppy/options.py,sha256=uyIKM_G2GtbmV6Gve8o13eIShQqUwsnYZ41mhX2ypGE,218
|
|
15
15
|
doppy/product/stare.py,sha256=hJPGujuMiOM424XtbCWWEdnD21zl9qg4dgZXnT-CDfk,20521
|
|
16
|
-
doppy/product/wind.py,sha256=
|
|
17
|
-
doppy/product/__init__.py,sha256=
|
|
16
|
+
doppy/product/wind.py,sha256=JT4DAwE1hl7NbE53mkZl4a-5RQb30IlydzfpDwkOoZM,13454
|
|
17
|
+
doppy/product/__init__.py,sha256=kHVF77la8tzWKKpiM9eNWT-eAkAUd4uwb0wJFp62QLk,177
|
|
18
18
|
doppy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
19
|
doppy/raw/halo_bg.py,sha256=9K7E9smahGOqDIYnA-9m-Di3QsDY0PR2FH4Yd_oYiEY,4951
|
|
20
20
|
doppy/raw/halo_hpl.py,sha256=OMVa6K8TqUnhwE5w3w_qy5Qi_Vg6S2lHwKEaIq5iGG0,19006
|
|
@@ -25,5 +25,5 @@ doppy/raw/__init__.py,sha256=J06q7iykSAWIif4XAxI1jOszkARvLFBR1eU-B9yUXMw,235
|
|
|
25
25
|
doppy/utils.py,sha256=lENDTzMVjCOA15Va9WZ6cou-foL5bGbNt4-NbDcnXpc,223
|
|
26
26
|
doppy/__init__.py,sha256=Af7_8p3oN1nTqS9fo0mVKVuiKf5CAEK69uQa32CSFBA,197
|
|
27
27
|
doppy/__main__.py,sha256=38hIWWfanILuBBGorQiAaleSC4qYJoIxuzVBkxf7Dng,371
|
|
28
|
-
doppy/rs.pyd,sha256=
|
|
29
|
-
doppy-0.2.
|
|
28
|
+
doppy/rs.pyd,sha256=meDRBEyGkaPwvDvu0Xx0w13e7y6TPcju4J4M6dXvFLU,2111488
|
|
29
|
+
doppy-0.2.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|