🔸RISAT-1A#

Level 1.1 (import_risat_l11)#

The import_risat_l11 function extracts Sxy/C2 matrix elements from the given RISAT product folder and saves them into a directory.

polsartools.import_risat_l11(in_dir, mat='C2', azlks=10, rglks=7, fmt='tif', cog=False, ovr=[2, 4, 8, 16], comp=False, out_dir=None)[source]

Extracts Sxy or C2 matrix elements from RISAT-1A compact-pol SLC data and saves them as raster files.

This function performs multi-looking using specified azimuth and range looks, and outputs matrix elements in either GeoTIFF or binary format. It also extracts the incidence angle map and saves it alongside the matrix outputs. Optional support for Cloud Optimized GeoTIFFs (COGs), compression, and custom output directories.

Examples

>>> import_risat_l11("path_to_folder", mat='C2', azlks=10, rglks=7, fmt='tif')
Extracts C2 matrix elements and the incidence angle map from RISAT-1A SLC data and saves them as GeoTIFFs.
Parameters:
  • in_dir (str) – Path to the RISAT-1A SLC folder containing the data and metadata.

  • mat (str, optional (default='C2')) – Type of matrix to extract. Valid options are: - ‘Sxy’: Scattering matrix elements - ‘C2’ : Covariance matrix for compact-pol

  • azlks (int, optional (default=10)) – Number of azimuth looks for multi-looking.

  • rglks (int, optional (default=7)) – Number of range looks for multi-looking.

  • fmt ({'tif', 'bin'}, optional (default='tif')) – Output format: - ‘tif’: GeoTIFF in slant range - ‘bin’: Raw binary format

  • cog (bool, optional (default=False)) – If True, outputs will be saved as Cloud Optimized GeoTIFFs with internal tiling and overviews.

  • ovr (list of int, optional (default=[2, 4, 8, 16])) – Overview levels for COG generation. Ignored if cog=False.

  • comp (bool, optional (default=False)) – If True, applies LZW compression to GeoTIFF outputs.

  • out_dir (str 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 folder.