vb_convert_na: Transform NAs for the visual basic extrapolation

View source: R/vb_convert_na.R

vb_convert_naR Documentation

Transform NAs for the visual basic extrapolation

Description

This function transforms any NA value to -9999. It assumes the data is in the DROBO under the folder Environmental data/CMIPx_DATA. You need to have access to the DROBO in order to use this function. VB step 1/6

Usage

vb_convert_na(
  cimip = 6,
  model,
  ssp,
  variable,
  years,
  overwrite = T,
  save_path = NA
)

Arguments

cimip

The number of the modeling project. Currently set to 6

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 filename

years

A set of years to run the function

overwrite

The result of the function will overwrite the original file. Set to F if you do not want this option. If F, a save path needs to be provided. Normally set to T.

save_path

Expects a path to save the data. Needs overwrite = F. Do not include / at the end of the path

Value

It does not return anything. This function will overwrite the original file unless the parameter overwrite = F

Author(s)

Juliano Palacios Abrantes | j.palacios@oceans.ubc


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