Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#3977 closed defect (fixed)

Incorrect scaling of complex data

Reported by: antonio Owned by: Even 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 (1)

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

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by antonio

Attachment: complex_source_bug.py added

Test program to reproduce the issue

comment:1 Changed 10 years ago by Even Rouault

Owner: changed from warmerdam to Even Rouault

comment:2 Changed 10 years ago by antonio

Version: 1.6.3

Issue also confirmed on GDAL 1.8.0.

comment:3 Changed 10 years ago by Even Rouault

Component: defaultGDAL_Raster
Keywords: vrt complex added
Milestone: 1.8.1
Resolution: fixed
Status: newclosed
Version: 1.6.3

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

comment:4 in reply to:  3 Changed 10 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

comment:5 Changed 10 years ago by Even Rouault

Milestone: 1.8.11.7.4

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

comment:6 Changed 8 years ago by Even Rouault

Milestone: 1.7.4

Milestone 1.7.4 deleted

Note: See TracTickets for help on using tickets.