Is it possible to run a density tool in ArcPy and have the result rendered to a TIF file using a chosen rendering settings. Say for example run a kernel density with color ramp green to red and have the output be a TIF file with the chosen density / color ramp?
I guess I don't understand the applying color ramp to the tif that is generated. I know this can be applied after adding it to arcmap. I would like to know if it is possible to apply the color ramp to the tif file that is generated.
color ramps are created when you create a 'layer' file via Save to Layer (right-click on the layer in the table of contents, it is there).
A 'layer file' contains references to the original data plus the symbology used to display it. Name the layer the same as the raster and then you can reuse the symbology by importing it in the symbology dialog.
When you export the raster using the density tool... it only contains the density values it doesn't become the pretty colors by default, that is just a helpful gesture on the software part to symbolize it for you, and it doesn't make an RGB raster
Correct. Right now I am looking for a method of creating a RGB raster. I suppose with a lot of work I could do it manually but ArcMap provides a lot of help for example specifying the # of breaks and calculating the break points.
I haven't seen any programmatic functions similar to this so I am wondering if it is even possible.
Right now I have a application (ArcGIS Runtime 10.2.7) that does not support Raster Renderers (where color ramps would be possible). So I have a wonky workaround where I convert a kernel density to a shape file and then I can apply a Feature Renderer to it in ArcGIS runtime to support the color ramp.
I think we would get better results if the density could be outputted to a image file with the color ramp settings applied.