# oggm.core.centerlines.initialize_flowlines¶

oggm.core.centerlines.initialize_flowlines(gdir)[source]

Computes more physical Inversion Flowlines from geometrical Centerlines

This interpolates the centerlines on a regular spacing (i.e. not the grid’s (i, j) indices. Cuts out the tail of the tributaries to make more realistic junctions. Also checks for low and negative slopes and corrects them by interpolation.

Parameters: gdir : oggm.GlacierDirectory where to write the data

Notes

Files writen to the glacier directory:
inversion_flowlines.pkl
A “better” version of the Centerlines, now on a regular spacing i.e., not on the gridded (i, j) indices. The tails of the tributaries are cut out to make more realistic junctions. They are now “1.5D” i.e., with a width.