source("modules/Loading/Loading.R")
source("modules/Calibration/Calibration.R")
source("modules/Anomalies/Anomalies.R")
source("modules/Skill/Skill.R")
source("modules/Saving/Saving.R")
source("modules/Visualization/Visualization.R")
source("modules/Downscaling/Downscaling.R")
source("tools/prepare_outputs.R")
source("modules/Units/Units.R")
source("modules/Aggregation/Aggregation.R")

recipe_file <- "recipes/examples/test_provenance_simple.yml"

recipe <- prepare_outputs(recipe_file)

# Load datasets
data <- Loading(recipe = recipe)

# Units transformation
#data <- Units(recipe = recipe, data = data)

# Temporal aggregation
#data_agg <- Aggregation(recipe = recipe, data = data)

#Calibration
#data_cal <- Calibration(recipe=recipe, data=data_agg)

#Anomalies 
#data_ano <- Anomalies(recipe, data_cal)

#Metrics
#skill_metrics <- Skill(recipe, data_ano)

#Visualization
#Visualization(recipe, data, skill_metrics, significance = T)
