Solved! Go to Solution.
I figured it out! If you lower-and-raise your screen resolution, the raster calculator expression box reappears! I went from 1920x1080 down to 1600x900 and it appeared, and when I went back to 1920x1080 it stayed there! I imagine I'll have to use this hack-solution every time I open arc, but I don't care! It worked for me!
Best Regards,
Dylan
EDIT: EVEN SIMPLER SOLUTION!! (Found by Juan Carlos Villar Calle below, see link >> ArcToolbox - Missing box - YouTube
1. Open up the raster calculator window with the missing expression box)
2. Hold down crtl + scroll your mouse wheel up until it appears! (it must be some issue with the resolution of your screen and resolution of the box... I have no idea... but it works!
3. DONE!!!
Best Regards,
Dylan
import arcpy
from arcpy.sa import *
# myRas = arcpy.Raster('the name of the raster in the TOC or path to raster')
myRas = arcpy.Raster('J000_CumCO2_kgha')
# now you are able to perform any type of raster calculator analysis; like for instance:
myResult = Con(IsNull(myRas),FocalStatistics(myRas,NbrRectangle(5,5,"CELL"),"MEAN","DATA"),myRas)
Hello Xander
Using Phyton may be a good idea to go around this problem, but the problem is I am a newone for Phyton. What I want to do is as the followings:
1) use raster calcultor to evaluate "raster01 > 5000",
2) in the resulting calculation layer (calc01), resympolize the "0" values to be "No Color" or transparent.
I checked ArcGIS Desktop Help page and tried to use Phyton but might have some mistakes. Any help or suggestion will be welcomed.
>>> import arcpy
>>> from arcpy.sa import *
>>> myRas = arcpy.Raster('raster01')
>>> from arcpy import env
>>> env.workspace="C:\GISdata\workspace"
>>> inRaster="raster01"
>>> "raster01>5000"
'raster01>5000'
>>> arcpy.CheckOutExtension("Spatial")
u'CheckedOut'
>>> Calcuation.save("C:\GISdata\workspace")
Runtime error
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'Calcuation' is not defined
import arcpy from arcpy import env env.workspace = r'C:\GISdata\workspace' # arcpy.CheckOutExtension("Spatial") myRas = arcpy.Raster('raster01') myResult = myRas > 5000 myResult.save('myOutputName')