laptop and a wrench

Error

Unable to set the NoData value for a raster to None when running the ‘arcpy.CopyRaster_management()’ tool.

Última publicación: July 23, 2019 ArcGIS Pro
Número de ID del error BUG-000123466
EnviadoJuly 2, 2019
Última modificaciónJune 25, 2025
Relacionado conArcGIS Pro
Versión encontradaN/A
Sistema operativoN/A
Versión de sistema operativoN/A
EstadoWill Not Be Addressed

Información adicional

We apologize that we were unable to address this issue within the current product support cycle.  If the issue continues to affect your work in a supported release, please contact Technical Support.

Solución alternativa

Run the Clip Raster tool 'arcpy.Clip_management()’ using the mosaic dataset Test_mosaic1 as an input while setting the clip extent to the boundary of the input mosaic dataset and NoData value set to None. The output TIFF file will have NoData value set to None.

 

import arcpy

in_raster = r"C:\CaseUser\Gian Raphael Prinz\New File Geodatabase.gdb\Test_mosaic1"

rectangle = "4489727.05 5477485.223 4488761.95 5479555.305"

out_raster = r"C:\CaseUser\Gian Raphael Prinz\Output_9.tif"

in_template_dataset = ""

nodata_value = None

clipping_geometry = None

maintain_clipping_extent = "NO_MAINTAIN_EXTENT"

arcpy.Clip_management(in_raster, rectangle, out_raster, in_template_dataset, nodata_value, clipping_geometry, maintain_clipping_extent)

 

Pasos para reproducir

ID del error: BUG-000123466

Software:

  • ArcGIS Pro

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga