doppy 0.2.3__tar.gz → 0.2.4__tar.gz

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.

Files changed (40) hide show
  1. {doppy-0.2.3 → doppy-0.2.4}/Cargo.lock +2 -2
  2. {doppy-0.2.3 → doppy-0.2.4}/Cargo.toml +1 -1
  3. {doppy-0.2.3 → doppy-0.2.4}/PKG-INFO +4 -4
  4. {doppy-0.2.3 → doppy-0.2.4}/README.md +3 -3
  5. {doppy-0.2.3 → doppy-0.2.4}/crates/doprs/src/raw/halo_hpl.rs +1 -1
  6. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/netcdf.py +6 -1
  7. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/product/stare.py +2 -2
  8. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/product/wind.py +1 -1
  9. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/raw/halo_hpl.py +1 -1
  10. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/raw/halo_sys_params.py +1 -1
  11. {doppy-0.2.3 → doppy-0.2.4}/LICENSE +0 -0
  12. {doppy-0.2.3 → doppy-0.2.4}/crates/doppy_rs/Cargo.toml +0 -0
  13. {doppy-0.2.3 → doppy-0.2.4}/crates/doppy_rs/src/lib.rs +0 -0
  14. {doppy-0.2.3 → doppy-0.2.4}/crates/doppy_rs/src/raw/halo_hpl.rs +0 -0
  15. {doppy-0.2.3 → doppy-0.2.4}/crates/doppy_rs/src/raw/wls70.rs +0 -0
  16. {doppy-0.2.3 → doppy-0.2.4}/crates/doppy_rs/src/raw.rs +0 -0
  17. {doppy-0.2.3 → doppy-0.2.4}/crates/doprs/.gitignore +0 -0
  18. {doppy-0.2.3 → doppy-0.2.4}/crates/doprs/Cargo.toml +0 -0
  19. {doppy-0.2.3 → doppy-0.2.4}/crates/doprs/src/lib.rs +0 -0
  20. {doppy-0.2.3 → doppy-0.2.4}/crates/doprs/src/raw/error.rs +0 -0
  21. {doppy-0.2.3 → doppy-0.2.4}/crates/doprs/src/raw/wls70.rs +0 -0
  22. {doppy-0.2.3 → doppy-0.2.4}/crates/doprs/src/raw.rs +0 -0
  23. {doppy-0.2.3 → doppy-0.2.4}/pyproject.toml +0 -0
  24. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/__init__.py +0 -0
  25. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/__main__.py +0 -0
  26. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/bench.py +0 -0
  27. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/data/__init__.py +0 -0
  28. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/data/api.py +0 -0
  29. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/data/cache.py +0 -0
  30. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/data/exceptions.py +0 -0
  31. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/defaults.py +0 -0
  32. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/exceptions.py +0 -0
  33. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/options.py +0 -0
  34. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/product/__init__.py +0 -0
  35. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/py.typed +0 -0
  36. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/raw/__init__.py +0 -0
  37. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/raw/halo_bg.py +0 -0
  38. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/raw/windcube.py +0 -0
  39. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/raw/wls70.py +0 -0
  40. {doppy-0.2.3 → doppy-0.2.4}/src/doppy/utils.py +0 -0
@@ -106,7 +106,7 @@ checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345"
106
106
 
107
107
  [[package]]
108
108
  name = "doppy_rs"
109
- version = "0.2.3"
109
+ version = "0.2.4"
110
110
  dependencies = [
111
111
  "doprs",
112
112
  "numpy",
@@ -115,7 +115,7 @@ dependencies = [
115
115
 
116
116
  [[package]]
117
117
  name = "doprs"
118
- version = "0.2.3"
118
+ version = "0.2.4"
119
119
  dependencies = [
120
120
  "chrono",
121
121
  "rayon",
@@ -4,6 +4,6 @@ resolver = "2"
4
4
 
5
5
  [workspace.package]
6
6
  edition = "2021"
7
- version = "0.2.3"
7
+ version = "0.2.4"
8
8
  authors = ["Niko Leskinen <niko.leskinen@fmi.fi>"]
9
9
  license-file = "LICENSE"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: doppy
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: Programming Language :: Python :: 3.10
@@ -37,7 +37,7 @@ Project-URL: Repository, https://github.com/actris-cloudnet/doppy
37
37
  Project-URL: Changelog, https://github.com/actris-cloudnet/doppy/blob/main/CHANGELOG.md
38
38
  Project-URL: Bug Tracker, https://github.com/actris-cloudnet/doppy/issues
39
39
 
40
- # Doppy - Wind doppler lidar processing
40
+ # Doppy Doppler wind lidar processing
41
41
 
42
42
  [![CI](https://github.com/actris-cloudnet/doppy/actions/workflows/ci.yml/badge.svg)](https://github.com/actris-cloudnet/doppy/actions/workflows/ci.yml)
43
43
  [![PyPI version](https://badge.fury.io/py/doppy.svg)](https://badge.fury.io/py/doppy)
@@ -129,8 +129,8 @@ stare = doppy.product.Stare.from_halo_data(
129
129
  data=stare.wavelength,
130
130
  dtype="f4",
131
131
  )
132
- .add_atribute("serial_number", stare.system_id)
133
- .add_atribute("doppy_version", doppy.__version__)
132
+ .add_attribute("serial_number", stare.system_id)
133
+ .add_attribute("doppy_version", doppy.__version__)
134
134
  ).close()
135
135
 
136
136
  ```
@@ -1,4 +1,4 @@
1
- # Doppy - Wind doppler lidar processing
1
+ # Doppy Doppler wind lidar processing
2
2
 
3
3
  [![CI](https://github.com/actris-cloudnet/doppy/actions/workflows/ci.yml/badge.svg)](https://github.com/actris-cloudnet/doppy/actions/workflows/ci.yml)
4
4
  [![PyPI version](https://badge.fury.io/py/doppy.svg)](https://badge.fury.io/py/doppy)
@@ -90,8 +90,8 @@ stare = doppy.product.Stare.from_halo_data(
90
90
  data=stare.wavelength,
91
91
  dtype="f4",
92
92
  )
93
- .add_atribute("serial_number", stare.system_id)
94
- .add_atribute("doppy_version", doppy.__version__)
93
+ .add_attribute("serial_number", stare.system_id)
94
+ .add_attribute("doppy_version", doppy.__version__)
95
95
  ).close()
96
96
 
97
97
  ```
@@ -40,7 +40,7 @@ pub struct Data {
40
40
  pub elevation: Vec<f64>,
41
41
  pub pitch: Option<Vec<f64>>,
42
42
  pub roll: Option<Vec<f64>>,
43
- // 2 Dimensinal data, shape (time, range)
43
+ // 2 Dimensional data, shape (time, range)
44
44
  // such that X[t,r] represented in 1D vec Y[t*r] in "range-major" order
45
45
  pub range: Vec<f64>,
46
46
  pub radial_velocity: Vec<f64>,
@@ -1,5 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import warnings
3
4
  from typing import Literal, TypeAlias
4
5
 
5
6
  import netCDF4
@@ -17,10 +18,14 @@ class Dataset:
17
18
  self.nc.createDimension(dim, None)
18
19
  return self
19
20
 
20
- def add_atribute(self, key: str, val: str) -> Dataset:
21
+ def add_attribute(self, key: str, val: str) -> Dataset:
21
22
  setattr(self.nc, key, val)
22
23
  return self
23
24
 
25
+ def add_atribute(self, key: str, val: str) -> Dataset:
26
+ warnings.warn("Use add_attribute", DeprecationWarning)
27
+ return self.add_attribute(key, val)
28
+
24
29
  def add_time(
25
30
  self,
26
31
  name: str,
@@ -142,7 +142,7 @@ def _compute_beta(
142
142
  c
143
143
  speed of light
144
144
  B
145
- reveiver bandwidth
145
+ receiver bandwidth
146
146
 
147
147
  References
148
148
  ----------
@@ -560,7 +560,7 @@ def _select_raws_for_stare(
560
560
 
561
561
 
562
562
  def _selection_key(raw: doppy.raw.HaloHpl) -> SelectionGroupKeyType:
563
- return (raw.header.mergable_hash(),)
563
+ return (raw.header.mergeable_hash(),)
564
564
 
565
565
 
566
566
  def _time2bg_time(
@@ -406,7 +406,7 @@ def _selection_key(raw: doppy.raw.HaloHpl) -> SelectionGroupKeyType:
406
406
  if len(raw.elevation_angles) != 1:
407
407
  raise ValueError("Expected only one elevation angle")
408
408
  return (
409
- raw.header.mergable_hash(),
409
+ raw.header.mergeable_hash(),
410
410
  next(iter(raw.elevation_angles)),
411
411
  tuple(sorted(raw.azimuth_angles)),
412
412
  )
@@ -207,7 +207,7 @@ class HaloHplHeader:
207
207
  system_id: str
208
208
  instrument_spectral_width: float | None
209
209
 
210
- def mergable_hash(self) -> int:
210
+ def mergeable_hash(self) -> int:
211
211
  return hash(
212
212
  (
213
213
  self.gate_points,
@@ -81,7 +81,7 @@ def _from_src(data: BufferedIOBase) -> HaloSysParams:
81
81
  b = [r.split(b"\t") for r in a]
82
82
  arr = np.array(b)
83
83
  if arr.shape[1] != 7:
84
- raise ValueError("Unexpected data fromat")
84
+ raise ValueError("Unexpected data format")
85
85
 
86
86
  def timestr2datetime64_12H(datetime_bytes: bytes) -> np.datetime64:
87
87
  return datetime64(
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes