Module CrossSection
- class CrossSection.CrossSection(Xstart, Xend, WS, K, Npoint, CoeffR)[source]
This class deals with Cross plotting and calculation
- BathymetryFromVelocityExp()[source]
Compute equivalent bathymetry assuming a constant friction slope on the section
- ProjectionVelocity(X, Y, velocity_field)[source]
Provide the velocity along the cross-section from velocity stored in a andromede result grid
- Parameters:
X – X position of each cross-section point (2D array)
Y – Y position of each cross-section point (2D array)
velocity_field – andromede result grid (X,Y,Vx,VY,V,…)
- Returns:
Surface velocity for point in cross-section X,Y and associated dat (fluctuations,..)
- Return type:
list
- ProjectionWithMNTXYZ(MNT, origin)[source]
Provide the bathymetry along the cross-section if topographic data are in a XYZ format
- Parameters:
MNT – Digital Elevation Model format (XYZ, 3 columns)
origin – XY coordinates
- Returns:
position X and Y for N points between the starting and ending point.
- Return type:
list
- Returns:
bathymetry for point in cross-section
- Return type:
list
- computeHydraulicGeometry()[source]
Compute wetted perimeter, wetted area and hydrualic radius for each subsection between 2 successive points of the profile
- dischargeExperimental()[source]
Compute discharge with velocity measurements and bathymetry extracted from given DEM
- dischargeVelocityFromSlope(S)[source]
Compute discharge assuming a constant friction slope on the section