use std::path::Path;
use ndarray::Array2;
use crate::core::processing::save::save_processed_multiband_image_sequential;
use crate::error::{Error, Result};
use crate::io::sentinel1::SafeMetadata;
use crate::types::{AutoscaleStrategy, BitDepth, OutputFormat, ProcessingOperation, SyntheticRgbMode};
pub fn save_multiband_image(
processed1: &Array2<f32>,
processed2: &Array2<f32>,
output: &Path,
format: OutputFormat,
bit_depth: BitDepth,
target_size: Option<usize>,
metadata: Option<&SafeMetadata>,
pad: bool,
autoscale: AutoscaleStrategy,
operation: ProcessingOperation,
) -> Result<()> {
save_processed_multiband_image_sequential(
processed1,
processed2,
output,
format,
bit_depth,
target_size,
metadata,
pad,
autoscale,
operation,
SyntheticRgbMode::Default,
)
.map_err(|e| Error::external(e))
}