GEE: Fast download of digital elevation DEM data

DEM data download, using SRTM Digital Elevation Data Version 4, a year 2000 global elevation data . The downloaded DEM does not need to be cropped and can be used directly.
You can also import the following DEM data with a resolution of 30 meters, and just search for it.
NASADEM: NASA NASADEM Digital Elevation 30m


Source code: https://code.earthengine.google.com/9f03191275e206fa06287a544e32fb5a?noload=true
The effect is shown in the figure below,


Not only DEM data can be downloaded, but also slope can be downloaded. The calculation of the slope is commented out by me. If you want to download the slope, just remove the annotation.

//直接导入实验区边界,然后运行就可以了
// 坡度的计算被注释掉了,想下载坡度,去除注释就可以了。
var roi = table

var roi_geometry = roi.geometry();

var SRTM30 = ee.Image("NASA/NASADEM_HGT/001")

var elevation = SRTM30.select('elevation')

                .clip(roi_geometry)
                 
// var slope = ee.Terrain.slope(elevation)

var cuttingRegion = roi_geometry;

Export.image.toDrive({
    
    

  image: elevation,   
  
  description: 'FH_Elevation',
     
  scale: 30, 
  
  maxPixels: 1e13,
  
  region: cuttingRegion });

// Export.image.toDrive({
    
    

//   image: slope,

//   description: 'FH_Slope',

//   scale: 30,

//   maxPixels: 1e13,

//   region: cuttingRegion });
  
 // 可视化参数
 var args = {
    
    

   crs: 'EPSG:3857',

   dimensions: '300',

   region: roi,

   min: -2000,

   max: 10000,

   palette: 'green, blanchedalmond,orange,black ',

   framesPerSecond: 12,

 };

Map.addLayer(roi,{
    
    },'roi_Boundary');

Map.centerObject(roi, 7);

// Map.addLayer(slope,{},'slope');

Map.addLayer(elevation,args,'elevation');

Result display

Visualize the DEM

The visualization results of the slope data are as follows :

Guess you like

Origin blog.csdn.net/qq_35591253/article/details/116226114