Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

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

$
0
0
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:

Code:

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")


Viewing all articles
Browse latest Browse all 2485

Latest Images

Trending Articles



Latest Images