Ticket #3977 (closed defect: fixed)

Opened 2 years ago

Last modified 3 weeks ago

Incorrect scaling of complex data

Reported by: antonio Owned by: rouault
Priority: normal Milestone:
Component: GDAL_Raster Version: 1.6.3
Severity: normal Keywords: vrt complex
Cc:

Description

Raster bands having complex data type are incorrectly scaled if one use a VRT file with a complex source (even if the ScaleRatio is 1).

The ScaleRatio is applied only to the real part, while the imaginary part is always set to zero.

The problem as been verified o versions 1.6.3 and 1.7.3 on GNU/Linux x86_64 platforms.

Attached a test program to reproduce the issue.

Attachments

complex_source_bug.py Download (1.2 KB) - added by antonio 2 years ago.
Test program to reproduce the issue

Change History

Changed 2 years ago by antonio

Test program to reproduce the issue

  Changed 2 years ago by rouault

  • owner changed from warmerdam to rouault

  Changed 2 years ago by antonio

  • version 1.6.3 deleted

Issue also confirmed on GDAL 1.8.0.

follow-up: ↓ 4   Changed 2 years ago by rouault

  • status changed from new to closed
  • component changed from default to GDAL_Raster
  • version set to 1.6.3
  • milestone set to 1.8.1
  • keywords vrt complex added
  • resolution set to fixed

Fixed in trunk (r21808) and in branches/1.8 (r21809)

in reply to: ↑ 3   Changed 2 years ago by antonio

Replying to rouault:

Fixed in trunk (r21808) and in branches/1.8 (r21809)

Thank you for the fast fix Even

Is there any chance to have this fix also in 1.7.x branch? I would appreciate a lot

  Changed 2 years ago by rouault

  • milestone changed from 1.8.1 to 1.7.4

r21816 /branches/1.7/gdal/frmts/vrt/vrtsources.cpp: VRTComplexSource: correctly deal with complex data type (#3977)

  Changed 3 weeks ago by rouault

  • milestone 1.7.4 deleted

Milestone 1.7.4 deleted

Note: See TracTickets for help on using tickets.