Skip to content

Latest commit

 

History

History
183 lines (135 loc) · 3.69 KB

api_detailed.rst

File metadata and controls

183 lines (135 loc) · 3.69 KB
orphan

oggm-edu package documentation

oggm_edu

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

GlacierBed GlacierBed.plot

GlacierBed example

python

from oggm_edu import GlacierBed bed = GlacierBed(top=3400, bottom=1500, width=300) @savefig plot_bed.png width=100% bed.plot();

MassBalance

MassBalance MassBalance.reset MassBalance.get_monthly_mb MassBalance.get_annual_mb MassBalance.gradient MassBalance.ela MassBalance.temp_bias

MassBalance example

python

from oggm_edu import MassBalance mass_balance = MassBalance(ela=3000, gradient=4) mass_balance

Glacier

Glacier

Glacier methods

Glacier.reset Glacier.copy Glacier.progress_to_year Glacier.progress_to_equilibrium Glacier.plot Glacier.plot_mass_balance Glacier.plot_history Glacier.plot_state_history Glacier.add_temperature_bias

Glacier attributes

Glacier.ela Glacier.mb_gradient Glacier.mass_balance Glacier.annual_mass_balance Glacier.specific_mass_balance Glacier.age Glacier.history Glacier.state_history Glacier.creep Glacier.basal_sliding Glacier.eq_states Glacier.response_time Glacier.current_state

Glacier example

python

from oggm_edu import Glacier glacier = Glacier(bed=bed, mass_balance=mass_balance) glacier.progress_to_equilibrium() @savefig plot_glacier.png width=100% glacier.plot();

python

@savefig plot_glacier_equi.png width=100% glacier.plot_history();

SurgingGlacier

SurgingGlacier SurgingGlacier.reset SurgingGlacier.progress_to_year SurgingGlacier.plot_history SurgingGlacier.normal_years SurgingGlacier.surging_years SurgingGlacier.basal_sliding_surge

GlacierCollection

GlacierCollection

GlacierCollection methods

GlacierCollection.reset GlacierCollection.fill GlacierCollection.add GlacierCollection.change_attributes GlacierCollection.progress_to_year GlacierCollection.progress_to_equilibrium GlacierCollection.plot GlacierCollection.plot_side_by_side GlacierCollection.plot_history GlacierCollection.plot_mass_balance

GlacierCollection attributes

GlacierCollection.glaciers GlacierCollection.annual_mass_balance

GlacierCollection example

python

from oggm_edu import GlacierCollection wide_narrow_bed = GlacierBed(altitudes=[3400, 2800, 1500], widths=[600, 300, 300]) wide_narrow_glacier = Glacier(bed=wide_narrow_bed, mass_balance=mass_balance) collection = GlacierCollection() collection.add([glacier, wide_narrow_glacier]) collection.progress_to_year(600) @savefig plot_glacier_collection.png width=100% collection.plot()