R/helperFun.R

Defines functions .acomb .combineNCData

# ---------------------------------------------------------------------------- #
# helper functions
# ---------------------------------------------------------------------------- #

# parallel helper function to combine ncdf data
.combineNCData = function(path, fn_const, y, var, dates) {
  out = .read.ncdf.var(path = path, 
                      fn = paste0(fn_const, 
                                  dates[y],
                                  ".nc"),
                      varname = var)
}

# abind along third dimension
.acomb = function(...) abind::abind(..., along = 3)
jnnsbrr/PhotoBioDynamics documentation built on March 9, 2021, 4:07 p.m.