oggm.Centerline#

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

Geometry (line and widths) and flow rooting properties, but no thickness

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

Initialize a Centerline

Parameters
lineshapely.geometry.LineString

The geometrically calculated centerline

dxfloat

Grid spacing of the initialised flowline in pixel coordinates

surface_hnumpy.ndarray

elevation [m] of the points on line

orig_headshapely.geometry.Point

geometric point of the lines head

rgi_idstr

The glacier’s RGI identifier

map_dxfloat

the map’s grid resolution. Centerline.dx_meter = dx * map_dx

Methods

__init__(line[, dx, surface_h, orig_head, ...])

Initialize a Centerline

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.

Attributes

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

widths_m