Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.29 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.29 KB

Factorial Snow Model

This is a Julia implementation of the Factorial Snow Model (FSM), a multi-physics energy balance model of accumulation and melt of snow on the ground. The original code and more information about the model can be found here.

Installation

If you have not yet installed Julia, please follow the instructions for your operating system. We recommend using the latest stable release of Julia.

Start Julia, enter ] to bring up the package manager, and add the FSM package in development mode:

julia> ]
(v1.10) pkg> dev https://github.com/jannefiluren/FSM.jl.git

This clones the code to <your_home>\julia\.dev\FSM. Exit Julia, and change directory to the location of the FSM code. Restart Julia using the following command:

julia --project=.

This starts Julia and activates the development environment of FSM.

Run a first test

Run a first simulation by typing the following command:

include("script/run.jl")

Explore the model in Pluto

Run the model in a Pluto notebook by typing the following command:

using Pluto
Pluto.run(notebook="./notebooks/fsm_pluto.jl")