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.
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. });
Thank u brother, it uses me a lot
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.
Sure
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.
});
@@KapildevAdhikari thank you very much 🙏🏻🙏🏻🙏🏻🙏🏻
hi, how or where do i find the Vietnam data if my site is at vietnam?
You can find dem data of anywhere in GEE
hello,
do you have soiltexture code
i really need
can you help me please
DM at kapildevadk@gmail.com
Hi Kapil, could you please help with calculating a time series of LST (Land Surface Temperature ) for a period of 15 years ? in GEE
Ok
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.
@@boi_ratie kapildevadk@gmail.com