Skip to content

Commit

Permalink
FIX: Forgot to check for singular radar later on.
Browse files Browse the repository at this point in the history
  • Loading branch information
zssherman committed Oct 23, 2024
1 parent 500076a commit abeb5a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pyart/map/gates_to_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ def _find_offsets(radars, projparams, grid_origin_alt):
radar.longitude["data"], radar.latitude["data"], projparams
)
if (
len(radars[0].latitude["data"])
== 1 & len(radars[0].longitude["data"])
== 1 & len(radars[0].altitude["data"])
len(radar.latitude["data"])
== 1 & len(radar.longitude["data"])
== 1 & len(radar.altitude["data"])
== 1
):
z_disp = float(radar.altitude["data"].item()) - grid_origin_alt
Expand Down
6 changes: 3 additions & 3 deletions pyart/map/grid_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,9 @@ def map_to_grid(
radar.longitude["data"], radar.latitude["data"], projparams
)
if (
len(radars[0].latitude["data"])
== 1 & len(radars[0].longitude["data"])
== 1 & len(radars[0].altitude["data"])
len(radar.latitude["data"])
== 1 & len(radar.longitude["data"])
== 1 & len(radar.altitude["data"])
== 1
):
z_disp = float(radar.altitude["data"].item()) - grid_origin_alt
Expand Down

0 comments on commit abeb5a3

Please sign in to comment.