class oggm.Centerline(line, dx=None, surface_h=None, orig_head=None, rgi_id=None, map_dx=None)[source]

A Centerline has geometrical and flow rooting properties.

It is instanciated and updated by _join_lines() exclusively

__init__(self, line, dx=None, surface_h=None, orig_head=None, rgi_id=None, map_dx=None)[source]

Initialize a Centerline

line : shapely.geometry.LineString

The geometrically calculated centerline

dx : float

Grid spacing of the initialised flowline in pixel coordinates

surface_h : numpy.ndarray

elevation [m] of the points on line

orig_head : shapely.geometry.Point

geometric point of the lines head

rgi_id : str

The glacier’s RGI identifier


__init__(self, line[, dx, surface_h, …]) Initialize a Centerline
set_apparent_mb(self, mb[, mu_star]) Set the apparent mb and flux for the flowline.
set_flows_to(self, other[, check_tail, …]) Find the closest point in “other” and sets all the corresponding attributes.
set_line(self, line) Update the Shapely LineString coordinate.


flows_to_indice Indices instead of geometry
inflow_indices Indices instead of geometries
normals List of (n1, n2) normal vectors at each point.
surface_h Needed for overriding later
widths Needed for overriding later