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.
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 simulation by typing the following command:
include("script/run.jl")
Run the model in a Pluto notebook by typing the following command:
using Pluto
Pluto.run(notebook="./notebooks/fsm_pluto.jl")