Skip to content

Commit

Permalink
Merge pull request #129 from localdevices/issue_128
Browse files Browse the repository at this point in the history
fix #128
  • Loading branch information
hcwinsemius authored Jun 2, 2023
2 parents 1034237 + 68bc2ff commit c369197
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyorc/api/transect.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ def get_q(self, v_corr=0.9, fill_method="zeros"):
z = ds["zcoords"].values
# add filled surface velocities with a logarithmic profile curve fit
depth = self.camera_config.get_depth(z, self.h_a)
# make velocities zero where depth is zero
ds["v_eff_nofill"][:, depth<=0] = 0.
if fill_method == "zeros":
ds["v_eff"] = ds["v_eff_nofill"].fillna(0.)
elif fill_method == "log_fit":
Expand Down

0 comments on commit c369197

Please sign in to comment.