hydromt_delft3dfm.utils.read_2dboundary#

hydromt_delft3dfm.utils.read_2dboundary(df: DataFrame, workdir: Path = PosixPath('/home/runner/work/hydromt_delft3dfm/hydromt_delft3dfm/docs')) DataArray[source]#

Read a 2d boundary forcing location and values, and parse to xarray.

Parameters:
  • df (pd.DataFrame) – External Model DataFrame filtered for 2d boundary.

  • workdir (Path) – working directory, i.e. where the files are stored. Required for reading disk only file model. #FIXME: there might be better options

Returns:

da_out – External and forcing values combined into a DataArray with name starts with “boundary2d”.

Return type:

xr.DataArray