Объявление : Все некоммерческие проекты, зарегистрированные для использования Earth Engine до
15 апреля 2025 года, должны
подтвердить некоммерческое право на сохранение доступа к Earth Engine.
ee.Algorithms.Terrain
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Рассчитывает уклон, экспозицию и простую отмывку рельефа по цифровой модели рельефа.
Ожидает изображение, содержащее либо одну полосу высот, измеряемую в метрах, либо, если полос несколько, одну с именем «высота». Добавляет выходные полосы с именами «уклон» и «экспозиция», измеряемые в градусах, а также беззнаковую байтовую выходную полосу с именем «отмывка» для визуализации. Все остальные полосы и метаданные копируются из входного изображения. Локальный градиент вычисляется с использованием 4-связных соседей каждого пикселя, поэтому по краям изображения будут отсутствовать значения.
Использование | Возврат | ee.Algorithms.Terrain(input) | Изображение |
Аргумент | Тип | Подробности | input | Изображение | Изображение высоты в метрах. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-24 UTC.
[null,null,["Последнее обновление: 2025-07-24 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. |"]]