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

fix dist downstream cell computation

parent f0d5cc86
......@@ -213,9 +213,9 @@ class RASProject:
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
(dist_downstream[:-1] +
dist_downstream[1:])
dist_downstream[1:] = cell_centers
profile_data['CumlDistance_km'] = dist_downstream/1000
......
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