i have several tif files, which some of them have No data values.
when Mosaic these files the ArcGIS replace the NoData value with black color RGB(0,0,0).
I want to keep the No data value in the Mosaiced result file
I don't know a way how to KEEP the NoData values. But you can REDEFINE the NoData value after adding your tif files to the mosaic dataset by using the toolbox
data management => raster => mosaic dataset or using the python function
DefineMosaicDatasetNoData_management. Please note that you probably need to recalculate your overviews, pyramids, etc afterwards.
I don't know if you're still interested in a solution - I experienced the same problem and finally found what caused it:
If this is not the case, the
Mosaic to new raster tool will use the NoData value of the "stronger" mosaic part (depending what operation you chose) for processing.
You can most easily change the pixel type and NoData parameters by using the
copy raster function in your
In the "Mosaic to New Raster" under "Pixel Type (optional)" make sure that the selected type covers the NoData values in the original files.
For example, assume that in the original raster files, NoData = -9999, if you select 8_BIT_UNSIGENED then all NoData values will be assigned 0 (which may be undesirable). However, if you select 32_BIT_FLOAT, all the NoData cells will be maintained correctly in the output file.