[gdal-dev] gdalbuildvrt ignoring NoData for complex (CFloat32) valued rasters

Scott Staniewicz scott.stanie at gmail.com
Mon Oct 12 16:09:56 PDT 2020


Hi, I wanted to check here first before reporting this as a bug:


I'm trying to tile 2 together with buildvrtraster. I can make it work with
2 Float32 images that have 0s; however, with the complex images, the last
image always overwrites all of the previous, even where it has 0s and the
nodata is set to 0.

I attached two test rasters (in ROI_PAC format), where one has the top half
= 0, the other has bottom half zeros.

The commands I'm trying:

gdal_edit.py -a_nodata 0 slc1.slc
gdal_edit.py -a_nodata 0 slc2.slc
gdalbuildvrt output.vrt slc*.slc


When I do `gdalinfo -stats output.vrt`, it still tells me half of the image
is invalid (as in, slc2.slc overwrote all of slc1.slc)

I've also tried adding -srcnodata 0 and/or -vrtnodata 0, but same effect.

Is it possible to have a nodata value of 0 for CFloat32 images? Or is it
known that using "0" will get ignored when the CFloat32 is 0 (or really 0.0
+ 0.0j )

Thanks,
Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20201012/9893a427/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slc1.slc.rsc
Type: application/octet-stream
Size: 689 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20201012/9893a427/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slc2.slc.rsc
Type: application/octet-stream
Size: 689 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20201012/9893a427/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slc1.slc
Type: application/octet-stream
Size: 20000 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20201012/9893a427/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slc2.slc
Type: application/octet-stream
Size: 20000 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20201012/9893a427/attachment-0007.obj>


More information about the gdal-dev mailing list