使用Arcgis中的Raster Calculator计算NDVI,或进行其他期望输出结果为小数的栅格计算时,当输入栅格为整数时,会得到整数输
先使用Geoda生成gal文件,然后使用下面的stata commands来生成空间加权矩阵文件: ssc install spwmatrix * remove the first and last lines of the txt file spwmatrix import using spwmatrix import using C:\Users\*USER*\Desktop\Tutorial\Weights_file.gal, wname(weights)
ArcGIS tool: Tools > Customize > Editor > Split Tool
1 Create a new short integer field.
2 Right-click the new field and select Field Calculator.
3 Set the Parser to Python.
4 Check the check box for Show Codeblock.
5 Paste the following into the Pre-Logic Script Code:
rec=0 def autoIncrement(): global rec pStart = 1 pInterval = 1 if (rec == 0): rec = pStart else: rec += pInterval return rec 6 Paste the following code in the smaller box below the Pre-Logic Script Code:
1. Ausplin需要的插值数据格式如图1所示: 2. Ausplin需要以m为单位的经纬度,因此,在arcgis中需要将dem数据进行投影转换为m
当Project raster工具不能用时,另一个可以转换栅格数据Spatial reference的方法如下: 当栅格数据在目标referenc