From 1fb40d25df9a856b8a9edbeff94bc9dbb5149f35 Mon Sep 17 00:00:00 2001 From: Dan Nowacki Date: Wed, 17 Apr 2024 09:37:27 -0700 Subject: [PATCH] Typos --- stglib/vec/cdf2nc.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stglib/vec/cdf2nc.py b/stglib/vec/cdf2nc.py index 6d5e3a79..92e765f3 100644 --- a/stglib/vec/cdf2nc.py +++ b/stglib/vec/cdf2nc.py @@ -129,9 +129,9 @@ def set_orientation(VEL, T): # elev = VEL.attrs["NAVD88_ref"] + VEL.attrs["transducer_offset_from_bottom"] elev_vel = navd88_ref + VEL.attrs["velocity_sample_volume_height"] elev_pres = navd88_ref + VEL.attrs["pressure_sensor_height"] - if f"AnalogInput1_height" in ds.attrs: + if f"AnalogInput1_height" in VEL.attrs: elev_ai1 = navd88_ref + VEL.attrs["AnalogInput1_height"] - if f"AnalogInput2_height" in ds.attrs: + if f"AnalogInput2_height" in VEL.attrs: elev_ai2 = navd88_ref + VEL.attrs["AnalogInput2_height"] long_name = "height relative to NAVD88" @@ -149,12 +149,12 @@ def set_orientation(VEL, T): VEL.attrs["height_above_geopotential_datum"] + VEL.attrs["pressure_sensor_height"] ) - if f"AnalogInput1_height" in ds.attrs: + if f"AnalogInput1_height" in VEL.attrs: elev_ai1 = ( VEL.attrs["height_above_geopotential_datum"] + VEL.attrs["AnalogInput1_height"] ) - if f"AnalogInput2_height" in ds.attrs: + if f"AnalogInput2_height" in VEL.attrs: elev_ai2 = ( VEL.attrs["height_above_geopotential_datum"] + VEL.attrs["AnalogInput2_height"] @@ -167,9 +167,9 @@ def set_orientation(VEL, T): # elev = VEL.attrs["transducer_offset_from_bottom"] elev_vel = VEL.attrs["velocity_sample_volume_height"] elev_pres = VEL.attrs["pressure_sensor_height"] - if f"AnalogInput1_height" in ds.attrs: + if f"AnalogInput1_height" in VEL.attrs: elev_ai1 = VEL.attrs["AnalogInput1_height"] - if f"AnalogInput2_height" in ds.attrs: + if f"AnalogInput2_height" in VEL.attrs: elev_ai2 = VEL.attrs["AnalogInput2_height"] long_name = "height relative to sea bed"