🔸ALOS-2 PALSAR-2#
FBD L1.1 (alos2_fbd_l11)#
The alos2_fbd_l11 function extracts C2 matrix elements from the given ALOS-2 FBD mode folder and saves them into a C2 directory.
- polsartools.alos2_fbd_l11(inFolder, azlks=3, rglks=2, calfac_dB=-83)[source]
Extracts the C2 matrix elements (C11, C22, and C12) from ALOS-2 Fine Beam Dual-Pol (FBD) CEOS data and saves them into respective binary files.
Example:#
>>> alos2_fbd_l11("path_to_folder", azlks=5, rglks=3, calfac_dB=-80) This will extract the C2 matrix elements from the ALOS-2 Fine Beam Dual-Pol data in the specified folder and save them in the 'C2' directory.
Parameters:#
- inFolderstr
The path to the folder containing the ALOS-2 Fine Beam Dual-Pol CEOS data files.
- azlksint, optional (default=3)
The number of azimuth looks for multi-looking.
- rglksint, optional (default=2)
The number of range looks for multi-looking.
- calfac_dBfloat, optional (default=-83)
The calibration factor in dB used to scale the raw radar data. It is applied to the HH and HV polarization data before matrix computation.
Returns:#
- None
The function does not return any value. Instead, it creates a folder named C2 (if not already present) and saves the following binary files:
C11.bin: Contains the C11 matrix elements.
C22.bin: Contains the C22 matrix elements.
C12_real.bin: Contains the real part of the C12 matrix.
C12_imag.bin: Contains the imaginary part of the C12 matrix.
config.txt: A text file containing grid dimensions and polarimetric configuration.
Raises:#
- FileNotFoundError
If the required ALOS-2 data files (e.g., IMG-HH and IMG-HV) cannot be found in the specified folder.
- ValueError
If the calibration factor is invalid or if the files are not in the expected format.
HBQ L1.1 (alos2_hbq_l11)#
The alos2_hbq_l11 function extracts S2/T3/C3 matrix elements from the given ALOS-2 HBQ mode folder and saves them into a corresponding directories.
- polsartools.alos2_hbq_l11(inFolder, matrix='T3', azlks=8, rglks=4, sym=True, calfac_dB=-83)[source]
Extracts single look S2 or Multi-look T3/C3 matrix elements from ALOS-2 Quad-Pol (HBQ) CEOS data and saves them into respective binary files.
Example:#
>>> alos2_hbq_l11("path_to_folder", azlks=5, rglks=3, calfac_dB=-80) This will extract the T3 matrix elements from the ALOS-2 Fine Beam Dual-Pol data in the specified folder and save them in the 'C2' directory.
Parameters:#
- inFolderstr
The path to the folder containing the ALOS-2 Quad-Pol (HBQ) CEOS data folder.
- matrixstr, optional (default=’T3’)
The matrix type to extract. Can be ‘S2’,’T3’ or ‘C3’.
- azlksint, optional (default=8)
The number of azimuth looks for multi-looking.
- rglksint, optional (default=4)
The number of range looks for multi-looking.
- calfac_dBfloat, optional (default=-83)
The calibration factor in dB used to scale the raw radar data. It is applied to the HH and HV polarization data before matrix computation.
Returns:#
- None
The function does not return any value. Instead, it creates a folders named ‘S2` or ‘C3` or ‘T3` (depending on the chosen matrix) and saves the corresponding binary files.