Extract and Export Waterbody Using Google Earth Engine | Step-by-Step Guide
Автор: GIS & RS Made Easy
Загружено: 2024-12-25
Просмотров: 1595
Описание:
Code at the end....
#googleearthengine, #gee, #detect_water_in_satellite_imagery, #gistutorial, #remotesensing
Extract and Export Waterbody from Google Earth Engine | GIS & RS Made Easy
Welcome to GIS & RS Made Easy, your go-to channel for simple and practical GIS and remote sensing tutorials. In this video, we’ll show you how to extract and download waterbodies using Google Earth Engine (GEE). Whether you’re a beginner or an experienced user, this step-by-step guide will help you leverage GEE for water resource management and spatial analysis.
🌟 What You’ll Learn in This Video:
Introduction to Google Earth Engine:
A quick overview of GEE’s capabilities for waterbody detection.
Dataset Selection:
Learn how to choose the right satellite imagery, such as Landsat or Sentinel-2, for waterbody extraction.
Waterbody Extraction Techniques:
Use simple scripts to identify and delineate waterbodies using spectral indices like NDWI (Normalized Difference Water Index).
Downloading Waterbody Data:
Export the results as KML or shapefiles for offline use in GIS software like QGIS or ArcGIS.
Applications of Waterbody Data:
Flood mapping, water resource monitoring, and urban planning.
📋 Key Features of This Tutorial:
Beginner-friendly approach with clear explanations.
Step-by-step scripting in the Google Earth Engine Code Editor.
Practical examples of waterbody detection and data export.
🛠 What You Need:
A Google Earth Engine account.
Basic familiarity with JavaScript for scripting in GEE.
A desire to learn and explore GIS and remote sensing!
👩💻 Who Is This Video For?
Students and Researchers working on water resource management projects.
GIS and Remote Sensing Professionals seeking automated solutions for waterbody mapping.
Enthusiasts interested in learning more about Google Earth Engine and its applications.
By the end of this tutorial, you’ll have the skills to extract, analyze, and download waterbody data for your GIS projects, saving you time and effort in manual mapping.
🔑 Keywords:
Google Earth Engine, Extract Waterbody, Waterbody Mapping, GEE Tutorial, NDWI Google Earth Engine, Water Resource Management, GIS & RS Made Easy, Download Waterbody Data, Satellite Imagery Analysis, Remote Sensing
🔍 Search Terms:
google earth engine waterbody, waterbody extraction GEE, NDWI tutorial GEE, download waterbody data GIS, GEE for beginners, remote sensing waterbody detection, extract waterbody google earth engine, flood mapping tutorial GEE, satellite imagery for waterbody, gis & rs made easy
💻 Start Your Project Today!
Unlock the potential of Google Earth Engine to simplify waterbody mapping and analysis. Let us know in the comments if you have any questions or share your experience with GEE!
📢 Connect With Us:
For more tutorials on GIS, remote sensing, and geospatial tools, subscribe to GIS & RS Made Easy and turn complex concepts into actionable insights.
👉 Subscribe Now for beginner-friendly tutorials and advanced techniques in GIS and remote sensing!
---------------------
CODE:
---------------------
// Load Sentinel-2 surface reflectance data
var sentinel2 = ee.ImageCollection("COPERNICUS/S2_SR_HARMONIZED")
.filterDate('2023-01-01', '2023-12-31') // Specify your date range
.filterBounds(geometry) // Define the area of interest (geometry)
.filter(ee.Filter.lt('CLOUDY_PIXEL_PERCENTAGE', 5)) // Filter by cloud cover
.median(); // Take the median of the image collection
// Compute the NDWI
var ndwi = sentinel2.normalizedDifference(['B3', 'B8']).rename('NDWI');
// Threshold the NDWI to classify water bodies
var water = ndwi.gt(0.5); // Adjust threshold as needed
// Convert raster to vector
var waterVectors = water.selfMask().reduceToVectors({
geometryType: 'polygon',
reducer: ee.Reducer.countEvery(),
scale: 10, // Set scale to match Sentinel-2 resolution
geometry: geometry, // Specify the region to vectorize
maxPixels: 1e13
});
// Export the vector data as KML
Export.table.toDrive({
collection: waterVectors,
description: 'WaterBodies_KML',
fileFormat: 'KML'
});
// Add layers to the map for visualization
Map.centerObject(geometry, 10); // Center the map
Map.addLayer(sentinel2, {bands: ['B4', 'B3', 'B2'], min: 0, max: 3000}, 'Sentinel-2 RGB');
Map.addLayer(ndwi, {min: -1, max: 1, palette: ['white', 'blue']}, 'NDWI');
Map.addLayer(water.updateMask(water), {palette: 'blue'}, 'Water Bodies');
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: