refactor(rasterUtils, deriveParameterSet): simplify compression logic and reformat function call
- Updated compression logic in `writeResultToRaster` to initialize `extraKwargs` more clearly.
refactor(com1DFA): remove redundant raster output logic in `updateResCoeffFields`
refactor(com1DFA): simplify `updateResCoeffFields` function and remove unused parameters
- Removed unused `t` and `dem` parameters from `updateResCoeffFields` function to streamline its interface.
- Updated all references to `updateResCoeffFields` across `com1DFA` and related test files.
feat(rasterUtils): add optional compression parameter for raster writing
- Introduced `useCompression` parameter to `writeResultToRaster` for configurable compression of `GTiff` files.
- Defaulted the parameter to `True` for LZW compression
refactor(rasterUtils): simplify raster file writing logic and enforce driver validation; fixes #1163
- Added validation to ensure only supported drivers (`AAIGrid`, `GTiff`) are used.
- Utilized `with` statement to handle file writing safely and cleanly.
- Implemented LZW compression for `GTiff` raster outputs to optimize file size.
- Refactored file writing logic to support driver-specific configurations.
refactor(com1DFA): remove unnecessary blank line from configuration file
- Introduced `useCompression` parameter in `EXPORTS` config to enable LZW compression for raster outputs.
- Updated `writeResultToRaster` calls across modules to support optional compression.
- Adjusted tests and added relevant configuration for validation.
PROBLEM WITH updateResCoeffFields -> only cfg General is supplied, not Exports
For the compression:
Each module should implement a useCompression in their cfg IF they want to turn off compression in the case of tiff usage. (done for com1DFA)
By default compression is used!