oggm_edu.Glacier#
- class oggm_edu.Glacier(bed, mass_balance, id=None)#
Provides the user with an easy way to create and perform experiments on simulated glaciers.
It handles the progression and visualisation of the glacier. A glacier is constructed with a GlacierBed and MassBalance.
- Attributes:
id
strThe id property.
age
intSet the age of the glacier.
annual_mass_balance
arrayThe annual mass balance at each grid point of the glacier.
basal_sliding
floatSet the sliding parameter of the glacier
- bedoggm_edu.GlacierBed
The bed of the glacier.
creep
floatSet the value for the creep parameter A in Glens equation.
eq_states
dictGlacier equilibrium states.
history
xArray datasetThe history of the glacier.
mass_balance
oggm_edu.MassBalanceGlacier mass balance.
specific_mass_balance
floatThe specific mass balance of the glacier [m w.e.
state_history
xArray datasetThe state history of the glacier, i.e.
response_time
intThe response time of the glacier.
- __init__(bed, mass_balance, id=None)#
Initialise a glacier object from a oggm_edu.GlacierBed and a oggm_edu.MassBalance.
- Parameters:
- bedoggm_edu.GlacierBed
- mass_balanceoggm_edu.MassBalance
- idstr
String identifying the glacier.
Methods
__init__
(bed, mass_balance[, id])Initialise a glacier object from a oggm_edu.GlacierBed and a oggm_edu.MassBalance.
add_random_climate
(duration, temperature_range)Append a random climate to the future mass balance of the glacier.
add_temperature_bias
(bias, duration[, noise])Add a gradual temperature bias to the future mass balance of the glacier.
copy
([id])Return a copy of the glacier.
plot
([axes, title_number])Plot the current state of the glacier.
plot_history
([show_bias, window, ...])Plot the history of the glacier.
Plot the mass balance profile of the glacier.
plot_state_history
([interval, eq_states])Plot the state history of the glacier (thicknesses) at specified intervals.
progress_to_equilibrium
([years, t_rate])Progress the glacier to equilibrium.
progress_to_year
(year)Progress the glacier to year n.
reset
()Reset the glacier to initial state.
summary
()A summary of the glacier, in the form of a pandas dataframe.
Attributes
accumulation_area_ratio
The accumulation area ratio.
Set the age of the glacier.
The annual mass balance at each grid point of the glacier.
Set the sliding parameter of the glacier
basal_sliding_str
Set the value for the creep parameter A in Glens equation.
creep_str
For advanced users: get access to the current OGGM
Flowline
object.Expose the mass balance ela for the glacier.
Glacier equilibrium states.
The history of the glacier.
id
The id property.
Glacier mass balance.
Expose the mass balance gradient.
The response time of the glacier.
The specific mass balance of the glacier [m w.e.
The state history of the glacier, i.e. geometrical changes over time.