CST_SaveExp.Rd 1.32 KB
Newer Older
nperez's avatar
nperez committed
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CST_SaveExp.R
\name{CST_SaveExp}
\alias{CST_SaveExp}
\title{Save CSTools objects of class 's2dv_cube' containing experiments or observed 
data in NetCDF format}
nperez's avatar
nperez committed
\usage{
CST_SaveExp(data, destination = "./CST_Data", extra_string = NULL)
nperez's avatar
nperez committed
}
\arguments{
\item{data}{An object of class \code{s2dv_cube}.}
nperez's avatar
nperez committed

\item{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: \cr
destination/experiment/variable/. By default the function 
creates and saves the data into the folder "CST_Data" in the working 
directory.}
\item{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.}
nperez's avatar
nperez committed
}
\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 
\code{CST_Load} function.
nperez's avatar
nperez committed
}
\examples{
\dontrun{
library(CSTools)
data <- lonlat_temp$exp
nperez's avatar
nperez committed
destination <- "./path2/"
nperez's avatar
nperez committed
CST_SaveExp(data = data, destination = destination)
}

}
\seealso{
\code{\link{CST_Load}}, \code{\link{as.s2dv_cube}} and \code{\link{s2dv_cube}}
nperez's avatar
nperez committed
}
nperez's avatar
nperez committed
\author{
Perez-Zanon Nuria, \email{nuria.perez@bsc.es}
}