geost.bro.GeoTop.from_netcdf#

classmethod GeoTop.from_netcdf(nc_path: str | Path, data_vars: List[str] = None, bbox: tuple[float, float, float, float] = None, lazy: bool = True, **xr_kwargs)[source]#

Read the BRO GeoTop subsurface model from a netcdf dataset into a GeoTop VoxelModel instance. The complete dataset of GeoTop can be downloaded from: https://dinodata.nl/opendap.

Parameters:
  • nc_path (str | Path) – Path to the netcdf file of GeoTop.

  • data_vars (ArrayLike) – List or array-like object specifying which data variables to return.

  • bbox (tuple (xmin, ymin, xmax, ymax), optional) – Specify a bounding box (xmin, ymin, xmax, ymax) to return a selected area of GeoTop. The default is None.

  • lazy (bool, optional) – If True, netcdf loads lazily. Use False for speed improvements for larger areas but that still fit into memory. The default is False.

  • **xr_kwargs – Additional keyword arguments xarray.open_dataset. See relevant documentation for details.

Returns:

GeoTop instance of the netcdf file.

Return type:

GeoTop