nc_combine_time: Combine several netCDF file by time.

Description Usage Arguments

View source: R/nc4_relevents.R

Description

Combine several netCDF file by time. Each netCDF file should have the same dimensions and variables.

Usage

1
2
nc_combine_time(fs, out_file, from = NULL, to = NULL, datum_nc = 1,
  compression = NA, slip = 30)

Arguments

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.


Sibada/sibadaR documentation built on Jan. 31, 2020, 6:40 p.m.