Skip to contents

(OBSOLETE) Split datacube into sub-rasters, fit model 0.3's, and stitch together. Divide-and-conquer.

Usage

tj_fit_m0.5(
  x,
  timevar = "year",
  attrvar = "values",
  tiling,
  cfg,
  ...,
  ncores = 1,
  verbose = TRUE,
  verbose2 = verbose,
  fitpath = NULL,
  fitid = "youridhere",
  keep_all_in_memory = TRUE,
  recalc = FALSE
)

Arguments

x

stars datacube

tiling

given by [tj_divide_raster()]

cfg

m0.3 parameters, see [tj_cfg_m0.3()]

...

parameters passed on to [tj_fit_m0.3()] (in case cfg not used)

cores

number of cores to use in multicore computation using `doParallel`

Value

List of fits (keep_all_in_memory=TRUE) or list of files where the fits are stored (fitpath provided). Note: The fits have cell_info element where the 'truecell' column provides the mapping to the original 'x'.

Details

Wrap fitting of m0.3 in subsets for multicore computation. The tiling splits the stars-object into subrasters, then [tj_fit_m0.3()] is called on each subraster.

This has been replaced by the more general tj_fit_m0.x.

See also

[tj_cfg_m0.3()] [tj_fit_m0.x]