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.Centerlinebut calculates routes along the topography and makes ashapely.Linestringobject from them.- Parameters
- gdir
oggm.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)
- gdir
Notes
- Files writen to the glacier directory:
- centerlines.pkl
A list of
oggm.Centerlineinstances, 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.