Datasets - ds.hyoga#

Hyoga adds functionality to manipulate and visualize xarray.Dataset objects using a special .hyoga attribute called dataset accessor. These methods are available on any xarray dataset after running import hyoga.

Postprocessing#

assign(**standard_variables)

Assign new variables by standard_name.

assign_icemask(datasource[, name])

Assign an ice mask corresponding to glacierized area.

assign_isostasy(datasource[, name])

Compute bedrock isostatic adjustment using a separate file.

getvar(standard_name[, infer, directions])

Get a variable by conventional standard name.

interp(datasource[, ax, sigma])

Interpolate onto higher resolution topography for visualization.

profile(datasource[, interval])

Interpolate onto coordinates along a profile.

where(cond, **kwargs)

Filter glacier (non-bedrock) variables according to a condition.

where_icemask([threshold])

Filter glacier (non-bedrock) variables using existing ice mask.

where_thicker([threshold])

Filter glacier (non-bedrock) variables using a thickness threshold.

Plotting datasets#

plot.bedrock_altitude([sealevel])

Plot bedrock topography and shoreline.

plot.bedrock_altitude_contours(**kwargs)

Plot bedrock topography filled countours.

plot.bedrock_hillshade([altitude, azimuth, ...])

Plot bedrock altitude multidirectional hillshade.

plot.bedrock_shoreline([sealevel])

Plot bedrock shoreline contour.

plot.bedrock_erosion([constant, exponent])

Plot erosion rate based on basal velocity.

plot.bedrock_isostasy(**kwargs)

Plot bedrock deformation contours and locate minumum.

plot.ice_margin([edgecolor, facecolor])

Plot ice margin line and/or filled contour

plot.surface_altitude_contours([major, minor])

Plot minor and major surface topography contours.

plot.surface_hillshade([altitude, azimuth, ...])

Plot surface altitude multidirectional hillshade.

plot.surface_velocity(**kwargs)

Plot surface velocity map.

plot.surface_velocity_streamplot(**kwargs)

Plot surface velocity streamlines.

Plotting vectors#

plot.natural_earth([theme, category, scale])

Plot Natural Earth data in dataset projection.

plot.paleoglaciers([source])

Plot Last Glacial Maximum paleoglacier extent.

Plotting decorations#

plot.scale_bar([ax, label, loc, size])

Add a horizontal bar with a text label showing map scale.