doppy 0.1.2__tar.gz → 0.1.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 (36) hide show
  1. {doppy-0.1.2 → doppy-0.1.4}/Cargo.lock +2 -2
  2. {doppy-0.1.2 → doppy-0.1.4}/Cargo.toml +1 -1
  3. {doppy-0.1.2 → doppy-0.1.4}/PKG-INFO +1 -1
  4. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/netcdf.py +1 -1
  5. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/product/stare.py +1 -0
  6. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/product/wind.py +1 -0
  7. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/raw/halo_hpl.py +4 -0
  8. {doppy-0.1.2 → doppy-0.1.4}/LICENSE +0 -0
  9. {doppy-0.1.2 → doppy-0.1.4}/README.md +0 -0
  10. {doppy-0.1.2 → doppy-0.1.4}/crates/doppy_rs/Cargo.toml +0 -0
  11. {doppy-0.1.2 → doppy-0.1.4}/crates/doppy_rs/src/lib.rs +0 -0
  12. {doppy-0.1.2 → doppy-0.1.4}/crates/doppy_rs/src/raw/halo_hpl.rs +0 -0
  13. {doppy-0.1.2 → doppy-0.1.4}/crates/doppy_rs/src/raw.rs +0 -0
  14. {doppy-0.1.2 → doppy-0.1.4}/crates/doprs/.gitignore +0 -0
  15. {doppy-0.1.2 → doppy-0.1.4}/crates/doprs/Cargo.toml +0 -0
  16. {doppy-0.1.2 → doppy-0.1.4}/crates/doprs/src/lib.rs +0 -0
  17. {doppy-0.1.2 → doppy-0.1.4}/crates/doprs/src/raw/error.rs +0 -0
  18. {doppy-0.1.2 → doppy-0.1.4}/crates/doprs/src/raw/halo_hpl.rs +0 -0
  19. {doppy-0.1.2 → doppy-0.1.4}/crates/doprs/src/raw.rs +0 -0
  20. {doppy-0.1.2 → doppy-0.1.4}/pyproject.toml +0 -0
  21. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/__init__.py +0 -0
  22. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/__main__.py +0 -0
  23. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/bench.py +0 -0
  24. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/data/__init__.py +0 -0
  25. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/data/api.py +0 -0
  26. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/data/cache.py +0 -0
  27. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/data/exceptions.py +0 -0
  28. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/defaults.py +0 -0
  29. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/exceptions.py +0 -0
  30. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/options.py +0 -0
  31. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/product/__init__.py +0 -0
  32. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/py.typed +0 -0
  33. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/raw/__init__.py +0 -0
  34. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/raw/halo_bg.py +0 -0
  35. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/raw/halo_sys_params.py +0 -0
  36. {doppy-0.1.2 → doppy-0.1.4}/src/doppy/raw/windcube.py +0 -0
@@ -106,7 +106,7 @@ checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345"
106
106
 
107
107
  [[package]]
108
108
  name = "doppy_rs"
109
- version = "0.1.2"
109
+ version = "0.1.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.1.2"
118
+ version = "0.1.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.1.2"
7
+ version = "0.1.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.1.2
3
+ Version: 0.1.4
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: Programming Language :: Python :: 3.10
@@ -106,6 +106,6 @@ def _convert_time(
106
106
  hours_since_start_of_day = (time - start_of_day).astype(
107
107
  np.float64
108
108
  ) * MICROSECONDS_TO_HOURS
109
- units = f"hours since {np.datetime_as_string(start_of_day)} 00:00:00 +0000"
109
+ units = f"hours since {np.datetime_as_string(start_of_day)} 00:00:00 +00:00"
110
110
  calendar = "standard"
111
111
  return hours_since_start_of_day, units, calendar
@@ -50,6 +50,7 @@ class Stare:
50
50
  doppy.raw.HaloHpl.merge(_select_raws_for_stare(raws))
51
51
  .sorted_by_time()
52
52
  .non_strictly_increasing_timesteps_removed()
53
+ .nans_removed()
53
54
  )
54
55
 
55
56
  bgs = doppy.raw.HaloBg.from_srcs(data_bg)
@@ -54,6 +54,7 @@ class Wind:
54
54
  doppy.raw.HaloHpl.merge(_select_raws_for_wind(raws))
55
55
  .sorted_by_time()
56
56
  .non_strictly_increasing_timesteps_removed()
57
+ .nans_removed()
57
58
  )
58
59
  if len(raw.time) == 0:
59
60
  raise doppy.exceptions.NoDataError("No suitable data for the wind product")
@@ -187,6 +187,10 @@ class HaloHpl:
187
187
  latest_time = t
188
188
  return self[mask]
189
189
 
190
+ def nans_removed(self) -> HaloHpl:
191
+ is_ok = ~np.isnan(self.intensity).any(axis=1)
192
+ return self[is_ok]
193
+
190
194
 
191
195
  @dataclass(slots=True)
192
196
  class HaloHplHeader:
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