ee.Algorithms.Terrain
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tính toán độ dốc, hướng dốc và bóng đổ đơn giản từ DEM địa hình.
Mong đợi một hình ảnh chứa một dải độ cao duy nhất, được đo bằng mét, hoặc nếu có nhiều dải, thì một dải có tên là "độ cao". Thêm các dải đầu ra có tên "độ dốc" và "hướng dốc" được đo bằng độ, cùng với một dải đầu ra byte không dấu có tên "đổ bóng địa hình" để trực quan hoá. Tất cả các dải tần và siêu dữ liệu khác đều được sao chép từ hình ảnh đầu vào. Độ dốc cục bộ được tính bằng cách sử dụng 4 điểm ảnh lân cận được kết nối của mỗi điểm ảnh, vì vậy, các giá trị bị thiếu sẽ xuất hiện xung quanh các cạnh của hình ảnh.
Cách sử dụng | Giá trị trả về |
---|
ee.Algorithms.Terrain(input) | Hình ảnh |
Đối số | Loại | Thông tin chi tiết |
---|
input | Hình ảnh | Hình ảnh độ cao, tính bằng mét. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. |"]]