From 68368675f38df75dcff760cc1ff95a95511c0fd9 Mon Sep 17 00:00:00 2001 From: Dan Nowacki Date: Wed, 2 Aug 2023 13:24:42 -0700 Subject: [PATCH] Add burst attrs --- stglib/aqd/aqdutils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stglib/aqd/aqdutils.py b/stglib/aqd/aqdutils.py index 40d79aef..76c358f7 100644 --- a/stglib/aqd/aqdutils.py +++ b/stglib/aqd/aqdutils.py @@ -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"