Automatic cloud Masking of Sentinel 2 Imagery Using ESA SNAP

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 68

  • @VasilisKst
    @VasilisKst 3 роки тому +1

    Thanks for the video but you could show us, how to export specific images and open them on QGIS

    • @GEO2004
      @GEO2004  3 роки тому +1

      You can directly export the result using file menu > export, choose QGIS friendly raster format like geotif,

    • @VasilisKst
      @VasilisKst 3 роки тому

      @@GEO2004 Yes, but care only about the masks and not for bands.. So, how can i export the masks? I tried to export them by right clicking on the image->export (i tried all the available exports) but the image was not georeferenced. Can you please help me about this?

    • @GEO2004
      @GEO2004  3 роки тому +1

      Aaah thats one, yeah I was know how to do it but currently I forgot how to do it, I must check first in the esa snap to refresh my memory, going to reply back later

    • @VasilisKst
      @VasilisKst 3 роки тому

      @@GEO2004 Thanks a lot!

    • @VasilisKst
      @VasilisKst 3 роки тому +1

      @@GEO2004 Okay i found out the solution!!! Firstly, you have to open a mask (for example i opened IDEPIX_CLOUD) prnt.sc/zunszu
      Then right click on the image and select Export View as image: prnt.sc/zunvlf
      Save as .tif, select region: Fullscrene and save it: prnt.sc/zunzw1

  • @michellinegoodjarran8636
    @michellinegoodjarran8636 Рік тому

    Hi after doing the resampling and cloud masking, can i use the output level 1C image qnd atmospherically correct it to get 2A image using sen2cor?

  • @sohazarrin4703
    @sohazarrin4703 2 роки тому

    HI, I have downloaded level 2A data beside resampling and clipping do you thing any other preprocessing is necessary for it?

    • @GEO2004
      @GEO2004  Рік тому

      no need, L2A have been atmospheric and geometrically corrected

  • @sitihawaabdulhalim4984
    @sitihawaabdulhalim4984 2 роки тому

    i got some error while processing. it said the input must be S2 MSI 1C product while mine is 2A. how to solve this?

    • @GEO2004
      @GEO2004  2 роки тому

      You must download the MSI L1C data

  • @monaallam130
    @monaallam130 2 роки тому

    Thank you so much for this video, the process takes some time then it is not succeeded, why?

    • @GEO2004
      @GEO2004  2 роки тому

      I can't answer it if you only tell a generic message, what about you tell me some error messages you found during processing, so I can further identify what causing the error

  • @fahriadi9080
    @fahriadi9080 3 роки тому

    Izin bertanya pak, di menu plugin banyak sekali pilihan plugin idepix yg berbeda, idepix mana yg bapak gunakan pada video di atas.? terimakasih

    • @GEO2004
      @GEO2004  3 роки тому

      idepix untuk sentinel 2,

  • @michellinegoodjarran8636
    @michellinegoodjarran8636 Рік тому

    I have level 1C sentinel images but i have to preprocess them to get vegetation drought indices. Some have cloud coverage and some don't. Is it correct if i do the following;:
    1. For the images with zero cloud coverage i will take the level 1C images and resample it then apply atmospheric correction using sen2cor
    2. For images with cloud coverage i will resample it, apply the cloud masking then apply atmospheric corrections using Sen2cor
    Is this correct?

    • @GEO2004
      @GEO2004  Рік тому

      Answer for Question 1 is OK,
      Answer for Question 2 is depends, if you leave the masked area as blank/no-data region, you can go with your route, however, if you fill the masked area with imagery from other date, I am afraid that is not correct, and I am not sure sen2cor will gives a good result if you go to this route.
      the better alternative is use the L2A data then do the masking and filling, and finally do the indices calculation.
      Cloud masking and filling should be done in the latter part of the processing sequence after crucial and critical part such as atmospheric correction and geometric correction are applied.

  • @giriprasad3715
    @giriprasad3715 3 роки тому

    Good evening Sir, I am unable to access IDEPIX. In OPTICAL>PREPROCESSING>MERIS Cloud Probability Processor. Didn't find option for IDEPIX in my resampled data.Can you please help me about this?

    • @GEO2004
      @GEO2004  3 роки тому +1

      You must install it first from plugin menu

  • @monaallam130
    @monaallam130 2 роки тому

    which version of SNAP are you use?

  • @TmProduction
    @TmProduction 5 років тому

    Mantul pak

  • @raihanmaisara8022
    @raihanmaisara8022 4 роки тому

    Hi, i was wondering if i can generate chl-a using C2RCC from the water mask alone? if possible, can i save the it as a new layer? Thank you.

    • @GEO2004
      @GEO2004  4 роки тому

      Never tried c2rcc before, but I think it is possible, you can use conditional operator from band math tool to clip the chl-a result within the water mask area, the output will be a new virtual raster layer, then you can make it permanent then export to geotiff or any other format supported by snap

    • @raihanmaisara8022
      @raihanmaisara8022 4 роки тому

      @@GEO2004 i see, will try. Thanks.

  • @suthagargovindaraj5476
    @suthagargovindaraj5476 3 роки тому

    Is this work for sentinel3 OLCI L1 data data

    • @GEO2004
      @GEO2004  3 роки тому

      I didn’t tried it, may be it will works

    • @suthagargovindaraj5476
      @suthagargovindaraj5476 2 роки тому

      @@GEO2004 Thanks for your time, And I have another doubt , In image I want give the value of pixel more than 10 = NaN in band 3 (How to enter expression in bandmath)
      Thank you

  • @ahmadzulfadli3115
    @ahmadzulfadli3115 2 роки тому

    Hi pak, can I use this step for Sentinel 2B?

  • @lindaaaxav9102
    @lindaaaxav9102 2 роки тому

    Pas klik run dia loading lama knp ya pak? Jadi begitu di klik ga langsung muncul proses writing target object

    • @GEO2004
      @GEO2004  2 роки тому +1

      Memang begitu, terutama kalau ram nya lwbih kecil dari 16 gb

    • @lindaaaxav9102
      @lindaaaxav9102 2 роки тому

      @@GEO2004 oalah.. pantesan. Sudah ovt saya hehe
      Makasih atas jawabannya pak

    • @GEO2004
      @GEO2004  2 роки тому

      Siapp

    • @lindaaaxav9102
      @lindaaaxav9102 2 роки тому

      @@GEO2004 pak selain pake idepix bisa pake cara apa aja? Ini lama banget says tungguin ga selesai²

    • @GEO2004
      @GEO2004  2 роки тому

      Bisa pake fmask, bisa pakai conditional operator,

  • @azaleakamellia
    @azaleakamellia 3 роки тому

    Is it possible to export the cloud masks generated into a raster or shapefile for usage in GIS softwares like ArcGIS or QGIS? It seems like the masks generated are in .xml files that are unreadable in ArcGIS Pro. Is there any step we can take to enable this?

    • @azaleakamellia
      @azaleakamellia 3 роки тому

      Oh! Sorry. Just found out Cèsar asked about this in the comment too! Was the solution found?

    • @GEO2004
      @GEO2004  3 роки тому

      Mask results can be exported as geotiff raster inside the esa snap, I little bit forgotten about how to do it, but it is possible, I have done it before

    • @azaleakamellia
      @azaleakamellia 3 роки тому

      @@GEO2004 Oh cool! That means that it's not entirely impossible. I'll tweak around and share if I found it. Thanks again!

    • @azaleakamellia
      @azaleakamellia 3 роки тому

      @@GEO2004 Just found it. But it's not the most practical method though. You can first open the mask in SNAP in an image window, right-click it and export the image. You'll have the option to export the whole image as png but it is not georeferenced. If there's any other way to go about it, feel free to share!

    • @GEO2004
      @GEO2004  3 роки тому

      you do it wrong, if you want to keep it georeferenced, you should use TIF as export format.
      I think the most proper way is from the File > Export Menu. There are some options for exporting, like spatial subset or spectral subset. The choices to includes the mask is in Spectral Subset Setting If I am not mistaken.

  • @thakshiladilupama6504
    @thakshiladilupama6504 Рік тому

    Hi, it's a great video.
    When I tried S2 Resampling using SNAP 9.0.0, I get an error and the processing fails. I kept all parameters default.
    Error as follows,
    A problem occurred during the target product processing.
    Type: OperatorException
    Messege: Failed to read the data for level 0 and rectangle java.awt.Rectangle[x=0,y=0,width=256,height=256]

    • @GEO2004
      @GEO2004  Рік тому

      Use L2A data and not L1C

    • @thakshiladilupama6504
      @thakshiladilupama6504 Рік тому

      @@GEO2004 Thank you for your reply. I used "S2A_MSIL2A_20220929T050611_N0400_R076_T44NMM_20220929T073656"

  • @baoair
    @baoair 4 роки тому

    Thanks for the video, I detected the error while running and here is the message of that error, "Can not construct DataBuffer" , please suggest what solution shall be instead!

    • @GEO2004
      @GEO2004  4 роки тому

      How much your ram? This error usually related to out of memory case

  • @cesarsuarezh2176
    @cesarsuarezh2176 3 роки тому

    Hi, it's a great video and Idepix is a good tool for creating multiple masks. But, I have some questions hope you can solve. How do I export those masks in native format GML that generates the algorithm after executing? Can I export directly from Snap to Gis software to will use as a shapefile or feature class?. thanks

    • @GEO2004
      @GEO2004  3 роки тому +1

      mask output from idepix usually stored as raster image, so it cant be exported directly to GML or other vector format. so least you can do is export all the output product to common format like GeoTiff, then you can perform the raster vector conversion from ArcGIS or QGIS

    • @cesarsuarezh2176
      @cesarsuarezh2176 3 роки тому

      ​ @GEO 2004 could you recommend a way to convert from GML to vector?. I can not visualize this product because only appear in SNAP inside the mask folder, but that folder does not appear in the GIS software not even when it's in tiff format..

    • @GEO2004
      @GEO2004  3 роки тому

      Hmm, let me check it again, will reply back later

  • @rahmadgunawan8464
    @rahmadgunawan8464 4 роки тому

    Yth GEO2004 apakah penggunaan scl cloud masking dari sen2Cor akurasinya tidak bagus sehingga lebih baik menggunakan Idepix apakah ada keterangan resmi dari SNAP? trimakasih

    • @GEO2004
      @GEO2004  4 роки тому +1

      kata siapa cloud masking dari sen2cor tidak bagus?
      siapa yang menyuruh harus menggunakan idepix?

    • @rahmadgunawan8464
      @rahmadgunawan8464 4 роки тому

      ​Siap Pak@@GEO2004 beberapa mask water dari lokasi yang diamati ada yang tidak tercover scl, mungkin cukup berbeda nilai spektralnya, hanya baca dr gis.stackexchange.com/questions/330113/sentinel-2-l2a-cloud-masking Pak

    • @rahmadgunawan8464
      @rahmadgunawan8464 4 роки тому

      Mohon ulasan tentang automasking Sen2Cor terutama eksport masking awan menjadi shp agar lebih mudah clipping menggunakan software selain SNAP

    • @GEO2004
      @GEO2004  4 роки тому +2

      Oke usul.ditampungf

    • @rahmadgunawan8464
      @rahmadgunawan8464 4 роки тому

      @@GEO2004 dinanti Pak :)

  • @bintanganugerah1880
    @bintanganugerah1880 4 роки тому +1

    pak download dan install idepix nya gimana ya pak?

    • @GEO2004
      @GEO2004  4 роки тому +2

      Dari menu Tools > plugins, nanti ada pilihan optional plugins, download saja, instalasi nanti otomatis

    • @bintanganugerah1880
      @bintanganugerah1880 4 роки тому

      @@GEO2004 terima kasih pak🙏 padahal kemarin saya udh buka juga, tapi ga muncul idepix nya. mungkin karena snap nya nge lag di laptop saya wkw sekali lagi terima kasih ya pak🙏

  • @muhammadimamnugraha3331
    @muhammadimamnugraha3331 5 років тому

    saya sudah mencoba memakai idepix processor tapi saya masih terjadi eror pak dan muncul message "mandatory auxdata file "50m.zip" cannot be downloaded"
    Apakah ada solusinya pak?
    Terima kasih

    • @GEO2004
      @GEO2004  5 років тому

      Onlen ga mas? Harus onlen supaya bisa donwload data dem tambahan

  • @justme98676
    @justme98676 4 роки тому

    Niceee very helpful

  • @dwiyosaoktidaria3942
    @dwiyosaoktidaria3942 5 років тому

    ini pake snap yang versi berapa ya pak?

    • @GEO2004
      @GEO2004  5 років тому

      Waktu tutorialnya dibuat, masih pake snap 6.0, idepix harus diinstall dan didownload dulu dari menu external plugins