View source: R/nc4_relevents.R
Combine several netCDF file by time. Each netCDF file should have the same dimensions and variables.
1 2 | nc_combine_time(fs, out_file, from = NULL, to = NULL, datum_nc = 1,
compression = NA, slip = 30)
|
fs |
A vector of string. File paths of each nc file to be combine. |
out_file |
Output path of the new combined nc file. |
from |
A vector indicating the start of the time range to be combine of each nc file. |
to |
A vector indicating the end of the time range to be combine of each nc file. |
datum_nc |
Which nc file to be regard as the datum, i.e. the attributes, dimensions and variable names would inherit from it. |
compression |
The same parameters of function ncvar_def. Define the compression level of the nc file. |
slip |
Provided if the time datum ("XXX" of the "days since XXX") of each file are not equal. It appoints the times interval (in time step) between each nc file to be combine. Default 30. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.