jplSARtojhc
Description
jplSARtojhc imports NASA/JPL AIRSAR and SIR-C polarimetric Synthetic Aperture Radar (SAR) imageryβin either older VAX floating-point SY format or Newer Compressed Stokes Matrix (-CM) formatβinto OMG1 (JHC_header) 32-bit floating-point (.r4) and 8-bit (.8bit) rasters, while extracting embedded ASCII engineering headers into <out>.header.
CLI Options & Usage
jplSARtojhc -in <sar_file> -out <prefix> [-CM]
-in <sar_file>: Input JPL SAR data file.-out <prefix>: Output filename prefix.-CM: Parses compressed polarimetric Stokes matrix records (10 bytes/pixel), outputting five separate 32-bit floatOMG1files:<prefix>.tp.r4β Total Power (M11).<prefix>.hh.r4β Co-polarizedHHpower (0.5 * M11 + M12).<prefix>.vv.r4β Co-polarizedVVpower (0.5 * M11 - M12).<prefix>.hv.r4&<prefix>.vh.r4β Cross-polarizedHV/VHpower (0.5 * (M11 - M33 - M44)).
Algorithm
- Default
SYMode: Extracts two 5120-byte ASCII headers into<prefix>.header, skips to byte offset25600, converts each 4-byte VAX floating-point sample to IEEE 754 float (scaling by0.25and taking10 * log10(val)for decibels), and writes<prefix>.r4and<prefix>.8bit(1280 Γ 1024). - Compressed Stokes Matrix Mode (
-CM): ParsesNUMBER OF SAMPLES PER RECORD(width),NUMBER OF LINES(height), and byte offsets from the JPL header, decodes the 10-byte-per-pixel Stokes matrix (exponent,mantissaforM11, and scaledM12,M33,M44terms), converts each polarization channel to decibels (10 * log10), and writes the five.r4OMG1files.