An open API service indexing awesome lists of open source software.

https://github.com/mauro3/toy-research-project-breithorn

Repo illustrating the Tasks in https://github.com/mauro3/CORDS/blob/master/Workshop-Reproducible-Research/tasks/tasks.md
https://github.com/mauro3/toy-research-project-breithorn

Last synced: 14 days ago
JSON representation

Repo illustrating the Tasks in https://github.com/mauro3/CORDS/blob/master/Workshop-Reproducible-Research/tasks/tasks.md

Awesome Lists containing this project

README

        

# A glacier melt model applied to Breithorngletscher (Zermatt, Switzerland) to learn about reproducible research practices

This an example code repository implementing the project of [Workshop on Reproducible Research](https://github.com/mauro3/CORDS/tree/master/Workshop-Reproducible-Research).

In particular it follows the task list in the [TOC](https://github.com/mauro3/CORDS/blob/master/Workshop-Reproducible-Research/TOC.md) and further described in [Tasks.md](https://github.com/mauro3/CORDS/blob/master/Workshop-Reproducible-Research/tasks/tasks.md).

The steps, as described in [Tasks.md](https://github.com/mauro3/CORDS/blob/master/Workshop-Reproducible-Research/tasks/tasks.md), are committed and tagged with the task number, see https://github.com/mauro3/toy-research-project-breithorn/tags.

## Mass balance model

- The melt model is a simple temperature index melt model.
- Temperature lapses with a linear function.
- Precipitation is from measurements and a threshold temperature determines whether it is snow.

The main function is `glacier_net_balance_fn` which returns:
- the glacier net balance [m] (i.e. how much volume was gained or lost
over the time period)
- net balance at all points [m] (i.e. how much volume was gained or
lost at each grid cell)

## Data

- measured temperature (operated by VAW-GL in 2007) from a met-station near Breithorngletscher is used
- digital elevation model is the DHM200 of swisstopo
- mask is derived from outlines of the Swiss Glacier Inventory (however, we pretend that we digitised that outline ourselves)

Data is located at https://raw.githubusercontent.com/mauro3/CORDS/master/data/workshop-reproducible-research

## Installation

- Install Julia, preferably via [juliaup](https://github.com/JuliaLang/juliaup)
- make a project folder, probably `toy-research-project-breithorn`
- clone this repository into that folder and (re)name it `code/` (execute, e.g., `git clone https://github.com/mauro3/toy-research-project-breithorn.git code`)
- we write into its parent folder thus make sure to create the repo as a subfolder within `toy-research-project-breithorn`
- `cd code` and `julia --project`
- in the REPL hit `]` to enter package-mode, execute `instantiate`
- exit package mode by hitting backspace
- try running the tests by executing `include("test/runtests.jl")` at the Julia REPL
- to run the model `cd scripts`, start `julia --project`, execute `include("scripts/breithorn-main.jl")`