Reclassify Slope in Google Earth Engine using DEM

Поделиться
HTML-код
  • Опубликовано: 26 авг 2024
  • Create a slope raster using 30 m SRTM DEM and then reclassify it based on range of values (degree) in order to estimate what type of slope has the biggest coverage (area).
    A Digital Elevation Model (DEM) file stores elevation data that can be used to extract slope parameters and to perform surface analysis.
    GEE script link: drive.google.c...

Комментарии • 13

  • @spritualchannel2779
    @spritualchannel2779 2 года назад

    Thank u brother, it uses me a lot

  • @varampornwongworapath4353
    @varampornwongworapath4353 10 месяцев назад

    Hi kapil, Can you teach me how to convert DEM data to terrain analysis data?
    I would like to know if GEE can be used in place of SAGA?
    Thanks again for sharing your expertise in this matter.

    • @KapildevAdhikari
      @KapildevAdhikari  10 месяцев назад +1

      Sure

    • @KapildevAdhikari
      @KapildevAdhikari  10 месяцев назад +1

      There are two methods to terrain analysis in GEE,
      1st method:
      // A digital elevation model. // use NASA, USGS/SRTM, or ASTER dem product//
      var dem = ee.Image('NASA/NASADEM_HGT/001').select('elevation');
      // Calculate slope. Units are degrees, range is [0,90).
      var slope = ee.Terrain.slope(dem);
      // Calculate aspect. Units are degrees where 0=N, 90=E, 180=S, 270=W.
      var aspect = ee.Terrain.aspect(dem);
      // Display slope and aspect layers on the map.
      Map.setCenter(-123.457, 47.815, 11);
      Map.addLayer(slope, {min: 0, max: 89.99}, 'Slope');
      Map.addLayer(aspect, {min: 0, max: 359.99}, 'Aspect');
      2nd direct method:
      // Use the ee.Terrain.products function to calculate slope, aspect, and
      // hillshade simultaneously. The output bands are appended to the input image.
      // Hillshade is calculated based on illumination azimuth=270, elevation=45.
      var terrain = ee.Terrain.products(dem);
      print('ee.Terrain.products bands', terrain.bandNames());
      Map.addLayer(terrain.select('hillshade'), {min: 0, max: 255}, 'Hillshade');
      //obtain and display ‘slope’, ‘aspect’ same as Hillshade.
      To export the terrain data to google drive:
      // A digital elevation model.
      var dem = ee.Image('NASA/NASADEM_HGT/001').select('elevation');
      var terrain = ee.Terrain.products(dem);
      // Define the region of interest as a geometry.
      // var roi =
      // Export the terrain data to Google Drive.
      Export.image.toDrive({
      image: terrain,
      description: 'terrain_data',
      scale: 90, // Adjust the scale to your needs.
      region: roi,
      folder: 'your_export_folder', // Specify your export folder.
      maxPixels: 1e13 // You may need to adjust this value based on your image.
      });

    • @varampornwongworapath4353
      @varampornwongworapath4353 10 месяцев назад +1

      @@KapildevAdhikari thank you very much 🙏🏻🙏🏻🙏🏻🙏🏻

  • @shanhong2341
    @shanhong2341 10 месяцев назад

    hi, how or where do i find the Vietnam data if my site is at vietnam?

  • @Hedieh7547
    @Hedieh7547 Год назад

    hello,
    do you have soiltexture code
    i really need
    can you help me please

  • @boi_ratie
    @boi_ratie 2 года назад

    Hi Kapil, could you please help with calculating a time series of LST (Land Surface Temperature ) for a period of 15 years ? in GEE

    • @KapildevAdhikari
      @KapildevAdhikari  2 года назад

      Ok

    • @boi_ratie
      @boi_ratie 2 года назад

      Please provide me with your email if you don’t mind. I have a few questions and i think you might be able to help me.

    • @KapildevAdhikari
      @KapildevAdhikari  2 года назад

      @@boi_ratie kapildevadk@gmail.com