SNOWPACK  SNOWPACK-3.4.5
Getting Started

After you installed a binary package or compiled and installed Snowpack, you can run your first simulation. Please make sure you properly set the proper environement variables for your operating system:

  • on osX: set PATH and DYLD_FALLBACK_LIBRARY_PATH
  • on Linux: set PATH and LD_LIBRARY_PATH if you install the package to a non-standard location
  • on Windows: set PATH How to do this (and much more) is explained in the online documentation at https://models.slf.ch/p/snowpack/page/Getting-started/.

Running an example simulation

In order to run an example simulation, please follow the steps below:

  1. First, copy the examples as provided with this documentation (the whole doc/examples directory) to a directory where you have write access.
  2. Open a terminal and go to the directory where you copied the simulation you want to run
  3. Select one of the examples and run its start script, for example ./run_res1exp.sh (on Windows, you have to open the script file and copy the last command line it contains into a terminal). You can also manually run Snowpack, by typing something like snowpack -c {ini file with path} -e {simulation end date in ISO format}.
  4. Once the simulation is finished, the results are available in the output directory. This directory must exist before you run the simulation!
  5. The results can be visualized using the sngui tool by opening the .pro file that was generated in output.

Running your own simulation

Once you have been able to run an example simulation, you can try to run your own simulation. This involves the following steps:

  1. First, gather the meteorological data that you need to drive the simulation. Please have a look at Data requirements;
  2. Then, write the data in a format that meteoio can read for Snowpack, for example SMET (see the file format specification included in the meteoio's documentation and follow it);
  3. Once your data is ready, you can configure your simulation, using inishell. Please keep in mind that the default choices in inishell are such that if you don't change them, a simple simulation should work. And do not change parameters in the SnowpackAdvanced section! (this section is reserved for some specific use cases where a deeper control on the operation of the model is required).
  4. Then, run the simulation from a terminal (after going to the directory where your simulation is) with a command line such as snowpack -c {ini file with path} -e {simulation end date in ISO format}.
  5. Once the simulation is finished, the results are available in the output directory. This directory must exist before you run the simulation!
  6. The results can be visualized using the sngui tool by opening the .pro file that was generated in output.

Simulation workflow

When running a simulation, it is important to keep in mind that the model is organized as several modules that interract together. It is possible to configure some parameters for the various modules and to enable/disable modules. Some modules can be used outside of Snowpack (like MeteoIO that is used in various applications or libSnowpack that is used by Alpine3D) .

simulation_workflow.png
Simulation workflow