ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Hilfe
  • Sign Out
ArcGIS Desktop

ArcGIS Online

Die Mapping-Plattform für Ihre Organisation

ArcGIS Desktop

Ein vollständiges professionelles GIS

ArcGIS Enterprise

GIS in Ihrem Unternehmen

ArcGIS Developers

Werkzeuge zum Erstellen standortbezogener Apps

ArcGIS Solutions

Kostenlose Karten- und App-Vorlagen für Ihre Branche

ArcGIS Marketplace

Rufen Sie Apps und Daten für Ihre Organisation ab.

  • Dokumentation
  • Support
Esri
  • Anmelden
user
  • Eigenes Profil
  • Abmelden

ArcMap

  • Startseite
  • Erste Schritte
  • Karte
  • Analysieren
  • Verwalten von Daten
  • Werkzeuge
  • Erweiterungen

+

Mit der Spatial Analyst-Lizenz verfügbar.

  • Zusammenfassung
  • Abbildung
  • Verwendung
  • Syntax
  • Codebeispiel
  • Umgebungen
  • Lizenzinformationen

Zusammenfassung

Multiplies each cell value of the input raster on a cell-by-cell basis by 1.

Abbildung

Negate illustration
OutRas = + Raster("InRas1")

Auswertung

Bei Verwendung eines Operators mit einem Eingabe-Raster ist das Ergebnis ein Raster. Wenn jedoch alle Eingaben Zahlen sind, dann ist das Ergebnis ebenfalls eine Zahl.

Wenn in einem Ausdruck mehrere Operatoren verwendet werden, werden sie nicht zwingend von links nach rechts ausgeführt. Vielmehr wird der Operator mit dem höchsten Vorrangswert zuerst ausgeführt. Weitere Informationen zu Operatorrangfolge finden Sie unter Operatorrangfolgentabelle. Sie können die Reihenfolge der Ausführung jedoch mithilfe von Klammern steuern.

If the input is integer, the output will contain integer values; if the input is floating point, the output will contain floating-point values.

Syntax

+ in_raster_or_constant
OperandErklärungDatentyp
in_raster_or_constant

The input raster to apply the Unary Plus operator (multiply by 1).

Raster Layer | Constant

Rückgabewert

NameErklärungDatentyp
out_raster

Das Ausgabe-Raster-Objekt.

The cell values are the input values multiplied by 1.

Raster

Codebeispiel

Unary + (Unary Plus) example 1 (Python window)

This sample applies the Unary Plus operator to the input raster.

import arcpy
from arcpy import env
from arcpy.sa import *
env.workspace = "C:/sapyexamples/data"
outUnaryPlus = + Raster("degs")
outUnaryPlus.save("C:/sapyexamples/output/outdeg")
Unary + (Unary Plus) example 2 (stand-alone script)

This sample applies the Unary Plus operator to the input raster.

# Name: Op_UnaryPlus_Ex_02.py
# Description: Returns the cell valuesof the input raster on a cell-by-cell 
#    basis. 
# Requirements: Spatial Analyst Extension

# Import system modules
import arcpy
from arcpy import env
from arcpy.sa import *

# Set environment settings
env.workspace = "C:/sapyexamples/data"

# Set local variables
inRaster = Raster("degs")

# Check out the ArcGIS Spatial Analyst extension license
arcpy.CheckOutExtension("Spatial")

# Execute Negate
outUnaryPlus = +(inRaster)

# Save the output 
outUnaryPlus.save("C:/sapyexamples/output/outunplus")

Umgebungen

  • Zellengröße
  • Aktueller Workspace
  • Maske
  • Ausgabe-Koordinatensystem
  • Ausdehnung
  • Scratch-Workspace
  • Fang-Raster

Verwandte Themen

  • An overview of the Map Algebra Operators

ArcGIS Desktop

  • Startseite
  • Dokumentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Über Esri

  • Über uns
  • Karriere
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Wir sind an Ihrer Meinung interessiert.
Copyright © 2021 Esri. | Datenschutz | Rechtliches