polartoolkit.fetch.bedmap3#
- bedmap3(layer, reference='eigen-gl04c', region=None, spacing=None, registration=None, fill_nans=False, **kwargs)[source]#
Load Bedmap3 data as an xarray.DataArray from Pritchard et al.[1]. accessed from https://ramadda.data.bas.ac.uk/repository/entry/show?entryid=2d0e4791-8e20-46a3-80e4-f5f6716025d2.
All grids are by default referenced to the EIGEN-GL04C geoid. Use the reference=âellipsoidâ to convert to the WGS-84 ellipsoid or reference=âeigen-6c4â to convert to the EIGEN-6c4 geoid.
Unlike Bedmachine data, Bedmap2 surface and icethickness contain NaNâs over the ocean, instead of 0âs. To fill these NaNâs with 0âs, set fill_nans=True. Note, this only makes since if the reference is the geoid, therefore, if reference=âellipsoid and fill_nans=True, the nanâs will be filled before converting the results to the geoid (just for surface, since thickness isnât relative to anything).
- Parameters:
layer (str) â choose which layer to fetch: âsurfaceâ, âicebaseâ, âbedâ, âice_thicknessâ, âwater_thicknessâ, âbed_uncertaintyâ, âice_thickness_uncertaintyâ, and âmaskâ.
reference (str) â choose whether heights are referenced to the âeigen-6c4â geoid, the WGS84 ellipsoid, âellipsoidâ, or by default the âeigen-gl04câ 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,) â choose between âgâ (gridline) or âpâ (pixel) registration types, by default is the original type of the grid
fill_nans (bool, optional,) â choose whether to fill nans in âsurfaceâ and âthicknessâ with 0. If converting to reference to the geoid, will fill nanâs before conversion, by default is False
**kwargs (optional) â additional keyword arguments to pass to the resample_grid function
- Returns:
Returns a loaded, and optional clip/resampled grid of Bedmap2.
- Return type:
References