Skip to content

Commit

Permalink
Add standard name and make it not be in an if-block.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnowacki-usgs committed Feb 26, 2024
1 parent 2f52f3a commit 8eca46f
Showing 1 changed file with 27 additions and 24 deletions.
51 changes: 27 additions & 24 deletions stglib/aqd/aqdutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1090,30 +1090,33 @@ def add_attributes(var, dsattrs):
if "w_1204" in ds:
ds["w_1204"].attrs["units"] = "m s-1"

if "vel1_1277" in ds:
ds["vel1_1277"].attrs.update(
{
"units": "m s-1",
"long_name": "Beam 1 Velocity",
"epic_code": 1277,
}
)
if "vel2_1278" in ds:
ds["vel2_1278"].attrs.update(
{
"units": "m s-1",
"long_name": "Beam 2 Velocity",
"epic_code": 1278,
}
)
if "vel3_1279" in ds:
ds["vel3_1279"].attrs.update(
{
"units": "m s-1",
"long_name": "Beam 3 Velocity",
"epic_code": 1279,
}
)
if "vel1_1277" in ds:
ds["vel1_1277"].attrs.update(
{
"units": "m s-1",
"long_name": "Beam 1 Velocity",
"epic_code": 1277,
"standard_name": "radial_sea_water_velocity_away_from_instrument",
}
)
if "vel2_1278" in ds:
ds["vel2_1278"].attrs.update(
{
"units": "m s-1",
"long_name": "Beam 2 Velocity",
"epic_code": 1278,
"standard_name": "radial_sea_water_velocity_away_from_instrument",
}
)
if "vel3_1279" in ds:
ds["vel3_1279"].attrs.update(
{
"units": "m s-1",
"long_name": "Beam 3 Velocity",
"epic_code": 1279,
"standard_name": "radial_sea_water_velocity_away_from_instrument",
}
)

if "AGC1_1221" in ds:
ds["AGC1_1221"].attrs.update(
Expand Down

0 comments on commit 8eca46f

Please sign in to comment.