Skip to content

Commit

Permalink
Add burst attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
dnowacki-usgs committed Aug 2, 2023
1 parent 36db784 commit 6836867
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stglib/aqd/aqdutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,11 @@ def add_attributes(var, dsattrs):
ds["sample"].attrs["long_name"] = "sample number"
ds["sample"].attrs["units"] = "1"

if "burst" in ds:
ds["burst"].encoding["dtype"] = "i4"
ds["burst"].attrs["long name"] = "burst number"
ds["burst"].attrs["units"] = "1"

if waves:
if "u_1205" in ds:
ds["u_1205"].attrs["units"] = "m s-1"
Expand Down

0 comments on commit 6836867

Please sign in to comment.