Chapter 7 The ForestryValidationNegativeConsump module
The module ForestryValidationNegativeConsump is part of the validation procedure before dissemination. As per its name, it carries data validation on the negative consumption, if any. It is up to the user decides the parameters to be used in this phase.
7.1 Steps
The module can be basically split into four parts as below.
7.1.1 Read in data
The module reads data from forestry_prod_trade_agg dataset and from the datatables listed in the figure 7.1.
7.1.2 Data filtering
After pulling the needed data, the module applies filters using the parameters chosen by the user accordingly. The module has two kinds of parameters:
time range (start and end year of the process) - Start year and End year;
negative consumption threshold - Negative consumption threshold. For instance, in this case if the user chooses
-1000
, the module will filter the time series that contain at least one data point with aConsumption <= -1000
. For the sake of clarification, Consumption is definied as below:- Consumption = Production + Imports - Exports
7.1.3 Negative consumption check
At this stage, the module performs the Negative Consumption check over the data by using the parameter chosen by the user.
7.1.4 Email the user
The final step of this module is to email the user with one .csv file - negative consumption report.
7.2 Running the module
Log in the SWS;
Click on New Query;
Select Forestry domain and forestry_prod_trade_agg dataset;
Select whatever geographicAreaM49, measuredElement, measuredItemForestry and timePointYears. After that, run the query;
Select the ForestryValidationNegativeConsump module, choose the parameters (Start and End year ; Negative Consumption threshold) and click on Run plugin;
6. Wait for a window message to appear in the session;
- Get your results sent by email.