Thanks for sharing with us this valuable information. I noticed your TH-cam channel today, and it is very beneficial. I will try to get more knowledge from it. Again and again, I can finish thanking you.
Thank you for your great tutorial. But it seems I have some error when running your script. Like there is a var coordinates and the other is geometry. The script uses geometry but the coordinates seem not used to clip. There is some error like this: Number (Error) Image.gt: If one image has no bands, the other must also have no bands. Got 0 and 1. ndwi_thr: Layer error: Image.gt: If one image has no bands, the other must also have no bands. Got 0 and 1. ndwi_masked: Layer error: Image.gt: If one image has no bands, the other must also have no bands. Got 0 and 1. ndwi_pixel_area: Layer error: Image.gt: If one image has no bands, the other must also have no bands. Got 0 and 1. I use the script: var imageCollection = ee.ImageCollection("LANDSAT/LC08/C02/T2_L2"), geometry = /* color: #0b4a8b */ /* displayProperties: [ { "type": "rectangle" } ] */ ee.Geometry.Polygon( [[[44.5346944926502, 38.37189110732085], [44.5346944926502, 36.97192200651999], [46.2925069926502, 36.97192200651999], [46.2925069926502, 38.37189110732085]]], null, false); var coordinates = [ [42.000552219688586, 38.18969302118053], [43.868228000938586, 38.18969302118053], [43.868228000938586, 39.209978258633186], [42.000552219688586, 39.209978258633186], [42.000552219688586, 38.18969302118053] ]; var roi = ee.Geometry.Polygon(coordinates); Map.addLayer(roi) var time_start = '2013', time_end = '2021' var landsat = imageCollection .filterDate(time_start, time_end) .filter(ee.Filter.lt('CLOUD_COVER', 10)) .filter(ee.Filter.calendarRange(6,9,'month')) .filterBounds(geometry).map(function(img){ var bands = img.select('SR_.*').multiply(2.75e-05).add(-0.2); var ndwi = bands.normalizedDifference(['SR_B3','SR_B5']).rename('ndwi'); return ndwi .copyProperties(img, img.propertyNames()) }).median(); Map.addLayer(landsat.clip(geometry), [], 'ndwi_summer', false); Map.addLayer(landsat.clip(geometry).gt(0), [], 'ndwi_thr', false); var thr = landsat.gt(0.1); var mask = thr.updateMask(thr); Map.addLayer(mask, [], 'ndwi_masked', false); var pixel_area = mask.multiply(ee.Image.pixelArea().divide(1e6)); Map.addLayer(pixel_area.clip(geometry), [], 'ndwi_pixel_area', false); var lake_area = pixel_area.reduceRegion({ reducer: ee.Reducer.sum(), geometry: geometry, scale: 100 }).values().get(0);
print(ee.Number(lake_area)) Hopefully you could brief me on some of the mistakes. Thanks.
Hello, thanks for your comment. The final area is the average area of lake for 2020. By changing time_start and time_end you will be able to change the results for different years.
Is there a way to estimate monthly dams, lakes and other water bodies areas over an area which excludes or masks the flooded areas during rainy seasons?
thx for video! pleaze, can u help: I really miss the auto part and I thought GEE didn't have it, but at 12:34 you used the auto parting. How? in same situation i haven't this options
@@amirhosseinahrarigee greetings, I mean, when you automatically insert the functions or variables suggested by the browser, it simplifies the work. how to do it?
Wonderful tutorial. I am a novice to GEE and really had a fun time learning. Looking forward to completing rest of the tutorials
Gald to hear. Keep following and share the tutorials with your community please.
Thanks for sharing with us this valuable information. I noticed your TH-cam channel today, and it is very beneficial. I will try to get more knowledge from it. Again and again, I can finish thanking you.
thanks for nice comment and happy to find it useful. please share the videos with your community.
Quite appreciative of this tutorial.
I am sorry I came late to the party😊
keep following the channel. will try to share new tutorials weekly.
Thank you very much sir, may Allah increase your knowledge
Thanks, please share the channel with your community.
It was very helpful. Thank you.
Thank you very much my friend. Greets from Turkey.
It's suggested to make a series of videos GEE from zero to hero. for the very beginners
Thanks for the comment. will try to make it in future.
Thanks for these set of videos - do you also have any plans for showing the same analysis using GEE (if available)?
Yes, I am sharing all technique I know with remote sensing community through this channel please keep following.
Thank you so much
welcome. please share them with your community.
This is a great tutorial! I’d like to create a time series for the lake data and display it in a chart. What steps should I take next?
Thanks for the comment. You can download chart values or plot for time series analysis in python.
Excelent video, thank you very much for share your knowledge. I have a question, why didn´t use the TOA collection?. Is this way more efective?
welcome. TOA is not atmospherically corrected.
Thank you for your great tutorial. But it seems I have some error when running your script. Like there is a var coordinates and the other is geometry. The script uses geometry but the coordinates seem not used to clip. There is some error like this:
Number (Error)
Image.gt: If one image has no bands, the other must also have no bands. Got 0 and 1.
ndwi_thr: Layer error: Image.gt: If one image has no bands, the other must also have no bands. Got 0 and 1.
ndwi_masked: Layer error: Image.gt: If one image has no bands, the other must also have no bands. Got 0 and 1.
ndwi_pixel_area: Layer error: Image.gt: If one image has no bands, the other must also have no bands. Got 0 and 1.
I use the script:
var imageCollection = ee.ImageCollection("LANDSAT/LC08/C02/T2_L2"),
geometry =
/* color: #0b4a8b */
/* displayProperties: [
{
"type": "rectangle"
}
] */
ee.Geometry.Polygon(
[[[44.5346944926502, 38.37189110732085],
[44.5346944926502, 36.97192200651999],
[46.2925069926502, 36.97192200651999],
[46.2925069926502, 38.37189110732085]]], null, false);
var coordinates = [
[42.000552219688586, 38.18969302118053],
[43.868228000938586, 38.18969302118053],
[43.868228000938586, 39.209978258633186],
[42.000552219688586, 39.209978258633186],
[42.000552219688586, 38.18969302118053]
];
var roi = ee.Geometry.Polygon(coordinates);
Map.addLayer(roi)
var time_start = '2013', time_end = '2021'
var landsat = imageCollection
.filterDate(time_start, time_end)
.filter(ee.Filter.lt('CLOUD_COVER', 10))
.filter(ee.Filter.calendarRange(6,9,'month'))
.filterBounds(geometry).map(function(img){
var bands = img.select('SR_.*').multiply(2.75e-05).add(-0.2);
var ndwi = bands.normalizedDifference(['SR_B3','SR_B5']).rename('ndwi');
return ndwi
.copyProperties(img, img.propertyNames())
}).median();
Map.addLayer(landsat.clip(geometry), [], 'ndwi_summer', false);
Map.addLayer(landsat.clip(geometry).gt(0), [], 'ndwi_thr', false);
var thr = landsat.gt(0.1);
var mask = thr.updateMask(thr);
Map.addLayer(mask, [], 'ndwi_masked', false);
var pixel_area = mask.multiply(ee.Image.pixelArea().divide(1e6));
Map.addLayer(pixel_area.clip(geometry), [], 'ndwi_pixel_area', false);
var lake_area = pixel_area.reduceRegion({
reducer: ee.Reducer.sum(), geometry: geometry, scale: 100
}).values().get(0);
print(ee.Number(lake_area))
Hopefully you could brief me on some of the mistakes. Thanks.
Please share your code using getlink button in code editor.
Thanks. Hopefully I could paste the getlink to the reply: code.earthengine.google.com/2f8ca393ba376dd24bbf0f83860e9326
@@amirhosseinahrarigee I have solved the problem. Thanks.
Thank you very much
Thank you very much for the detailed video. However, I failed to understand the Area obtained will be for which Year.
Hello, thanks for your comment. The final area is the average area of lake for 2020. By changing time_start and time_end you will be able to change the results for different years.
Thank you. Waiting for another tutorial on how to create Chart of Lake Area Estimation@@amirhosseinahrarigee
Is there a way to estimate monthly dams, lakes and other water bodies areas over an area which excludes or masks the flooded areas during rainy seasons?
Please find the recent tutorial: th-cam.com/video/bkOFldAzdVs/w-d-xo.html
Thanks for this tutorial series. Just wondering if there is any way to map the ground water for any area of interest?
Thanks for the feedback. Please share the channel with your community. Will try to share the requested tutorial soon.
Sorry, I have no idea for now.
Hi, in my band description ,I cannot find 'Scale'. How do I fixed this
Please open the data description page, then you will see.
Sir, Oil spill mapping in ocean ??
Thanks for the suggestion. Will try in future.
thx for video!
pleaze, can u help: I really miss the auto part and I thought GEE didn't have it, but at 12:34 you used the auto parting. How?
in same situation i haven't this options
Thanks for the comments. sorry I don't know what you mean by auto part? could you explain the question clearer?
@@amirhosseinahrarigee greetings, I mean, when you automatically insert the functions or variables suggested by the browser, it simplifies the work. how to do it?
Hola muchas gracias!! puedes compartir el código aquí? Saludos!!
Hello, thanks for your feedback. Yes, here you go: code.earthengine.google.com/fdd672d2919dace8d6636748bae4a9ff
@@amirhosseinahrarigee Muchas gracias!!