pangeo_fish.helpers.load_model

Contents

pangeo_fish.helpers.load_model#

pangeo_fish.helpers.load_model(*, uri: str, tag_log: Dataset, time_slice: slice, bbox: dict[str, tuple[float, float]], chunk_time=24, remote_options=None) Dataset#

Load and prepare a reference model.

Parameters:
  • uri (str) – Path to the data. either an intake catalog (thus ending with .yaml) or a parquet array (thus ending with .parq)

  • tag_log (xarray.Dataset) – The DST data

  • time_slice (slice) – Time slice to sample the model from

  • bbox (dict) – Spatial boundaries indexed by their coordinates (i.e, longitude and latitude) as well as the maximum depth indexed by max_depth.

  • chunk_time (int, default: 24) – Chunk size for the time dimension

Returns:

model (xarray.Dataset) – The subset data