matthew.barlow

gp.Reclassify_sa (ERROR 010255: String remap must be used with a string field)

Discussion created by matthew.barlow on Nov 27, 2013
Latest reply on Nov 29, 2013 by matthew.barlow
I am receiving the following message when executing my python script:

ERROR 010255: String remap must be used with a string field.

My input raster is floating point and I would like to reclassify it in python using gp.Reclassify_sa. I build my remap up as a string, but this doesn't seem to work. How do I build and pass my remap for a floating point raster?

The relevant code extract is as follows:

remap1 = "0 1.25 100000"
remap2 = "1.25 10 200000"
full_remap = remap1 + ";" + remap2
gp.Reclassify_sa(in_raster, "VALUE", full_remap, out_raster, "NODATA")

Outcomes