Hello,
I'm using arcpy to reclassify two rasters. The first one is reclassed with 10 consecutive intervals of 1 km. The second one in 3 intervals of asymetric values. The first outputs a raster with char pixel type (but I reclass it with interger number) and the second outputs a 16 bits unsigned pixel type raster.
#first Reclassification
SOMAEU_distEuc_interrup_rec = gdbR + "/SOMAEU_distEuc_interrup_rec" #output
remap_2 = RemapRange([[0,1000,10],[1000.001,2000,9],[2000.001,3000,8],[3000.001,4000,7],[4000.001,5000,6],[5000.001,6000,5],[6000.001,7000,4],[7000.001,8000,3],[8000.001,9000,2],[9000.001,10000,1],[10000.001,maxDistSOMAEU_int,0]]) #remapTable, maxDistSOMAEU_int comes from previous treatment that gets the max from input raster
SOMAEU_distEuc_interrup_rec_r = arcpy.sa.Reclassify(in_raster=SOMAEU_distEuc_interrup, reclass_field="VALUE", remap=remap_2, missing_values="NODATA")
SOMAEU_distEuc_interrup_rec_r.save(SOMAEU_distEuc_interrup_rec) #function
#second Reclassification
rRoutier_distEuc_rec = gdbR + "/rRoutier_distEuc_rec" #output
remap_3 = RemapRange([[0,50,10],[50.001,200,5],[200.001,maxDistrRoutier,1]]) #remapTable, maxDistrRoutier comes from previous treatment that gets the max from input raster
rRoutier_distEuc_rec_r = arcpy.sa.Reclassify(in_raster=rRoutier_distEuc, reclass_field="VALUE", remap=remap_3, missing_values="DATA")
rRoutier_distEuc_rec_r.save(rRoutier_distEuc_rec) #function
I already tried to put float values (10.0, 9.0, etc.) as new values but that yield another error messager which seemed to suggest you can't do that.
example of result properties

Why would I get a char type output for reclassify? How can I force integer or at least number based output?
Thanks!