vb_test_run: Checking if the VB protocol worked properly

View source: R/vb_test_run.R

vb_test_runR Documentation

Checking if the VB protocol worked properly

Description

This function compares the data before and after the VB run to make sure it worked. It only provides a visual comparison to see if the extrapolation was effective. All generated plots, need to be different from each other, otherwise something went wrong with the VB simulation. Expects the processed data to be saved in the same root that raw data within a folder called Processed720_Annualaverage_txt. File names must be the same.

Usage

vb_test_run(model, ssp, variable, yr)

Arguments

model

The Earth System model that will be running. Part of the path. Needs to match the file name

ssp

The SSP to run. Part of the path. Needs to match the file name

variable

Expects the name of the variable to be converted. Part of the path. Needs to match the file name

yr

A set of years to run the function

Value

Returns three plots to visualize differences; a histogram, a historic line and a map of 10 years average

Author(s)

Juliano Palacios Abrantes | j.palacios@oceans.ubc


coruubc/Rcoru documentation built on Feb. 11, 2024, 12:07 a.m.