oggm_edu.GlacierCollection.change_attributes#

GlacierCollection.change_attributes(attributes_to_change)#

Change the attribute(s) of the glaciers in the collection.

Parameters:
attributes_to_changedict

Dictionary where the key value pairs follow the structure: {"key": [n values], ...}, where “key” matches an attribute of the glacier and n matches the length of the collection. Valid keys are:

  • gradient

  • ela

  • basal_sliding

  • creep

  • normal_years

  • surging_years

  • basal_sliding_surge

Values should be either numeric or a partial mathematical expression (string) e.g. "* 10": this would evaluate to multiplying the current value by a factor 10. Pass an empty string to leave the attribute unaffected.