This was basically the same as the script I had, with the addition of the backslash. Mine looks like this:
arcpy.env.workspace = r"S:\FIRE\86to92.gdb"
workspace = arcpy.env.workspace
outtable = r"S:\FIRE\73to80.gdb\y86to92"
for raster in arcpy.ListRasters():
outpoint = workspace + "/" + raster + "af"
extract = arcpy.sa.ExtractByAttributes (raster, " VALUE = 6 OR VALUE = 8")
extract.save (outpoint)
However, now I am getting this error message:
Traceback (most recent call last):
File "S:\FIRE\gdb.py", line 33, in <module>
extract = arcpy.sa.ExtractByAttributes (raster, " VALUE = 6 OR VALUE = 8")
File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\sa\Functions.py", line 1117, in ExtractByAttributes
where_clause)
File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\sa\Utils.py", line 47, in swapper
result = wrapper(*args, **kwargs)
File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\sa\Functions.py", line 1113, in wrapper
out_raster)
File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\_base.py", line 474, in <lambda>
return lambda *args: val(*gp_fixargs(args))
ExecuteError: ERROR 999999: Error executing function.
Access denied
Access denied [GDB_Items]
No spatial reference exists.
ERROR 010302: Unable to create the output raster: S:\FIRE\86to92.gdb\Extract_u8001
ERROR 010067: Error in executing grid expression.
Failed to execute (ExtractByAttributes).
ERROR 010302 suggests that I don't have write permission or don't have enough space available. I checked and both of these are OK.