摘要
从复数中计算量级。
代码示例
本示例根据复数值来计算量值。
from arcpy.sa import *
out_magnitude_raster = Complex("itemgrd")
out_magnitude_raster.save("C:/arcpyexamples/outputs/out_magnitude_radar.crf")
本示例根据复数值来计算量值。
# Import system modules
import arcpy
from arcpy.sa import *
# Set the analysis environments
arcpy.env.workspace = "C:/arcpyExamples/data"
# Set the local variables
in_raster = "Radar_stage4"
# Execute Complex function
out_magnitude_raster = Complex(in_raster)
# Save output
out_magnitude_raster.save("C:/arcpyExamples/outputs/out_magnitude_radar.crf")