I'm trying to set 'noData' values for a 3-band raster image, in a Python script. For this I am using ArcPy function "SetRasterProperties_management" with the following syntax: arcpy.SetRasterProperties_management(rasterImage,nodata="1 0;2 45;3 12"). As you can see I need to set different values for each band.
My problem is that the above syntax does not seem to work because when I check the raster image properties the no data value is set to "12" (last value specified), and this for all bands. I saw at Setting NoData for a multiband raster? that someone tried to do the same. I used the syntax that was advised (nodata="1 0;2 45;3 12") but it did not work. I also looked at "SetRasterProperties_management" function documentation but I could not find the right syntax to make it work.
Here is a code snippet:
rasterImage = "test-raster.tif" arcpy.SetRasterProperties_management(rasterImage,nodata="1 0;2 45;3 12")
Could someone help me?