1

I am writing a Python script to export a Raster Dataset to a TIFF, BMP, or PNG file, as I would manually by right-clicking on the layer, choosing Data | Export Data, and then make my choices in the Export Raster Data window. Can this be duplicated with ArcPy, and if so, how?

5

Another solution would be to use the Copy Raster tool:

arcpy.CopyRaster_management(in_raster, out_rasterdataset)

Where you add the file extension to out_rasterdataset

  • I was just writing this answer. I like this tool better than 'Raster to Other Format' because it gives you a lot more conversion options in the output. – Wes Jul 18 '14 at 18:51
1

The Raster to Other Format tool should do what you need.

RasterToOtherFormat_conversion (Input_Rasters, Output_Workspace, {Raster_Format})

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.