polartoolkit.fetch.ibcso

Contents

polartoolkit.fetch.ibcso#

ibcso(layer, reference='geoid', region=None, spacing=None, registration=None, **kwargs)[source]#

Load IBCSO v2 data, from Dorschel et al.[1] and Dorschel et al.[2].

By default the elevations are relative to Mean Sea Level (the geoid). To convert them to be relative to the WGS84 ellipsoid, set reference=”ellipsoid which will add the EIGEN-6C4 geoid anomaly.

Parameters:
  • layer (str) – choose which layer to fetch: ‘surface’, ‘bed’

  • reference (str, optional) – choose which vertical reference to use, ‘geoid’ or ‘ellipsoid’, by default ‘geoid’

  • region (tuple[float, float, float, float], optional) – region to clip the loaded grid to, in format [xmin, xmax, ymin, ymax], by default doesn’t clip

  • spacing (str or int, optional) – grid spacing to resample the loaded grid to, by default 500m. If spacing >= 5000m, will resample the grid to 5km, and save it as a preprocessed grid, so future fetch calls are performed faster.

  • registration (str, optional) – change registration with either ‘p’ for pixel or ‘g’ for gridline registration, by default is None.

  • **kwargs (Any) – additional keyword arguments to pass to the resample_grid function

Returns:

Returns a loaded, and optional clip/resampled grid of IBCSO data.

Return type:

xarray.DataArray

References