🔸Chandrayaan-II (DFSAR)#
Full-pol (chyaan2_fp)#
The chyaan2_fp function extracts matrix elements (S2, C3 or T3) from the given Chandrayaan-II folder and saves them into respective directories (S2, C3 or T3).
- polsartools.chyaan2_fp(in_dir, mat='T3', azlks=None, rglks=None, fmt='tif', cog=False, ovr=[2, 4, 8, 16], comp=False, out_dir=None, recip=False)[source]
Extracts specified matrix elements (S2, T3, or C3) from Chandrayaan-II DFSAR Full-Pol data and saves them into respective directories.
Example:#
>>> chyaan2_fp("path_to_folder", mat='T3', azlks=50, rglks=2) This will extract the T3 matrix elements from the Chandrayaan-II DFSAR Full-Pol data in the specified folder and save them in the 'T3' directory.
Parameters:#
- in_dirstr
The path to the folder containing the Chandrayaan-II DFSAR Full-Pol data files.
- matstr, optional (default=’T3’)
Type of matrix to extract. Valid options: ‘S2’, ‘C4, ‘C3’, ‘T4’, ‘T3’, ‘C2HX’, ‘C2VX’, ‘C2HV’,’T2HV’
- azlksint, optional (default=None)
The number of azimuth looks for multi-looking. If not specified, the value is derived from the ground range and output line spacing.
- rglksint, optional (default=None)
The number of range looks for multi-looking. If not specified, the value is set to 1.
- fmt{‘tif’, ‘bin’}, optional (default=’tif’)
Output format: - ‘tif’: GeoTIFF - ‘bin’: Raw binary format
- cogbool, optional (default=False)
If True, outputs will be saved as Cloud Optimized GeoTIFFs with internal tiling and overviews.
- ovrlist of int, optional (default=[2, 4, 8, 16])
Overview levels for COG generation. Ignored if cog=False.
- compbool, optional (default=False)
If True, applies LZW compression to GeoTIFF outputs.
- out_dirstr or None, optional (default=None)
Directory to save output files. If None, a folder named after the matrix type will be created in the same location as the input file.
- recipbool, optional (default=False)
If True, scattering matrix reciprocal symmetry is applied, i.e, S_HV = S_VH.