CST_SaveExp {CSTools}R Documentation

Save CSTools objects of class 's2dv_cube' containing experiments or observed data in NetCDF format

Description

This function allows to divide and save a object of class 's2dv_cube' into a NetCDF file, allowing to reload the saved data using CST_Load function.

Usage

CST_SaveExp(data, destination = "./CST_Data", extra_string = NULL)

Arguments

data

an object of class s2dv_cube.

destination

a character string containing the directory name in which to save the data. NetCDF file for each starting date are saved into the folder tree: destination/experiment/variable/. By default the function creates and saves the data into the folder "CST_Data" in the working directory.

extra_string

a character string to be include as part of the file name, for instance, to identify member or realization. It would be added to the file name between underscore characters.

Author(s)

Perez-Zanon Nuria, nuria.perez@bsc.es

See Also

CST_Load, as.s2dv_cube and s2dv_cube

Examples

## Not run: 
library(CSTools)
data <- lonlat_data$exp
destination <- "./path2/"
CST_SaveExp(data = data, destination = destination)

## End(Not run)


[Package CSTools version 4.0.1 Index]