improved S-\(\Omega\) decomposition (s_omega)#
- polsartools.s_omega(in_dir, chi=45, psi=0, win=1, fmt='tif', cog=False, ovr=[2, 4, 8, 16], comp=False, max_workers=None, block_size=(512, 512), progress_callback=None)[source]
Perform Modified/Improved S-Omega Decomposition for compact-pol SAR data.
This function implements an enhanced version of the S-Omega decomposition technique for compact-polarimetric SAR data. It decomposes the total backscattered power into three components: surface scattering (Ps), double-bounce scattering (Pd), and volume scattering (Pv), with improvements over the traditional S-Omega method.
Examples
>>> # Basic usage with default parameters >>> s_omega("/path/to/cp_data")
>>> # Advanced usage with custom parameters >>> s_omega( ... in_dir="/path/to/cp_data", ... chi=-45, ... win=5, ... fmt="tif", ... cog=True, ... block_size=(1024, 1024) ... )
- Parameters:
in_dir (str) – Path to the input folder containing compact-pol C2 matrix files.
chi (float, default=45) – Ellipticity angle chi of the transmitted wave in degrees. For circular polarization, chi = 45° (right circular) or -45° (left circular).
psi (float, default=0) – Orientation angle psi of the transmitted wave in degrees. For circular polarization, typically 0°.
win (int, default=1) – Size of the spatial averaging window. Larger windows reduce speckle noise but decrease spatial resolution.
fmt ({'tif', 'bin'}, default='tif') – Output file format: - ‘tif’: GeoTIFF format with georeferencing information - ‘bin’: Raw binary format
cog (bool, default=False) – If True, creates Cloud Optimized GeoTIFF (COG) outputs with internal tiling and overviews for efficient web access.
ovr (list[int], default=[2, 4, 8, 16]) – Overview levels for COG creation. Each number represents the decimation factor for that overview level.
comp (bool, default=False) – If True, applies LZW compression to the output GeoTIFF files.
max_workers (int | None, default=None) – Maximum number of parallel processing workers. If None, uses CPU count - 1 workers.
block_size (tuple[int, int], default=(512, 512)) – Size of processing blocks (rows, cols) for parallel computation. Larger blocks use more memory but may be more efficient.
- Returns:
Writes three output files to disk: 1. Ps_miSOmega: Surface scattering power component 2. Pd_miSOmega: Double-bounce scattering power component 3. Pv_miSOmega: Volume scattering power component
- Return type:
None
The stokes paramters can be written in terms of the covariance matrx (C2) elements as follows:
Then, the parameters Same-sense Circular (\(\text{SC}\)) and Opposite-sense Circular (\(\text{OC}\)) can be expressed as follows:
Now, based on the ratio of \(\text{SC}\) and \(\text{OC}\) the decomposition powers can be derived as given below. Further details can be found in [[7]](#7)