# shorelines-distance v3.2.3 **Mercurial revision 5786:5c8b45563631 | 2026-08-04** --- ## Description `shorelines-distance` computes a **map of distances to the nearest coast** based on a custom mesh and an input shoreline. It can also **pre-merge a shoreline/coastline file with an existing dataset** using the `-s` option. The grid can be defined using the following options: - `--dx`: Grid resolution in meters. - `--grid`: Grid definition template. - `--mapping`: Mapping template. - `--notebook`: Notebook file to define the grid. --- ## Usage ```bash shorelines-distance [OPTIONS] input_shoreline ``` --- ## Options ### **General Options** | Option | Description | | -------------- | ------------------------------------------------------------------------------------------ | | `-h`, `--help` | Show help and exit. | | `-s ` | Base shoreline file to merge with. Default: `/home/data/shorelines/gshhs-2.0/gshhs_f.cst`. | | `-r ` | Rootname for output files. Default: `anonymous`. | | `-o ` | Output file. Default: `rootname-landmask.nc`. | --- ### **Grid Definition Options** | Option | Description | | ---------------------- | ---------------------------------------------------------------------------------------------------------------------- | | `--dx ` | Grid resolution in meters to compute distances to the nearest coastline. | | `--grid