Clipping raster using a raster and type of raster masks in Google Earth Engine

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 7

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

    If you want to clip using another image please make sure to make it a binary mask by setting the image equal to 0
    var mask = image.eq(0);

  • @microclubistwizard48
    @microclubistwizard48 Рік тому +1

    If I understand this right, one can use NDWI (for water) to clip it from NDVI or any other index (even if this index has a range of negative to postive (-1; 1) values) and hide the water part in the second image (NDVI/NBR results of pixels on land only)?

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

    I want to calculate an area surrounding a point.For example, I have GPS coordinates of plots and I want to calculate how much vegetation is in each plot.I used NDVI for a masked image but I do not desire the pixel area of the whole mask just the plots which are 10x10 around each point. I added a reducer to the point shapefile but I get sum of all the plots combined, I cannot divide them according to my ID field.

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

      Hi please email me with the script link. muddasirshah@outlook.com

  • @SheetalKumari-gx3tl
    @SheetalKumari-gx3tl 2 роки тому +1

    Thankyou for this video. I have a question. I have a classified image (cropland data layer) containing different crops in my study area. How to make mask for each crop present using GEE. Please suggest me.

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

      You just select the class pixels by
      Let’s say we have rice and wheat. The class numbers are 1 for rice and 2 for wheat.
      to select rice class / mask only
      var rice = classification.eq(1).selfMask()
      var wheat = classification.eq(2).selfMask()
      I hope this answers your question. If you’re still facing any issues write an email
      muddasirshah@outlook.com