Skip to content

Commit

Permalink
Drop time1 from beam groups
Browse files Browse the repository at this point in the history
  • Loading branch information
imranmaj committed Jun 20, 2022
1 parent 185ee57 commit efbf983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion echopype/convert/set_groups_ad2cp.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def set_beam(self) -> List[xr.Dataset]:

# remove time1 from beam groups
for i, ds in enumerate(beam_groups):
beam_groups[i] = ds.sel(time1=ds["ping_time"])
beam_groups[i] = ds.sel(time1=ds["ping_time"]).drop_vars("time1", errors="ignore")

return [set_encodings(ds) for ds in beam_groups]

Expand Down

0 comments on commit efbf983

Please sign in to comment.