Skip to content

Commit

Permalink
return glider and ADCP data from shear_from_adcp
Browse files Browse the repository at this point in the history
  • Loading branch information
callumrollo committed Sep 11, 2023
1 parent 03ef6c8 commit ab1b53e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion seaexplorertools/process_adcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2054,7 +2054,7 @@ def shear_from_adcp(adcp_path, glider_pqt_path, options):
ADCP = regridADCPdata(ADCP, options)
ADCP = calcXYZfrom3beam(ADCP, options)
ADCP = calcENUfromXYZ(ADCP, data, options)
return ADCP
return ADCP, data


def grid_shear(ADCP, data, options):
Expand All @@ -2066,6 +2066,7 @@ def grid_shear(ADCP, data, options):

def velocity_from_shear(adcp_path, glider_pqt_path, options, data, ADCP):
extra_data = pd.read_parquet(glider_pqt_path)
extra_data.index = data.index
data["speed_vert"] = extra_data["speed_vert"]
data["speed_horz"] = extra_data["speed_horz"]
data["DeadReckoning"] = extra_data["DeadReckoning"]
Expand Down

0 comments on commit ab1b53e

Please sign in to comment.