Hay una manera mejor de hacer esto?
Estoy tratando de crear un script que va a cambiar las clasificaciones de una trama a:
0 para: 0,7-9,15-20,40,62-63,73,78-87,89-130,132-151,153-175,177-203,215,228,251-253
1: todos los demás
#RECLASSIFY LANDCOVER
#Considers 0 for: 63,81-83,87,111-112,121-124,141-143,190,195,
#Considers 1 for: All others.
#Considers "NODATA" for: background, blank
import arcpy
from arcpy import env
from arcpy.sa import *
env.workspace = r'C:\Erosion\LandCover'
outReclass1 = Reclassify("CDL_2014.tif", "Value",
RemapRange([[0,0,"NODATA"],[7,9,"NODATA"],[15,20,"NODATA"],[40,40,"NODATA"],
[62,62,"NODATA"],[63,63,0],[73,73,"NODATA"],[78,80,"NODATA"],[81,83,0],
[84,86,"NODATA"],[87,87,0],[89,91,"NODATA"],[93,110,"NODATA"],[111,112,0],
[113,120,"NODATA"],[121,124,0],[125,130,"NODATA"],[132,140,"NODATA"],
[141,143,0],[144,151,"NODATA"],[153,175,"NODATA"],[177,189,"NODATA"],
[190,190,0],[191,194,"NODATA"],[195,195,0],[196,203,"NODATA"],
[215,215,"NODATA"],[228,228,"NODATA"],[251,253,"NODATA"]]), 1)
outReclass1.save(r'C:\Erosion\Output\CDL_reclass.tif')
Yo estaba tratando de modificar la secuencia de comandos desde el Centro de Recursos de ArcGIS Desktop Ayuda.