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:gradientelabasal_slidingcreepnormal_yearssurging_yearsbasal_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.