geost.models.VoxelModel.from_opendap#

classmethod VoxelModel.from_opendap(url: str, data_vars: List[str] = None, bbox: tuple = None, lazy: bool = True, **xr_kwargs)[source]#

Download an area of a voxelmodel directly from an OPeNDAP data server.

Parameters:
  • url (str) – Url to the netcdf file on the OPeNDAP server.

  • 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:

VoxelModel instance for the selected area.

Return type:

VoxelModel