You're reading an old version of this documentation. If you want up-to-date information, please have a look at v0.8.2.

snl_d3d_cec_verify.gridfm package

snl_d3d_cec_verify.gridfm.write_gridfm_rectangle(path, dx, dy, x0=0, x1=18, y0=1, y1=5)

Create a rectangular Delft3D flexible mesh grid, in a rectangular domain (x0, y0, x1, y1), and save to the given path, in netCDF format.

Parameters:
  • path (Union[str, Path]) – destination path for the grid file

  • dx (Union[int, float]) – grid spacing in the x-direction, in metres

  • dy (Union[int, float]) – grid spacing in the y-direction, in metres

  • x0 (Union[int, float]) – minimum x-value, in metres, defaults to 0

  • x1 (Union[int, float]) – maximum x-value, in metres, defaults to 18

  • y0 (Union[int, float]) – minimum y-value, in metres, defaults to 1

  • y1 (Union[int, float]) – maximum y-value, in metres, defaults to 5