AnsweredAssumed Answered

How to control NODATA cells when mosaicking rasters

Question asked by dschatt on Dec 5, 2017
Latest reply on Dec 5, 2017 by Dan_Patterson

hi all, I'm using Python to mosaic a bunch of floating point rasters together with the following code:


arcpy.MosaicToNewRaster_management(rastersListString, outFilePath, outFile, WebMercatorProjection, "32_BIT_FLOAT", "", "1")


It does this fine except that, for some reason, all the NoData cells in the input rasters become zero cells in the final output raster.  I can do Con to get them out, but I don't know why this is happening and I don't want to have to add another step in the code.  Does anyone know the Python setting to keep the input NoData cells as output NoData cells?  Thanks!