Hello Hornbydd,
thx for your answer, your command worked fine with my little test setup.
But when i tried it with a bigger Raster file i got this message:
Messages
Executing: RasterCalculator "New_Raster = Con("reclass_damm", "reclass_damm", "basic_raster", "VALUE > 0")" C:\Users\stefan\Desktop\Versuchsdb.mdb\New_Raster
Start Time: Sun Apr 06 22:24:53 2014
New_Raster = Con(Raster(r"reclass_damm"), Raster(r"reclass_damm"), Raster(r"basic_raster"), "VALUE > 0")
ERROR 000539: Error running expression: rcexec()
Traceback (most recent call last):
File "<expression>", line 1, in <module>
File "<string>", line 5, in rcexec
File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Functions.py", line 244, in Con
where_clause)
File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Utils.py", line 47, in swapper
result = wrapper(*args, **kwargs)
File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Functions.py", line 238, in Wrapper
where_clause)
File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\geoprocessing\_base.py", line 498, in <lambda>
return lambda *args: val(*gp_fixargs(args, True))
ExecuteError: ERROR 999999: Error executing function.
FDO error: -2147024894 [GDB_Items]
No spatial reference exists.
ERROR 010302: Unable to create the output raster: C:\Users\stefan\Documents\ArcGIS\Default.gdb\Con_reclass_2
ERROR 010067: Error in executing grid expression.
Failed to execute (Con).
Failed to execute (RasterCalculator).
Failed at Sun Apr 06 22:24:54 2014 (Elapsed Time: 0,82 seconds)
I did the same like before... This time the damm raster had a lot more Z values and the area was a lot bigger...
My Reclassify looked like this:
[ATTACH=CONFIG]32856[/ATTACH]
After it's done the file looked like this:
[ATTACH=CONFIG]32857[/ATTACH]
looked fine to me the "noData" rasters got the 0...
any clue what i made wrong ?
PS.
The original Damm Z values are in a polyline, is it possible to add them direct to the Raster, like the spatial analyst can do it with lines, points and polygones) ?
Right now i extract the position of the damm from the basic raster via "Extract by mask"
The Damm Polyline is my mask.
Than i use "Raster to point" to create a point layer
After that i change the z values in a few areas and change it back to a raster (Raster to Point)
This new Raster i reclassify and than i try to add the damm Z values to the basic raster.
There must be a better way to to this... even when it would work...