oggm.core.flowline.MixedBedFlowline

oggm.core.flowline.MixedBedFlowline#

class oggm.core.flowline.MixedBedFlowline(*, line=None, dx=None, map_dx=None, surface_h=None, bed_h=None, section=None, bed_shape=None, is_trapezoid=None, lambdas=None, widths_m=None, rgi_id=None, water_level=None, gdir=None)[source]#

A Flowline which can take a combination of different shapes (default)

The default shape is parabolic. At ice divides a rectangular shape is used. And if the parabola gets too flat a trapezoidal shape is used.

__init__(*, line=None, dx=None, map_dx=None, surface_h=None, bed_h=None, section=None, bed_shape=None, is_trapezoid=None, lambdas=None, widths_m=None, rgi_id=None, water_level=None, gdir=None)[source]#

Instantiate.

Parameters:
lineshapely.geometry.LineString

the geometrical line of a oggm.Centerline

Methods

__init__(*[, line, dx, map_dx, surface_h, ...])

Instantiate.

has_ice()

reset_flux()

set_apparent_mb(mb[, is_calving])

Set the apparent mb and flux for the flowline.

set_flows_to(other[, check_tail, to_head])

Find the closest point in "other" and sets all the corresponding attributes.

set_line(line)

Update the Shapely LineString coordinate.

to_diagnostics_dataset()

Makes an xarray Dataset out of the flowline.

to_geometry_dataset()

Makes an xarray Dataset out of the flowline.

Attributes

area_km2

area_m2

bed_below_wl

bin_area_m2

flows_to_indice

Indices instead of geometry

inflow_indices

Indices instead of geometries

length_m

normals

List of (n1, n2) normal vectors at each point.

point_lats

point_lons

section

shape_str

The bed shape in text (for debug and other things)

surface_h

Needed for overriding later

terminus_index

thick

Needed for overriding later

volume_bsl_km3

volume_bsl_m3

volume_bwl_km3

volume_bwl_m3

volume_km3

volume_m3

water_depth

widths

Compute the widths out of H and shape

widths_m

Compute the widths out of H and shape