id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
3112,[PATCH] TSX COSAR driver and 'pixel validity mask',pmar,chaitanya,"The current COSAR reader/driver implementation does not correctly
resolve for the 'pixel validity mask': it shifts the whole range
line, including the 'no valid' pixels, rather then masking them
out.

The listed patch fixes the problem.

The patch was tested on a stack of Stripmap data, and by visual
comparison of the GDAL output with GeoTiff Quicklooks (that are
provided with images). Moreover, interferometric processing done
on the COSAR data pre-processed by GDAL and patched COSAR driver,
resulted in an expected values (no missing lines/pixels) and
coherent interferometric signal.

Attached: 

* patch: cosar_dataset_validity_mask.patch[[BR]]
* screenshot 1: problem.png (run with trunk cosar_dataset.cpp)[[BR]]
* screenshot 2: patched.png (run with patched cosar_dataset.cpp)[[BR]]
* screenshot 3: interferometric_check.png[[BR]]


Reference:

TX-GS-DD-3307 : TerraSAR-X Level 1b product format specification",defect,closed,normal,1.6.3,GDAL_Raster,svn-trunk,normal,fixed,cosar driver pixel_validity_mask,pvachon warmerdam
