I got a strange problem that occur when I combine rasters in my pythoncode.
Say I have rasters "NMD_COMBINE", "DosAreaRaster_r" and the result ends up in "rasterOut".
Call in code: arcpy.gp.Combine_sa(["NMD_COMBINE", "DosAreaRaster_r"], "combineRaster")
Actually all these rasters are "in_memory" so the actual path for all of them are :
- "in_memory\\NMD_COMBINE"
- "in_memory\\DosAreaRaster_r"
- "in_memory\\combineRaster"
The call to combine is fine but the result is a little strange regarding the given column names in the "combineRaster".
The first 3 column are standard: "OID", "Value", "Count". The other 2 for the combined rasters are:
Look at the columns above! The first one has almost a correct name but are truncated to 10 characters. The second has a completely different name compared to the source but is also 10 chars long. Doesn't it look like it's also truncated and that an "r" is missing?
Question: Why does this happen?
Normally this Pythoncode is embedded in FME-script but is now extracted and run i Arcmap 10.3 Python window.
If I run the exact same thing in ArcMap 10.7 the column names are correct in the combineRaster. Though I don't think it is the versions that make the difference in this case but what is? Something wrong with the installation? Environment variables?