Skip to contents

Applies processing context settings to a measurement, converting it to the requested calibration level (e.g., reflectance).

Usage

cuvis_reprocess(
  ctx,
  measurement,
  mode = c("reflectance", "spectral_radiance", "dark_subtract", "raw", "preview"),
  allow_recalib = FALSE
)

Arguments

ctx

A cuvis_processing_context with references set.

measurement

A cuvis_measurement to reprocess.

mode

Character. Target processing mode: "reflectance" (default), "spectral_radiance", "dark_subtract", "raw", or "preview".

allow_recalib

Logical. Allow recalibration if needed. Default FALSE.

Value

The same cuvis_measurement object, reprocessed in place. Extract the cube with cuvis_get_cube().