Opened 11 years ago

Closed 11 years ago

Last modified 9 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 11 years ago.
Test program to reproduce the issue

Download all attachments as: .zip

Change History (7)

by antonio, 11 years ago

Attachment: complex_source_bug.py added

Test program to reproduce the issue

comment:1 by Even Rouault, 11 years ago

Owner: changed from warmerdam to Even Rouault

comment:2 by antonio, 11 years ago

Version: 1.6.3

Issue also confirmed on GDAL 1.8.0.

comment:3 by Even Rouault, 11 years ago

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)

in reply to:  3 comment:4 by antonio, 11 years ago

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 by Even Rouault, 11 years ago

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 by Even Rouault, 9 years ago

Milestone: 1.7.4

Milestone 1.7.4 deleted

Note: See TracTickets for help on using tickets.