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)?
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.
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.
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
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);
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)?
Absolutely
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.
Hi please email me with the script link. muddasirshah@outlook.com
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.
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