إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
ee.Terrain.hillshade
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تحسب هذه الأداة تظليلاً بسيطًا للتضاريس من نموذج الارتفاع الرقمي.
الاستخدام | المرتجعات |
---|
ee.Terrain.hillshade(input, azimuth, elevation) | صورة |
الوسيطة | النوع | التفاصيل |
---|
input | صورة | تمثّل هذه السمة صورة الارتفاع بالمتر. |
azimuth | العدد العائم، القيمة التلقائية: 270 | سمت الإضاءة بالدرجات من الشمال |
elevation | Float، القيمة التلقائية: 45 | تمثّل هذه السمة زاوية ارتفاع الإضاءة بالدرجات. |
أمثلة
محرّر الرموز البرمجية (JavaScript)
var elevation = ee.Image('NOAA/NGDC/ETOPO1').select('bedrock');
var exaggeration = 20;
var hillshade = ee.Terrain.hillshade(elevation.multiply(exaggeration));
Map.addLayer(hillshade, null, 'ETOPO1 Hillshade');
إعداد Python
راجِع صفحة
بيئة Python للحصول على معلومات حول واجهة برمجة التطبيقات Python واستخدام
geemap
للتطوير التفاعلي.
import ee
import geemap.core as geemap
Colab (Python)
elevation = ee.Image('NOAA/NGDC/ETOPO1').select('bedrock')
exaggeration = 20
hillshade = ee.Terrain.hillshade(elevation.multiply(exaggeration))
m = geemap.Map()
m.add_layer(hillshade, None, 'ETOPO1 Hillshade')
m
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eComputes a hillshade, which is a shaded relief map, from a Digital Elevation Model (DEM) to visualize terrain.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eee.Terrain.hillshade()\u003c/code\u003e function takes an elevation image, azimuth, and elevation as input to generate the hillshade.\u003c/p\u003e\n"],["\u003cp\u003eUsers can customize the illumination direction by specifying the azimuth (direction) and elevation (angle) of the light source.\u003c/p\u003e\n"],["\u003cp\u003eAn example is provided using the ETOPO1 bedrock elevation data to demonstrate hillshade creation and visualization.\u003c/p\u003e\n"]]],["The core content details how to compute a hillshade from a digital elevation model (DEM) using the `ee.Terrain.hillshade` function. This function takes an elevation image (`input`), an illumination azimuth (`azimuth`, default 270 degrees), and an illumination elevation (`elevation`, default 45 degrees) as arguments, and it returns a hillshade image. The examples showcase using elevation data, multiplying it by an exaggeration factor, then applying the function to produce the final hillshade image.\n"],null,["# ee.Terrain.hillshade\n\nComputes a simple hillshade from a DEM.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------------------------|---------|\n| `ee.Terrain.hillshade(input, `*azimuth* `, `*elevation*`)` | Image |\n\n| Argument | Type | Details |\n|-------------|---------------------|-------------------------------------------------|\n| `input` | Image | An elevation image, in meters. |\n| `azimuth` | Float, default: 270 | The illumination azimuth in degrees from north. |\n| `elevation` | Float, default: 45 | The illumination elevation in degrees. |\n\nExamples\n--------\n\n### Code Editor (JavaScript)\n\n```javascript\nvar elevation = ee.Image('NOAA/NGDC/ETOPO1').select('bedrock');\nvar exaggeration = 20;\nvar hillshade = ee.Terrain.hillshade(elevation.multiply(exaggeration));\nMap.addLayer(hillshade, null, 'ETOPO1 Hillshade');\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\nelevation = ee.Image('NOAA/NGDC/ETOPO1').select('bedrock')\nexaggeration = 20\nhillshade = ee.Terrain.hillshade(elevation.multiply(exaggeration))\nm = geemap.Map()\nm.add_layer(hillshade, None, 'ETOPO1 Hillshade')\nm\n```"]]