Complex

Zusammenfassung

Computes the magnitude from complex values.

Diskussion

For more information about how this function works, see the Complex raster function.

The referenced raster dataset for the raster object is temporary. To make it permanent, you can call the raster object's save method.

Syntax

Complex (raster)
ParameterErläuterungDatentyp
raster

The input raster.

Raster
Rückgabewert
DatentypErläuterung
Raster

The output raster.

Codebeispiel

Complex example 1

This example computes magnitude from complex values.

from arcpy.sa import *
out_magnitude_raster = Complex("itemgrd")
out_magnitude_raster.save("C:/arcpyexamples/outputs/out_magnitude_radar.crf")
Complex example 2

This example computes magnitude from complex values.

# 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")

Verwandte Themen