polartoolkit.fetch.bedmap2#
- bedmap2(layer, reference='eigen-gl04c', region=None, spacing=None, registration=None, fill_nans=False, **kwargs)[source]#
Load bedmap2 data as xarray.DataArrays from Fretwell et al.[1]. accessed from https://ramadda.data.bas.ac.uk/repository/entry/show?entryid=fa5d606c-dc95-47ee-9016-7a82e446f2f2.
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: âbedâ, âcoverageâ, âgrounded_bed_uncertaintyâ, âicemask_grounded_and_shelvesâ, âlakemask_vostokâ, ârockmaskâ, âsurfaceâ, âice_thicknessâ, âice_thickness_uncertaintyâ, âgl04c_geiod_to_WGS84â, âicebaseâ, âwater_thicknessâ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] |None) â region to clip the loaded grid to, in format [xmin, xmax, ymin, ymax], by default doesnât clipspacing (
float|None) â grid spacing to resample the loaded grid to, by default 1000m. 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|None) â choose between âgâ (gridline) or âpâ (pixel) registration types, by default is the original type of the gridfill_nans (
bool) â 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 (
Any) â additional keyword arguments to pass to the resample_grid function
- Returns:
Returns a loaded, and optional clip/resampled grid of Bedmap2.
- Return type:
References