ee.Algorithms.Terrain
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Berechnet Neigung, Ausrichtung und eine einfache Schummerung aus einem DEM.
Erwartet ein Bild mit einem einzelnen Höhenband in Metern oder, falls es mehrere Bänder gibt, eines mit dem Namen „elevation“. Fügt die Ausgabebänder „slope“ (Neigung) und „aspect“ (Ausrichtung) in Grad sowie ein Ausgabeband „hillshade“ (Schattierung) als Byte ohne Vorzeichen für die Visualisierung hinzu. Alle anderen Bänder und Metadaten werden aus dem Eingabebild kopiert. Der lokale Gradient wird anhand der vier direkt benachbarten Pixel jedes Pixels berechnet. Daher treten fehlende Werte an den Rändern eines Bildes auf.
Nutzung | Ausgabe |
---|
ee.Algorithms.Terrain(input) | Bild |
Argument | Typ | Details |
---|
input | Bild | Ein Höhenbild in Metern. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["\u003cp\u003eCalculates slope, aspect, and hillshade from a Digital Elevation Model (DEM) image.\u003c/p\u003e\n"],["\u003cp\u003eOutputs derived bands named 'slope' and 'aspect' in degrees, and 'hillshade' for visualization, while retaining other bands and metadata.\u003c/p\u003e\n"],["\u003cp\u003eEmploys a 4-connected neighborhood for gradient computation, leading to potential missing values along image edges.\u003c/p\u003e\n"],["\u003cp\u003eRequires an input image containing either a single elevation band in meters or a multi-band image with an elevation band named 'elevation'.\u003c/p\u003e\n"],["\u003cp\u003eAccessible via the \u003ccode\u003eee.Algorithms.Terrain(input)\u003c/code\u003e function, returning a processed image.\u003c/p\u003e\n"]]],["The function processes an elevation image (in meters) to compute and add three new bands: 'slope' (degrees), 'aspect' (degrees), and 'hillshade' (unsigned byte). It calculates the local gradient using the four directly connected neighboring pixels. Missing values will occur around image edges due to the four-connected neighbor method. The input image's other bands and metadata are preserved. The function takes an elevation image as input and returns a processed image.\n"],null,["# ee.Algorithms.Terrain\n\nCalculates slope, aspect, and a simple hillshade from a terrain DEM.\n\n\u003cbr /\u003e\n\nExpects an image containing either a single band of elevation, measured in meters, or if there's more than one band, one named 'elevation'. Adds output bands named 'slope' and 'aspect' measured in degrees plus an unsigned byte output band named 'hillshade' for visualization. All other bands and metadata are copied from the input image. The local gradient is computed using the 4-connected neighbors of each pixel, so missing values will occur around the edges of an image.\n\n| Usage | Returns |\n|--------------------------------|---------|\n| `ee.Algorithms.Terrain(input)` | Image |\n\n| Argument | Type | Details |\n|----------|-------|--------------------------------|\n| `input` | Image | An elevation image, in meters. |"]]