oggm.tasks.compute_downstream_lines

oggm.tasks.compute_downstream_lines(gdir, **kwargs)

Compute the lines continuing the glacier (one per divide).

The idea is simple: starting from the glacier tail, compute all the routes to all local minimas found at the domain edge. The cheapest is “the One”.

The task also determines the so-called “major flowline” which is the only line flowing out of the domain. The other ones are flowing into the branch. The rest of the job (merging all centerlines + downstreams into one single glacier is realized by init_present_time_glacier()).

Parameters:

gdir : oggm.GlacierDirectory

Returns:

Files writen to the glacier directory:

downstream_line.pkl

A shapely.LineString of the coordinates of the downstream line (flowing out of the glacier until the border of the domain) for each divide.

major_divide.pkl

A simple integer in the glacier root directory (divide 00) containing the ID of the “major divide”, i.e. the one really flowing out of the glacier (the other downstream lines flowing into the main branch).