snowpack

Getting-started

You are looking at an old revision of the page Getting-started. This revision was created by Mathias Bavay.

Table of Content

How to get started with Snowpack

Introduction

Please have a look at the same page for MeteoIO: Getting-started. It is also recommended to have a look at Running-Snowpack once you have installed SNOWPACK on your system.

SNOWPACK from sources

In order to reduce the maintenance burden and to make SNOWPACK easier to tailor to specific needs, it has been decomposed into several tools:

  • inishell for graphical configuration of the simulations. Please use it to configure your simulations, it makes it much easier!
  • MeteoIO for data retrieval and preprocessing
  • libsnowpack for doing the core computation and snowpack for calling libsnowpack for a point simulation (ie. what most people want out of SNOWPACK)
  • sngui for simulation output visualization

The Snowpack releases that are found in the Downloads bundle all you need, except sngui that must be downloaded separately. They are available for Linux, Windows and osX and contain an HTML documentation (either in the start menu or in the share subfolder of the installation directory).

Otherwise, if you recompile SNOWPACK from sources, you need to download and install a few other of these package. At the minimum, you need to have MeteoIO on your system, compiled and preferably installed (so when compiling Snowpack, it can automatically find meteoio. If you don't want to install MeteoIO on your system, you have to keep the following directory structure:

                |
                |-----> snowpack trunk
                |-----> meteoio trunk

and then snowpack would still find MeteoIO automatically. regarding the documentation, you can either generate it from your download using doxygen (see MeteoIO's Getting-started) or separately download a documentation only package (in the Downloads).

Having SNOWPACK in your PATH

In order to run SNOWPACK from the command line without having to type its full path every time, SNOWPACK's path should be added to the PATH environment variable.

PATH for Linux and osX

Edit either your ${HOME}/.profile or ${HOME}/.bashrc file and add the following: export PATH={path to SNOWPACK}:$PATH

PATH for Windows

The exact location depend on the version of Windows that you are using. For Windows7, from the start menu, got to: Start > Control Panel > System and Security > System > Advanced system settings. Then in the Advanced tab, either create/edit the PATH variable in the User variables or in the System variables.

Running Snowpack

Please have a look at Running-Snowpack.

When something does not work

Please have a look at GettingHelp