Python Sen3dkol Software [best]
Configure Sen3DKol workflows to output image rasters structured as COGs. This permits downstream scripts to fetch specific internal tile matrices over HTTP without downloading the entire asset.
chl = olci_data["CHL_NN"] temp = olci_data["sea_surface_temperature"] python sen3dkol software
Combines spectral thresholding with spatial shadow projection to flag contaminated pixels. Setting Up the Python Environment Setting Up the Python Environment import os import
import os import subprocess import logging from pathlib import Path # Configure structured runtime logs logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') def execute_sen3dkol_processor(input_directory: str, output_directory: str, resolution: int = 20) -> bool: """ Executes the Sen3DKol atmospheric correction engine over a target satellite product directory. """ input_path = Path(input_directory) output_path = Path(output_directory) if not input_path.exists(): logging.error(f"Target input directory missing: input_path") return False output_path.mkdir(parents=True, exist_ok=True) # Structure system arguments for the underlying Sen3DKol software binary processing_command = [ "sen3dkol", "--input", str(input_path), "--output", str(output_path), "--resolution", str(resolution), "--mode", "BOA" ] try: logging.info(f"Initiating Sen3DKol processor for: input_path.name") # Execute binary and capture stdout/stderr streams runtime_process = subprocess.run( processing_command, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True ) logging.info("Sen3DKol processing sequence completed successfully.") return True except subprocess.CalledProcessError as error: logging.error(f"Sen3DKol execution failed. Return code: error.returncode") logging.error(f"Error Context: error.stderr") return False # Example invocation for a pipeline step if __name__ == "__main__": RAW_DATA_INPUT = "/data/satellite/incoming/L1C_Tile_001" ANALYSIS_READY_OUTPUT = "/data/satellite/processed/L2A_Tile_001" success = execute_sen3dkol_processor(RAW_DATA_INPUT, ANALYSIS_READY_OUTPUT, resolution=10) Use code with caution. Data Analysis & Array Manipulation Data Analysis & Array Manipulation Do not load
Do not load complete spatial scenes into RAM simultaneously. Use Dask-backed Xarray architectures to stream array slices lazily.
SEN3DKOL is a software tool designed for processing and analyzing Sentinel-3 (SEN-3) satellite data. Sentinel-3 is part of the European Space Agency's (ESA) Copernicus program, providing high-resolution optical and radar data for various Earth observation applications. The SEN3DKOL software is particularly useful for handling the complexities of SEN-3 data, including its unique data formats and processing requirements.