Skip to content

Commit

Permalink
Correct turbulence intensity units
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcvey3 committed Oct 28, 2024
1 parent 48977be commit 6a69d6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mhkit/dolfyn/velocity.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def I_tke(self, thresh=0):
I_tke.data.astype("float32"),
coords=self.U_mag.coords,
dims=self.U_mag.dims,
attrs={"units": "% [0,1]", "long_name": "TKE Intensity"},
attrs={"units": "1", "long_name": "TKE Intensity"},
)

@property
Expand All @@ -462,7 +462,7 @@ def I(self, thresh=0):
I.data.astype("float32"),
coords=self.U_mag.coords,
dims=self.U_mag.dims,
attrs={"units": "% [0,1]", "long_name": "Turbulence Intensity"},
attrs={"units": "1", "long_name": "Turbulence Intensity"},
)

@property
Expand Down Expand Up @@ -851,7 +851,7 @@ def turbulence_intensity(self, U_mag, noise=0, thresh=0, detrend=False):
coords=coords,
dims=dims,
attrs={
"units": "%",
"units": "1",
"long_name": "Turbulence Intensity",
"comment": f"TI was corrected from a noise level of {noise} m/s",
},
Expand Down

0 comments on commit 6a69d6c

Please sign in to comment.