environmentaltools.spatial.merge_land_sea

environmentaltools.spatial.merge_land_sea(topo, bati, linea0, corners, sea='south')[source]

Merge topography and bathymetry datasets using coastline as boundary.

Combines land elevation data (topography) with sea depth data (bathymetry) by defining a sea polygon based on the coastline (zero-elevation line) and domain boundaries. Removes land topography within the sea area.

Parameters:
  • topo (pd.DataFrame) – Land topography data with columns [‘x’, ‘y’, ‘z’]

  • bati (pd.DataFrame) – Sea bathymetry data with columns [‘x’, ‘y’, ‘z’]

  • linea0 (pd.DataFrame) – Coastline points (zero-elevation contour) with columns [‘x’, ‘y’]

  • corners (pd.DataFrame) – Domain corner coordinates with columns [‘x’, ‘y’]

  • sea (str, optional) – Sea location relative to land: ‘south’, ‘east’, or ‘south-east’. Default: ‘south’

Returns:

Combined topobathymetry data with columns [‘x’, ‘y’, ‘z’]

Return type:

pd.DataFrame

Notes

The function creates a polygon defining the sea area using: - The coastline (zero-elevation line) - Domain boundaries (corners) - Side configuration (sea parameter)

A map showing the sea polygon is saved as HTML file.