oggm.tasks.catchment_area¶
-
oggm.tasks.
catchment_area
(gdir)[source]¶ Compute the catchment areas of each tributary line.
The idea is to compute the route of lowest cost for any point on the glacier to rejoin a centerline. These routes are then put together if they belong to the same centerline, thus creating “catchment areas” for each centerline.
Parameters: gdir : oggm.GlacierDirectory
Returns: Files writen to the glacier directory:
- catchment_indices.pkl
A list of len n_centerlines, each element conaining a numpy array of the indices in the glacier grid which represent the centerline’s catchment area.