Earth Engine ने
गैर-व्यावसायिक इस्तेमाल के लिए कोटा टियर लॉन्च किए हैं. इससे शेयर किए गए कंप्यूट संसाधनों को सुरक्षित रखने और सभी के लिए भरोसेमंद परफ़ॉर्मेंस को पक्का करने में मदद मिलेगी. गैर-व्यावसायिक प्रोजेक्ट के लिए, डिफ़ॉल्ट रूप से कम्यूनिटी टियर का इस्तेमाल किया जाता है. हालांकि, किसी प्रोजेक्ट के टियर को कभी भी बदला जा सकता है.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
सुझाव भेजें
ee.Terrain.products
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह टूल, इलाके के डिजिटल एलिवेशन मॉडल (डीईएम) से ढलान, पहलू, और सामान्य हिलशेड का हिसाब लगाता है.
इसमें ऐसी इमेज की ज़रूरत होती है जिसमें ऊंचाई का एक बैंड हो. इसे मीटर में मापा जाता है. अगर एक से ज़्यादा बैंड हैं, तो उनमें से एक का नाम 'elevation' होना चाहिए. यह फ़ंक्शन, डिग्री में मेज़र किए गए 'slope' और 'aspect' नाम के आउटपुट बैंड जोड़ता है. साथ ही, विज़ुअलाइज़ेशन के लिए 'hillshade' नाम का एक अनसाइंड बाइट आउटपुट बैंड जोड़ता है. अन्य सभी बैंड और मेटाडेटा, इनपुट इमेज से कॉपी किए जाते हैं. लोकल ग्रेडिएंट का हिसाब लगाने के लिए, हर पिक्सल के चार आस-पास के पिक्सल का इस्तेमाल किया जाता है. इसलिए, इमेज के किनारों पर वैल्यू मौजूद नहीं होंगी.
इस्तेमाल रिटर्न ee.Terrain.products(input)इमेज
आर्ग्यूमेंट टाइप विवरण inputइमेज ऊंचाई की इमेज, मीटर में.
उदाहरण
कोड एडिटर (JavaScript)
// Demonstrate ee.Terrain functions with single-image and collection DEMs.
// DEMs in Earth Engine are often distributed as single images per asset
// (e.g., NASA/NASADEM_HGT/001) or as collections of tiled images that need
// to be mosaicked (e.g., COPERNICUS/DEM/GLO30). Terrain analysis functions
// compute values based on neighboring pixels, so care must be taken to
// select and prepare DEM inputs appropriately.
// 1. Single DEM image asset.
// Assets like NASADEM are presented as single images covering large areas.
// They generally have a single projection and can be used in terrain analysis
// with no preprocessing.
var nasadem = ee . Image ( 'NASA/NASADEM_HGT/001' ). select ( 'elevation' );
// Calculate slope, aspect, and hillshade simultaneously using products().
var nasademProducts = ee . Terrain . products ( nasadem );
// Visualization parameters.
var elevationVis = {
min : 0.0 ,
max : 3000.0 ,
palette :
[ '333399' , '00a2e5' , '55dd77' , 'ffff99' , 'aa926b' , 'aa928d' , 'ffffff' ]
};
var slopeVis = { min : 0.0 , max : 60.0 };
var aspectVis = { min : 0.0 , max : 359.99 };
var hillshadeVis = { min : 150.0 , max : 255.0 };
// Display layers.
Map . setCenter ( - 121.603 , 47.702 , 9 );
Map . addLayer ( nasadem , elevationVis , 'NASADEM Elevation' , false );
Map . addLayer ( nasademProducts . select ( 'slope' ), slopeVis , 'NASADEM Slope' );
Map . addLayer ( nasademProducts . select ( 'aspect' ), aspectVis , 'NASADEM Aspect' );
Map . addLayer (
nasademProducts . select ( 'hillshade' ), hillshadeVis , 'NASADEM Hillshade' );
// 2. Mosaicked DEM ImageCollection asset.
// In contrast to single-image assets like NASADEM, some DEMs like GLO30 are
// provided as a collection of images that need to be mosaicked before use.
// We use this mosaicked DEM for the terrain calculations below.
var glo30collection = ee . ImageCollection ( 'COPERNICUS/DEM/GLO30' );
// When mosaicking a DEM collection that will be used for terrain analysis,
// it is best practice to set the mosaic's default projection to the native
// projection of the DEM tiles. If you don't, Earth Engine's default
// projection for mosaics (EPSG:4326 at 1-degree scale) is used, which is
// often too coarse for analysis and can lead to resampling artifacts if
// the result is reprojected to a different CRS during computation.
// See:
// https://developers.google.com/earth-engine/guides/projections#reprojecting
var glo30Proj = glo30collection . first (). projection ();
var glo30Image =
glo30collection . select ( 'DEM' ). mosaic (). setDefaultProjection ( glo30Proj );
// Calculate slope, aspect, and hillshade simultaneously using products().
var glo30Products = ee . Terrain . products ( glo30Image );
// Display layers.
Map . addLayer ( glo30Image , elevationVis , 'GLO30 Elevation' , false );
Map . addLayer ( glo30Products . select ( 'slope' ), slopeVis , 'GLO30 Slope' );
Map . addLayer ( glo30Products . select ( 'aspect' ), aspectVis , 'GLO30 Aspect' );
Map . addLayer (
glo30Products . select ( 'hillshade' ), hillshadeVis , 'GLO30 Hillshade' );
Python सेटअप करना
Python API और इंटरैक्टिव डेवलपमेंट के लिए geemap का इस्तेमाल करने के बारे में जानकारी पाने के लिए,
Python एनवायरमेंट पेज देखें.
import ee
import geemap.core as geemap
Colab (Python)
# Demonstrate ee.Terrain functions with single-image and collection DEMs.
# DEMs in Earth Engine are often distributed as single images per asset
# (e.g., NASA/NASADEM_HGT/001) or as collections of tiled images that need
# to be mosaicked (e.g., COPERNICUS/DEM/GLO30). Terrain analysis functions
# compute values based on neighboring pixels, so care must be taken to
# select and prepare DEM inputs appropriately.
# 1. Single DEM image asset.
# Assets like NASADEM are presented as single images covering large areas.
# They generally have a single projection and can be used in terrain analysis
# with no preprocessing.
nasadem = ee . Image ( 'NASA/NASADEM_HGT/001' ) . select ( 'elevation' )
# Calculate slope, aspect, and hillshade simultaneously using products().
nasadem_products = ee . Terrain . products ( nasadem )
# Visualization parameters.
elevation_vis = {
'min' : 0.0 ,
'max' : 3000.0 ,
'palette' : [
'333399' ,
'00a2e5' ,
'55dd77' ,
'ffff99' ,
'aa926b' ,
'aa928d' ,
'ffffff' ,
],
}
slope_vis = { 'min' : 0.0 , 'max' : 60.0 }
aspect_vis = { 'min' : 0.0 , 'max' : 359.99 }
hillshade_vis = { 'min' : 150.0 , 'max' : 255.0 }
# Display layers.
m = geemap . Map ()
m . set_center ( - 121.603 , 47.702 , 9 )
m . add_layer ( nasadem , elevation_vis , 'NASADEM Elevation' , False )
m . add_layer ( nasadem_products . select ( 'slope' ), slope_vis , 'NASADEM Slope' )
m . add_layer ( nasadem_products . select ( 'aspect' ), aspect_vis , 'NASADEM Aspect' )
m . add_layer (
nasadem_products . select ( 'hillshade' ), hillshade_vis , 'NASADEM Hillshade'
)
# 2. Mosaicked DEM ImageCollection asset.
# In contrast to single-image assets like NASADEM, some DEMs like GLO30 are
# provided as a collection of images that need to be mosaicked before use.
# We use this mosaicked DEM for the terrain calculations below.
glo30_collection = ee . ImageCollection ( 'COPERNICUS/DEM/GLO30' )
# When mosaicking a DEM collection that will be used for terrain analysis,
# it is best practice to set the mosaic's default projection to the native
# projection of the DEM tiles. If you don't, Earth Engine's default
# projection for mosaics (EPSG:4326 at 1-degree scale) is used, which is
# often too coarse for analysis and can lead to resampling artifacts if
# the result is reprojected to a different CRS during computation.
# See:
# https://developers.google.com/earth-engine/guides/projections#reprojecting
glo30_proj = glo30_collection . first () . projection ()
glo30_image = (
glo30_collection . select ( 'DEM' ) . mosaic () . setDefaultProjection ( glo30_proj )
)
# Calculate slope, aspect, and hillshade simultaneously using products().
glo30_products = ee . Terrain . products ( glo30_image )
# Display layers.
m . add_layer ( glo30_image , elevation_vis , 'GLO30 Elevation' , False )
m . add_layer ( glo30_products . select ( 'slope' ), slope_vis , 'GLO30 Slope' )
m . add_layer ( glo30_products . select ( 'aspect' ), aspect_vis , 'GLO30 Aspect' )
m . add_layer (
glo30_products . select ( 'hillshade' ), hillshade_vis , 'GLO30 Hillshade'
)
m
सुझाव भेजें
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2026-04-29 (UTC) को अपडेट किया गया.
क्या आपको हमें और कुछ बताना है?
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2026-04-29 (UTC) को अपडेट किया गया."],[],[]]