Skip to content

Commit

Permalink
FIX: explicitely cast sweep_start_ray_index/sweep_end_ray_index to in…
Browse files Browse the repository at this point in the history
…t in cfradial1 reader
  • Loading branch information
kmuehlbauer committed Jun 30, 2022
1 parent 4911a49 commit 872c8c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wradlib/io/xarray.py
Expand Up @@ -1537,8 +1537,9 @@ def _assign_data_radial(root, sweep="sweep_1"):
remove_vars = {}
data = root.drop_vars(remove_vars)
data.attrs = {}
start_idx = data.sweep_start_ray_index.values
end_idx = data.sweep_end_ray_index.values
# explicitely cast to int, as there are floats out in the wild
start_idx = data.sweep_start_ray_index.values.astype(int)
end_idx = data.sweep_end_ray_index.values.astype(int)
ray_n_gates = data.get("ray_n_gates", False)
ray_start_index = data.get("ray_start_index", False)
data = data.drop_vars(
Expand Down

0 comments on commit 872c8c1

Please sign in to comment.