ee.Algorithms.Terrain
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Oblicza nachylenie, ekspozycję i proste cieniowanie terenu na podstawie numerycznego modelu terenu.
Oczekuje obrazu zawierającego pojedyncze pasmo wysokości w metrach lub, jeśli jest więcej niż jedno pasmo, pasmo o nazwie „elevation”. Dodaje pasma wyjściowe o nazwach „slope” (nachylenie) i „aspect” (ekspozycja) mierzone w stopniach oraz pasmo wyjściowe bez znaku o nazwie „hillshade” (cieniowanie) do wizualizacji. Wszystkie pozostałe pasma i metadane są kopiowane z obrazu wejściowego. Lokalny gradient jest obliczany na podstawie 4 sąsiadujących pikseli, więc brakujące wartości będą występować na krawędziach obrazu.
Wykorzystanie | Zwroty |
---|
ee.Algorithms.Terrain(input) | Obraz |
Argument | Typ | Szczegóły |
---|
input | Obraz | Obraz wysokości w metrach. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]