Code Monkey home page Code Monkey logo

minimumglaciermodel's Introduction

MinimumGlacierModel

Code for a Minimum Glacier Model (MGM), written for an assignment for the course Ice and Climate. Here, the model is applied to the glacier Veteranen on Spitsbergen.

Usage

First import the modules:

from glacier import *

Then a glacier can be 'created' with

glacier = LinearBedModel(b0, s)
glacier = ConcaveBedModel(b0, ba, xl)
glacier = CustomBedModel(x, y)

where the first line creates a model for a linear bed with maximum bed elevation b0 and slope s, the second line creates a model for an exponentially decreasing bed with top elevation b0, final elevation ba and length-scale xl and the third line creates a model for a custom bed given by two arrays x with x-coordinates and y with corresponding y-coordinates. Other parameters are for example the ice parameters alpha, beta and nu and the calving parameters c and kappa.

The glacier can be simulated in time (using a Forward Euler scheme) by using

glacier.integrate(dt, time, E)

where dt is the timestep, time is the simulated time and E is the equilibrium line altitude. The result can be plotted using the data in glacier.t for time and glacier.L for glacier length or using the function

glacier.plot()

Application to Veteranen

For full explanation, see the notebooks.

Bed of Veteranen History of Veteranen

minimumglaciermodel's People

Contributors

raymondedwards95 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.