Cloud Masking and Cloud Removal (Fill Nulls) of Sentinel 2 Imagery in Google Earth Engine

  Рет қаралды 3,938

Muddasir Shah

Muddasir Shah

Күн бұрын

Пікірлер: 49
@MuddasirShah
@MuddasirShah Жыл бұрын
Here I have updated the script a bit. Lots of queries regarding replacement. code.earthengine.google.com/ea87531615f4612cd36359c295140194 First I masked the cloudy image as well as the replacement image and merged them together as mean. You can even apply add at the end of the script if you don't prefer the image collection method. It is necessary to mention that both images that you are merging must have the same number of bands. Dr. Ujaval Gandhi @SpatialThoughts have interesting script on time-series interpolation (gap-filling). Here is the link spatialthoughts.com/2021/11/08/temporal-interpolation-gee/ Dr. Ujaval's methodology is the correct way to achieve it. I presented the concept of replacing masks for this video only. 🙂
@fahadbaqa1190
@fahadbaqa1190 6 ай бұрын
plz make video for Landsat 5, 7, 8 cloud masking too. Thanks
@MuddasirShah
@MuddasirShah 6 ай бұрын
Sure
@hindlamrani7078
@hindlamrani7078 10 ай бұрын
Please, how can i do Cloud Masking and Cloud Removal (Fill Nulls) of Landsat 8 and Landsat 7 in Google Earth Engine ?
@MuddasirShah
@MuddasirShah 10 ай бұрын
Hi use can use the quality bands from Landsat and generate cloud mask from the cloudy bits.
@MuddasirShah
@MuddasirShah 10 ай бұрын
Watch this tutorial. It’s for Sentinel-2 but the idea the same kzbin.info/www/bejne/b2mcdaKMnqmCiNEsi=4HqgVniZpXhsCD7N
@hindlamrani7078
@hindlamrani7078 10 ай бұрын
@@MuddasirShah Thank you for your reply. I did already remove cloud but the problem is the pixels that contains clouds has been delete.
@MuddasirShah
@MuddasirShah 10 ай бұрын
@@hindlamrani7078 so you want gap filling?
@MuddasirShah
@MuddasirShah 10 ай бұрын
@@hindlamrani7078 spatialthoughts.com/2021/11/08/temporal-interpolation-gee/
@qZoneful
@qZoneful 2 жыл бұрын
This chanel is a gem!
@MuddasirShah
@MuddasirShah 2 жыл бұрын
Haha thank you
@tesfamariamengida4905
@tesfamariamengida4905 Жыл бұрын
After blend, there is no pixel value why? it say no unmasked pixel. it is not possible to use for LULC
@MuddasirShah
@MuddasirShah Жыл бұрын
PFA code.earthengine.google.com/ea87531615f4612cd36359c295140194
@bobayato2274
@bobayato2274 Жыл бұрын
Hello sir, I'm wondering why we use first() image on "maskedCollection" and "filled"?
@MuddasirShah
@MuddasirShah Жыл бұрын
That is just for the tutorial 🙂 you can use any image
@bobayato2274
@bobayato2274 Жыл бұрын
@@MuddasirShah i use filtering image by id but it doesn't work. Where is the mistake?
@MuddasirShah
@MuddasirShah Жыл бұрын
@@bobayato2274 kzbin.info/www/bejne/enfPnqBtn9dkptk
@bobayato2274
@bobayato2274 Жыл бұрын
@@MuddasirShah Thank you, sir.
@MuddasirShah
@MuddasirShah Жыл бұрын
@@bobayato2274 most welcome 🤗
@sofypuspita7715
@sofypuspita7715 11 ай бұрын
muddasir how are you? I lost contact with you
@MuddasirShah
@MuddasirShah 11 ай бұрын
Hi Sofy, How are you? Pls email me at muddasirshah@outlook.com, I will share my WhatsApp there
@martinaperez3767
@martinaperez3767 Жыл бұрын
Thank you a lot for this very interesting tutorial! I have two questions: 1. How can I apply the correction on an entire collection without merging the images ? Should I just delete the word 'mean' from this script ? "var filled = ee.ImageCollection([orignal_cm,replacement_fill]).mean()" 2. why the var 'replacementImage' has different filter date from cloudy image? thanks !
@MuddasirShah
@MuddasirShah Жыл бұрын
Hi thank you for the complements. 1. Basically it is a naive kind of approach of mine to fill the masked portion. What I did was that I filtered another cloud free image and wanted to replace the cloudy portion with portion of that image. So basically I had two images the cloudy masked image and the replacement image that is cloud free. I applied a mean reducer. If you remove the mean it will give you error. This overall process is known as image timeseries cloud interpolation. Read the pinned comment and you’ll get an idea like how it’s actually dealt with. Dr. Ujaval Gandhi has explained the process well.
@MuddasirShah
@MuddasirShah Жыл бұрын
I received your email too. I’ll write to you tomorrow if I get time :)
@thatscorpio11.
@thatscorpio11. Жыл бұрын
Hi, I'm a newbie to GEE. I am working on one project where I have to calculate NDVI value for a month. And I wanted to ask you, then I fill empty places with other image's pixels, can I still calculate NDVI on it? Can I make calculations? Or is it only for visualization?
@MuddasirShah
@MuddasirShah Жыл бұрын
Yes you will be able to calculate NDVI but suppose your point lies at location where pixel value of previous date image is present. That will give you same value for the two dates. Since it is your project I suggest you do time-series interpolation rather than doing this. I also understand that you’re a newbie to Earth Engine so I’ll share the link with you. Look at the code and try to implement it. Where you face an error or issue we will discuss. Write an email to me muddasirshah@outlook.com, I will try my best to solve this problem of yours.
@MuddasirShah
@MuddasirShah Жыл бұрын
spatialthoughts.com/2021/11/08/temporal-interpolation-gee/
@sofypuspita7715
@sofypuspita7715 11 ай бұрын
Mudarris, where are you from? from Palestine, right?
@MuddasirShah
@MuddasirShah 11 ай бұрын
Pakistan
@ingni123456
@ingni123456 Жыл бұрын
Hi, you haven't pasted a link to the code, it still says "coming soon"
@MuddasirShah
@MuddasirShah Жыл бұрын
Hi, I am very busy these days. If you have any queries I reply through emails quickly
@MuddasirShah
@MuddasirShah Жыл бұрын
muddasirshah@outlook.com
@thebelltools9673
@thebelltools9673 2 жыл бұрын
how to see metadata selected image,
@MuddasirShah
@MuddasirShah 2 жыл бұрын
Print the image variable
@MuddasirShah
@MuddasirShah 2 жыл бұрын
kzbin.info/www/bejne/i6PQgH6lm812o6M
@thebelltools9673
@thebelltools9673 2 жыл бұрын
@@MuddasirShah i've some trouble when print metadata, would you check my script Where i get contact for you
@MuddasirShah
@MuddasirShah 2 жыл бұрын
@@thebelltools9673 please send script link on muddasirshah@outlook.com
@MuddasirShah
@MuddasirShah 2 жыл бұрын
@@thebelltools9673 please make sure assets are open to read.
@sofypuspita7715
@sofypuspita7715 2 жыл бұрын
but it's still a cloud that is visible and not covered
@MuddasirShah
@MuddasirShah 2 жыл бұрын
Hi Sofy! Thank you for the comment. Actually it’s not the cloud of the original image. If you see that one the cloud is more dense and shadow is dark. This I believe is the cloud in second image (mean image with less than 10% CC). The whole Idea is that I replaced it with pixels of other image. You can apply a mean filter on the cloud masked image and blend that or interpolate the same image that will also fill the nulls. 🙂
@sofypuspita7715
@sofypuspita7715 2 жыл бұрын
@@MuddasirShah Thankyou for the response....
@sofypuspita7715
@sofypuspita7715 2 жыл бұрын
@@MuddasirShah muddasir why do you use mean ?
@MuddasirShah
@MuddasirShah 2 жыл бұрын
@@sofypuspita7715 because I like mean. Just needed an image
@sofypuspita7715
@sofypuspita7715 2 жыл бұрын
@@MuddasirShah okey, thank youu...
@MuddasirShah
@MuddasirShah Жыл бұрын
Second version: var cld = require('users/fitoprincipe/geetools:cloud_masks') var test_image = s2SR.first() var masked = cld.sclMask(['cloud_low', 'cloud_medium', 'cloud_high', 'shadow'])(test_image) Map.addLayer(masked, {bands:['B8', 'B11', 'B4'], min:0, max:5000}, 'masked')
@omerreshi
@omerreshi Жыл бұрын
Jinab tuhi hakwa eh provide aase kareth
Downloading Image Collection From Google Earth Engine
3:38
Muddasir Shah
Рет қаралды 1,9 М.
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 33 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 89 МЛН
Google Earth Engine code for calculating NDWI from Sentinel 2 image collection | GEE online training
35:02
Study Hacks-Institute of GIS & Remote Sensing
Рет қаралды 4,3 М.
Google Earth Engine For Water Resources Management
27:28
TECH HIVE
Рет қаралды 134
Google Earth Engine - Cloud Masking
12:43
Fech
Рет қаралды 2,6 М.
Sentinel 2 Imagery Clouds Removal Using ArcGIS Pro
6:48
GEO 2004
Рет қаралды 6 М.
Download Sentinel 2A images from Google Earth Engine | 10m Resolution
10:41