Opened 8 months ago

Closed 8 months ago

Last modified 8 months ago

#7222 closed defect (fixed)

Incorrect calculation of C23 in AirSAR Reader (gdal/frmts/airsar/airsardataset.cpp)

Reported by: chgHou Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: unspecified
Severity: critical Keywords:
Cc:

Description

According to AIRSAR data format (https://airsar.jpl.nasa.gov/documents/genairsar/chapter4.pdf, page 7), the correct way to calculate the imaginary part of C23 (Band 5) is using M24 and M14, rather than M23 which only contains real parts.

-            pafLine[iPixel*2 + 1] = (float)(SQRT_2 * (m[M23] - m[M14]));
+            pafLine[iPixel*2 + 1] = (float)(SQRT_2 * (m[M24] - m[M14]));

Change History (2)

comment:1 Changed 8 months ago by Even Rouault

Resolution: fixed
Status: newclosed

In 41375:

AirSAR: fix computation of imaginary part in C23 case (patch by chgHou, fixes #7222)

comment:2 Changed 8 months ago by Even Rouault

In 41376:

AirSAR: fix computation of imaginary part in C23 case (patch by chgHou, fixes #7222)

Note: See TracTickets for help on using tickets.