hydromt.VectorModel.read_vector#

VectorModel.read_vector(fn: str = 'vector/vector.nc', fn_geom: str = 'vector/vector.geojson', **kwargs) None#

Read model vector from combined netcdf and geojson file.

Files are read at <root>/<fn> and geojson file at <root>/<fn_geom>.

Three options are possible:
  • The netcdf file contains the attribute data and the geojson file the

    geometry vector data.

  • The netcdf file contains both the attribute and the geometry data.

    (fn_geom is ignored)

  • The geojson file contains both the attribute and the geometry data.

    (fn is ignored)

Key-word arguments are passed to read_nc()

Parameters:
  • fn (str, optional) – netcdf filename relative to model root, by default ‘vector/vector.nc’

  • fn_geom (str, optional) – geojson filename relative to model root, by default ‘vector/vector.geojson’

  • kwargs – Additional keyword arguments that are passed to the read_nc function.