This is amazing work. My question is, how can we add different water levels to the analysis to get the amount of inundation at different water levels. Thank you.
thank you sir your teaching, sir when i used to export the data like this error showing before run how could i resolve it 'A mapped function's arguments cannot be used in client-side operations'
Hi, I need help, I want to find out the number of water and non-water pixels on the image for satellite data available date-wise for sentinel 1 and sentinel 2, Landsat 8, and MODIS. For example, if I have 200 water bodies, I'm getting the total number of pixels for all 200 water bodies but I need individual water bodies' water and non-water pixels' satellite data available date-wise. help me, how can I do that?
var before_filtered = ee.Image(toDB(RefinedLee(toNatural(before_image)))). I ran into an error on this line stating "toDB is not defined" try to modify the code to no avail. kindly help to respond what may be wrong?
Thanks for the resource. I have a question. There are many thresholding methods to detect flood and permanent water bodies. is there any specific name for this thresholding method?
You use the classification algothim I.e random forest, SVM etc in GEE just you have to generate some training samples to train the ML algorithm . I have uploaded a video for classification of rice crop using SAR data in GEE you follow that for classification..
Sir, I a imported a district shapefile which I have extracted in arcgis softwere from the districts shapefile of assam. But after importing and applying the script no result is shown there and I found that in the columns there are only 6 properties instead of 7 and on the result section of image collection the values are missing. Sir can you tell me how I will get the correct shapefile to get the result.
Use this piece of code for exporting the image to your Google drive. Export.image.toDrive({ image: image_name, description: 'Sentinel1', scale: 10, maxPixels: 10000000000000, region: your_region }) Image will be uploaded in Google Drive and from there you can download.
@OpenGeo Lab I'm sorry I'm very new to GEE, I just replicate the code on the video but I'm still struggling to find what's the variable name we should replace instead of image_name to get the flooded area and the water body area exported?
Very good tutorial. Can I please get in touch with you? I’m a data journalist in a magazine and was wondering if I can do this in QGIS as well? Or how do I export the image in .tiff?
Use this piece of code for exporting the image to your Google drive. Export.image.toDrive({ image: image_name, description: 'Sentinel1', scale: 10, maxPixels: 10000000000000, region: your_region }) Image will be uploaded in Google Drive and from there you can download. Yes you can do the same analysis in qgis using raster calculator, but you have download before and after images.. It is better to do the analysis in the earthengine and export the final output Also qgis has earth engine plugin...that you can also use.
Use this piece of code for exporting the image to your Google drive. Export.image.toDrive({ image: image_name, description: 'Sentinel1', scale: 10, maxPixels: 10000000000000, region: your_region }) Image will be uploaded in Google Drive and from there you can download as raster file..then you can convert raster to vector in any open source gis software I.e QGIS
hi..I understand that if the after_filtered image value is less than -20 db is flood but why before_filtered image is greater than -20 db is considered as flood? Additionally, you said to take before 1 and before 2,but the value you mentioned is less than -20, should not be value be greater than -20 fore before2_filtered image?
We are taking two images one is before event and one is post event...if water is not there in before image...and water comes suddenly after event.. you can change this value ..for before image based upon the area You can also calculate the ratio of the two images and then do the thresholding..
Use this piece of code for exporting the image to your Google drive. Export.image.toDrive({ image: image_name, description: 'Sentinel1', scale: 10, maxPixels: 10000000000000, region: your_region }) Image will be uploaded in Google Drive and from there you can download.
there was a problem in the district boundary shapefile attributes, i have updated the link in the description of the video it will work now. code.earthengine.google.com/c150dffea355475b543a96ac9cdfffb0
Link for the code is in the description of the video...... Also you can check..this www.linkedin.com/posts/karanknit_assamfloodmap1-activity-6934938885693026304-6TuW?
// Detect flood and water using the provided logic var flood = before_filtered.gt(-20).and(after_filtered.lt(-20)); @OpenGeo Lab Why we are using 20? Also explain the line
The link to your app is not working, it shows the USA map and even if i drag towards Assam , there is nothing there. This also happened when i followed the tutorial and made my own project. The code runs but the app shows nothing. Could you help? @opengeo lab
@@OpenGeoLab i do have my own shapfile. Its working in the API. When i run the code, it centers around my region amd shows all the data. But when i upload as an app, it shows nothing
This is amazing work. My question is, how can we add different water levels to the analysis to get the amount of inundation at different water levels. Thank you.
very good resources about GEE Sentinel-1
Using your code line 35 had an error notification and won't run (dt.geometry is not a function)
Hope you can answer
Thanks very much!
Hi I tried exporting the flood mask to drive and then to arcgis, but image is full black. Is it because band VH
thanks alot this will have my project
I am trying to run this for other area of interest, but not working with message"Cannot read properties of null (reading 'coordinates')", please help.
thank you sir your teaching, sir when i used to export the data like this error showing before run how could i resolve it 'A mapped function's arguments cannot be used in client-side operations'
This is a great tutorial. I am having an issue with the Flood Area calculation. Can you please help me in this regard?
How can we import sentinel-1 images of our study area? the variable ind_dt what is its purpose?
sir, how can we use ostu thresholding techniques to determine optimum thresholding technique to determine flood inundation mapping?
what will be function for export flooded area in polygon shapefile
Hi, I need help, I want to find out the number of water and non-water pixels on the image for satellite data available date-wise for sentinel 1 and sentinel 2, Landsat 8, and MODIS. For example, if I have 200 water bodies, I'm getting the total number of pixels for all 200 water bodies but I need individual water bodies' water and non-water pixels' satellite data available date-wise. help me, how can I do that?
How could we export it sir?
var before_filtered = ee.Image(toDB(RefinedLee(toNatural(before_image)))). I ran into an error on this line stating "toDB is not defined" try to modify the code to no avail. kindly help to respond what may be wrong?
How to classify level of flood such a High, Medium and Low?......
can you provide the link to download the shape that is being used in the video
Thank you for the tutorial
Thanks for the resource. I have a question. There are many thresholding methods to detect flood and permanent water bodies. is there any specific name for this thresholding method?
No, it is simple thresholding...you can use ratio also for mapping the change in the backscatter...
@@OpenGeoLab Thank you
In the Assets tab, I don't have the same files as you
sir where can i get the indian diatrict sorted data file
can you provide shapefiles of all the districts
Very good tutorial. Sir, I have a question, what is the decibel value range for water and for vegetation?
Sir asalmalikium
Sir I need a guide on how i get the boundaries at the district level with python
Dear did you used otsu thresholding method?
I have used simple thresholding based on the the backscatter values of SAR data..and for flood detection i have used backscatter values for water..
I have problem on this line can you help>>>>>>>var before = collection.filter(ee.Filter.date('2022-05-01','2022-05-10')).filterBounds(dt)
Good Tutorial
Using your code line 15 had an error notification and won't run
Sir how to implement the concept of region growing here.. To enhance the accuracy
You use the classification algothim I.e random forest, SVM etc in GEE just you have to generate some training samples to train the ML algorithm .
I have uploaded a video for classification of rice crop using SAR data in GEE you follow that for classification..
Sir, I a imported a district shapefile which I have extracted in arcgis softwere from the districts shapefile of assam. But after importing and applying the script no result is shown there and I found that in the columns there are only 6 properties instead of 7 and on the result section of image collection the values are missing. Sir can you tell me how I will get the correct shapefile to get the result.
Please make sure....projection of the shapefile...is in EPSG:4326
Thank you so much sir,
Sir can I get the code to export the map to drive?
Use this piece of code for exporting the image to your Google drive.
Export.image.toDrive({
image: image_name,
description: 'Sentinel1',
scale: 10,
maxPixels: 10000000000000,
region: your_region
})
Image will be uploaded in Google Drive and from there you can download.
I'm grateful, sir. The tutorial is indeed very useful. You're doing a great work and I appreciate your kind words and help. 😊😇
@OpenGeo Lab I'm sorry I'm very new to GEE, I just replicate the code on the video but I'm still struggling to find what's the variable name we should replace instead of image_name to get the flooded area and the water body area exported?
Very good tutorial. Can I please get in touch with you? I’m a data journalist in a magazine and was wondering if I can do this in QGIS as well? Or how do I export the image in .tiff?
Use this piece of code for exporting the image to your Google drive.
Export.image.toDrive({
image: image_name,
description: 'Sentinel1',
scale: 10,
maxPixels: 10000000000000,
region: your_region
})
Image will be uploaded in Google Drive and from there you can download.
Yes you can do the same analysis in qgis using raster calculator, but you have download before and after images..
It is better to do the analysis in the earthengine and export the final output
Also qgis has earth engine plugin...that you can also use.
@@OpenGeoLab Hello, thanks for getting back. I just mailed you some queries. Can I please talk to you once? Thank you.
@OpenGeoLab sir where can i get the indian district sorted data sets
Hi, nice work. I have a question. What is the unit? is that 25m?
10 m
nice sir
Can you show me how to export flood inundation and water body in Raster and vector data please
Use this piece of code for exporting the image to your Google drive.
Export.image.toDrive({
image: image_name,
description: 'Sentinel1',
scale: 10,
maxPixels: 10000000000000,
region: your_region
})
Image will be uploaded in Google Drive and from there you can download as raster file..then you can convert raster to vector in any open source gis software I.e QGIS
hi..I understand that if the after_filtered image value is less than -20 db is flood but why before_filtered image is greater than -20 db is considered as flood? Additionally, you said to take before 1 and before 2,but the value you mentioned is less than -20, should not be value be greater than -20 fore before2_filtered image?
We are taking two images one is before event and one is post event...if water is not there in before image...and water comes suddenly after event.. you can change this value ..for before image based upon the area
You can also calculate the ratio of the two images and then do the thresholding..
How to export flood before and after image
Use this piece of code for exporting the image to your Google drive.
Export.image.toDrive({
image: image_name,
description: 'Sentinel1',
scale: 10,
maxPixels: 10000000000000,
region: your_region
})
Image will be uploaded in Google Drive and from there you can download.
after adding the area of interest this message is showing = ImageCollection COPERNICUS/S1_GRD (0 elements), please help. Why 0 element is showing?
there was a problem in the district boundary shapefile attributes, i have updated the link in the description of the video it will work now.
code.earthengine.google.com/c150dffea355475b543a96ac9cdfffb0
@@OpenGeoLab yes, now it is working, thak you for your response
@@OpenGeoLab Sir, it isn't working. Kindly tell what problem was there in shapefile attributes.
can u send me the full code
can I have your code that was edited? thank
Link for the code is in the description of the video......
Also you can check..this
www.linkedin.com/posts/karanknit_assamfloodmap1-activity-6934938885693026304-6TuW?
@@OpenGeoLab thanks so much
Hello Sir
Can you share to me this script ?
that is important for me
Thanks
Script link is in the description of he video
@@OpenGeoLab thank you so much Sir
can you share to me export scrip for this
volver a mirar, dont understand
// Detect flood and water using the provided logic
var flood = before_filtered.gt(-20).and(after_filtered.lt(-20));
@OpenGeo Lab Why we are using 20? Also explain the line
The link to your app is not working, it shows the USA map and even if i drag towards Assam , there is nothing there. This also happened when i followed the tutorial and made my own project. The code runs but the app shows nothing. Could you help?
@opengeo lab
You have to replace the shapefile as per your area ...check this updated code
code.earthengine.google.com/1fb758f0267e39565409cb08dc5416aa
@@OpenGeoLab i do have my own shapfile. Its working in the API. When i run the code, it centers around my region amd shows all the data. But when i upload as an app, it shows nothing
@@aimenfatima6537 ok when you publish as app..it will take few minutes after publishing..try to access the app after few minutes..
@@OpenGeoLab its been more than a day, its still the same
@@OpenGeoLab can i email/contact you?