Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dnowacki-usgs committed Apr 17, 2024
1 parent 193e14c commit 1fb40d2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions stglib/vec/cdf2nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"]
Expand All @@ -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"
Expand Down

0 comments on commit 1fb40d2

Please sign in to comment.