oggm-edu package documentation#
Here follows a list of the oggm-edu
classes and their functionality. The best
way to learn is to navigate between this static documentation and the
rendered notebooks or the interactive version on MyBinder!
GlacierBed#
|
The glacier bed used to construct a |
Plot the bed |
GlacierBed example#
In [1]: from oggm_edu import GlacierBed
In [2]: bed = GlacierBed(top=3400, bottom=1500, width=300)
In [3]: bed.plot();

MassBalance#
|
Oggm Edu mass balance, used to construct the |
Reset the mass balance to initial state. |
|
|
Calculate the monthly mass balance for the glacier. |
|
Get the annual mass balance. |
Mass balance altitude gradient, mm/m. |
|
Altitude of the equilibrium line altitude (m). |
|
Current temperature bias applied to the mass balance (unit: °C) |
MassBalance example#
In [4]: from oggm_edu import MassBalance
In [5]: mass_balance = MassBalance(ela=3000, gradient=4)
In [6]: mass_balance
Out[6]:
Glacier mass balance
ELA [m]: 3000
Original ELA [m]: 3000
Temperature bias [C]: 0
Gradient [mm/m/yr]: [4]
Glacier#
|
Provides the user with an easy way to create and perform experiments on simulated glaciers. |
Glacier methods#
Reset the glacier to initial state. |
|
|
Return a copy of the glacier. |
|
Progress the glacier to year n. |
|
Progress the glacier to equilibrium. |
|
Plot the current state of the glacier. |
Plot the mass balance profile of the glacier. |
|
|
Plot the history of the glacier. |
|
Plot the state history of the glacier (thicknesses) at specified intervals. |
|
Add a gradual temperature bias to the future mass balance of the glacier. |
Glacier attributes#
Expose the mass balance ela for the glacier. |
|
Expose the mass balance gradient. |
|
Glacier mass balance. |
|
The annual mass balance at each grid point of the glacier. |
|
The specific mass balance of the glacier [m w.e. |
|
Set the age of the glacier. |
|
The history of the glacier. |
|
The state history of the glacier, i.e. geometrical changes over time. |
|
Set the value for the creep parameter A in Glens equation. |
|
Set the sliding parameter of the glacier |
|
Glacier equilibrium states. |
|
The response time of the glacier. |
|
For advanced users: get access to the current OGGM |
Glacier example#
In [7]: from oggm_edu import Glacier
In [8]: glacier = Glacier(bed=bed, mass_balance=mass_balance)
In [9]: glacier.progress_to_equilibrium()
In [10]: glacier.plot();

In [11]: glacier.plot_history();

SurgingGlacier#
|
A surging glacier. |
Reset the state of the surging glacier. |
|
Progress the surging glacier to specified year. |
|
Plot the history of the surging glacier. |
|
Number of years that the glacier progress without surging. |
|
Number of years that the glacier progress during surges. |
|
GlacierCollection#
|
This is an object used to store multiple glaciers. |
GlacierCollection methods#
Reset all glaciers in the collection |
|
|
Fill the collection with a desired number of glaciers. |
|
Adds one or more glaciers to the collection. |
Change the attribute(s) of the glaciers in the collection. |
|
Progress the glaciers within the collection to the specified year. |
|
Progress the glaciers to equilibrium. |
|
Plot the glaciers in the collection to compare them. |
|
Plot the collection but side by side. |
|
Plot the histories of the collection. |
|
Plot the mass balance(s) for the glaciers in the collection. |
GlacierCollection attributes#
Glaciers stored in the collection |
|
Glaciers mass balances |
GlacierCollection example#
In [12]: from oggm_edu import GlacierCollection
In [13]: wide_narrow_bed = GlacierBed(altitudes=[3400, 2800, 1500],
....: widths=[600, 300, 300])
....:
In [14]: wide_narrow_glacier = Glacier(bed=wide_narrow_bed,
....: mass_balance=mass_balance)
....:
In [15]: collection = GlacierCollection()
In [16]: collection.add([glacier, wide_narrow_glacier])
In [17]: collection.progress_to_year(600)
In [18]: collection.plot()
