oggm.Flowline¶
-
class
oggm.Flowline(line=None, dx=1, map_dx=None, surface_h=None, bed_h=None, rgi_id=None)[source]¶ Common logic for different types of flowlines used as input to the model
-
__init__(self, line=None, dx=1, map_dx=None, surface_h=None, bed_h=None, rgi_id=None)[source]¶ Initialize a Flowline
Parameters: - line :
shapely.geometry.LineString the geometrical line of a
oggm.Centerline- dx : float
Grid spacing in pixel coordinates
- map_dx : float
DEM grid spacing in meters
- surface_h: :py:class:`numpy.ndarray`
elevation [m] of the flowline grid points
- bed_h: :py:class:`numpy.ndarray`
elevation[m] of the bedrock at the flowline grid points
- rgi_id : str
The glacier’s RGI identifier
- line :
Methods
__init__(self[, line, dx, map_dx, …])Initialize a Flowline 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. to_dataset(self)Makes an xarray Dataset out of the flowline. Attributes
area_km2area_m2flows_to_indiceIndices instead of geometry inflow_indicesIndices instead of geometries length_mnormalsList of (n1, n2) normal vectors at each point. surface_hNeeded for overriding later thickNeeded for overriding later volume_km3volume_m3widthsCompute the widths out of H and shape -