Commit 23ad22dc authored by Domanski, Marian M.'s avatar Domanski, Marian M.
Browse files

correct ras stream distance order

parent b004327a
......@@ -209,11 +209,15 @@ class RASProject:
# convert from RAS distances to FluEgg distances
number_of_cells = profile_data.shape[0]
profile_data.loc[1:number_of_cells - 1, 'CumlDistance_km'] = \
0.5 * (profile_data.loc[1:number_of_cells - 1, 'CumlDistance_km'].values
+ profile_data.loc[2:number_of_cells, 'CumlDistance_km'].values)
profile_data['CumlDistance_km'] = profile_data['CumlDistance_km']/1000
dist_upstream = profile_data['CumlDistance_km'].values
dist_downstream = dist_upstream.max() - dist_upstream
cell_centers = 0.5 * \
(dist_downstream[1:number_of_cells-1] +
dist_downstream[2:number_of_cells])
dist_downstream[1:number_of_cells-1] = cell_centers
profile_data['CumlDistance_km'] = dist_downstream/1000
shear_velocity = self._calc_shear_velocity(ras_data)
profile_data['Ustar_mps'] = shear_velocity
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment