Adding products
===============

After completing all the information related to the your system, we need to specify which 
product we need to acquire.
To do this, click on the **Products** in the *Product settings* panel.
This will take you to a page with a list of all available products that are connected with your stations. This list should
be empty if this is the first time you add a product. 

To add a new product to the database click on **Add Products** at the top right of the screen.
This will take you to a new page were you can fill in the needed information. As before, the fields in **bold**
are mandatory and you will need to fill them before you can save you new system. 

For now you will need to fill in the following fields:

Product type
   Choose the type of this product. (Available products: Raman backscatter, Extinction only,  Combined Raman backscatter and extinction, Elastic backscatter retrieval)

Usecase
   The use-case number (an integer) based on the descriptions given in the usecase section (ex. 0). See the :ref:`usecase list<usecases>` for details. 

 
Product channels
   Here you need to specify the channels that are involved in the calculation of the product. If you run out of
   empty spaces you can add a new blank line by clicking on **Add another Product Channel**.

System products
   Here you need to specify the system that this product is related to. 
   
Next you will need to fill in various options in the **Product options** table. You will need to fill in the following:

Low range error threshold
   Specify the maximum acceptable error for altitudes **bellow** 2 km. (from 1% to 100%)
   
High range error threshold
  Specify the maximum acceptable error for altitudes **above** 2 km. (from 1% to 100%)
   
Detection limit
   The minimum value that your instrument can detect (in :math:`m^{-1}sr^{-1}` (backscatter) or in :math:`m^{-1}` (extinction))
   
Min height
   The minimum height for for which the product should be calculated (in meters) e.g., 500 m for extinction calculations
   
Max height
   The maximum height for for which the product should be calculated (in meters) e.g., 10000 m for extinction calculations

Preprocessing integration time
   The integrated time of the preprocessed data (in seconds) ex. 900 sec

Preprocessing vertical resolution
   The vertical resolution of the preprocessed data (in meters) ex. 60 m

Next depending on the product type you selected you have to fill the values in the tables below.

When you are done, press the **save** button at the bottom right of the page.
This will take you back to the list of your products. If everything went OK the new product you just added should appear
in the list.

We don't have to make any more changes in this part, so you can click on **Home** 
on the top left of the page to return to the starting page of the *admin section*.

