Convert a bootstrap RData file to NetCDF4. THIS FUNCTION IS NOT FINISHED, AND SHOULD NOT BE!!!

bootstrapRDataToNetCDF4(
  bootstrapRDataFile,
  bootstrapNetCDF4File = file.path(dirname(bootstrapRDataFile), "BootstrapData.nc"),
  outputVariables = NULL,
  ow = FALSE
)

Arguments

bootstrapRDataFile

The path to file holding the BoostrapData from a StoX <= 3.6.2 project run.

bootstrapNetCDF4File

The path to the new netCDF4 file.

outputVariables

An optional list of variables to keep in the output. A typical set of variables could be ["Survey", "Stratum", "SpeciesCategory", "IndividualTotalLength", "IndividualAge", "Abundance", "Biomass"], which should cover the most frequently used variables in reports. Any variable that is used in a report must be present in outputVariables. Empty list (the default) implies to keep all variables. This parameter is included to facilitate smaller disc space for the bootstrap objects and faster writing/reading of that file.

ow

Logical: If TRUE, overwrite the bootstrapNetCDF4File.