geost.bro.GeoTop.from_opendap#

classmethod GeoTop.from_opendap(url: str = 'https://dinodata.nl/opendap/GeoTOP/geotop.nc', data_vars: List[str] = None, bbox: tuple = None, lazy: bool = True, **xr_kwargs)[source]#

Download an area of GeoTop directly from the OPeNDAP data server into a GeoTop VoxelModel instance.

Parameters:
  • url (str) – Url to the netcdf file on the OPeNDAP server. See: https://www.dinoloket.nl/modelbestanden-aanvragen

  • 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 but for practical reasons, specifying a bounding box is advised (TODO: find max downloadsize for server).

  • 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 for the selected area.

Return type:

GeoTop