pyorc.CrossSection.get_csl_point#

CrossSection.get_csl_point(h: Optional[float] = None, l: Optional[float] = None, camera: bool = False, swap_y_coords: bool = False) List[Point][source]#

Retrieve list of points, where cross-section (cs) touches the land (l).

Multiple points may be found.

Parameters:
  • h (float, optional) – water level [m], if provided, s must not be provided.

  • l (float) – coordinate of distance from left to right bank, including height [m], if provided, h must not be provided.

  • camera (bool, optional) – If set, return 2D projected points, by default False.

  • swap_y_coords (bool, optional) – if set, all y-coordinates are swapped so that they fit on a flipped version of the image. This is useful in case you plot on ascending y-coordinate axis background images (default: False)

Returns:

List of points, where water line touches land, can be only one or two points.

Return type:

List[shapely.geometry.Point]