oggm.tasks.compute_centerlines#

oggm.tasks.compute_centerlines(gdir, heads=None)[source]#

Compute the centerlines following Kienholz et al., (2014).

They are then sorted according to the modified Strahler number: http://en.wikipedia.org/wiki/Strahler_number

This function does not initialize a oggm.Centerline but calculates routes along the topography and makes a shapely.Linestring object from them.

Parameters
gdiroggm.GlacierDirectory

where to write the data

headslist, optional

list of shapely.geometry.Points to use as line heads (default is to compute them like Kienholz did)

Notes

Files written to the glacier directory:
centerlines.pkl

A list of oggm.Centerline instances, sorted by flow order.

gridded_data.nc

A netcdf file containing several gridded data variables such as topography, the glacier masks, the interpolated 2D glacier bed, and more. This is for static, non time-dependant data.