I have a folder with multiple rasters that need to be reclassified. Using spatial analyst reclassify tool, I have the following script:
import arcpy
import pandas as pd
arcpy.CheckOutExtension("Spatial")
from arcpy import env
from arcpy.sa import *
arcpy.env.overwriteOutput = True
# Set environment settings
env.workspace = r"C:\Users\\Documents\ND_files\NASS_CDL"
nrasterList = arcpy.ListDatasets("*","Raster")
for targetRaster in nrasterList:
inRaster = targetRaster
remap = RemapValue(remap1)
#remap1 is a list of lists ex. [[0,1],[1,3],[44,3]]
outReclassify = Reclassify(inRaster, "Value", remap, "NODATA")
# Value is the name of the column to be reclassified
outReclassify.save(r"C:\Users\Documents\ND_files\NASS_CDL\reclass")
the error I receive:
RuntimeError: ERROR 010240: Could not save raster dataset to C:\Users\Documents\ND_files\NASS_CDL\reclass with output format GRID.
I read somewhere else that people were having issues saving the NASS Crop Data Layer and working with GRID format.