类型错误:';长';对象不是可移植的Python

类型错误:';长';对象不是可移植的Python,python,arcgis,floating,Python,Arcgis,Floating,我试图在32位浮动光栅中重新分类像素值,并出现以下错误: bw_liss-3_spring_mosaick_gk3_ndvi_mask.tif Traceback (most recent call last): File "F:\Daten_Soner\CBD06\Test\NDVI\Spring\Extract\Reclassify_Cloudmask_LISS_Summer.py", line 29, in <module> remap = Rema

我试图在32位浮动光栅中重新分类像素值,并出现以下错误:

 bw_liss-3_spring_mosaick_gk3_ndvi_mask.tif

 Traceback (most recent call last):    File
 "F:\Daten_Soner\CBD06\Test\NDVI\Spring\Extract\Reclassify_Cloudmask_LISS_Summer.py",
 line 29, in <module>
      remap = RemapValue([-340282346638528860000000000000000000000,000000,2])   

 File "C:\Program Files
 (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\sa\ParameterClasses.py", line
 806, in __init__
     _Remap.__init__(self, remapTable)    File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\sa\ParameterClasses.py", line
 751, in __init__
     self.remapTable = [list(record) for record in remapTable]

 TypeError: 'long' object is not iterable
从工作区获取TIFF列表并打印

rasterList = arcpy.ListRasters()

for raster in rasterList:
    print raster
    arcpy.CalculateStatistics_management(raster)

    # Process: Reclassify
    remap = RemapValue([-340282346638528860000000000000000000000,000000,2])  
    outReclassify = Reclassify(raster, "Value", remap , "NODATA")
    outReclassify.save(raster + "_re.tif")

谢谢你的帮助

RemapValue
获取列表列表(
[[oldValue,newValue],…]
),而您只传递一个列表。

我只想重新分类一个值。我要写什么来代替
RemapValue
@wRAR
@SonerÜreyen不知道,我不知道什么是
arcpy
,我刚刚为您阅读了文档。
rasterList = arcpy.ListRasters()

for raster in rasterList:
    print raster
    arcpy.CalculateStatistics_management(raster)

    # Process: Reclassify
    remap = RemapValue([-340282346638528860000000000000000000000,000000,2])  
    outReclassify = Reclassify(raster, "Value", remap , "NODATA")
    outReclassify.save(raster + "_re.tif")