Hi Pravin,
Thank you for asking. Can you adept the code below for your data and let me know if it worked, please?
PH<-extract(x = DSM, y = fieldShape)
PH90<-do.call(rbind,lapply(PH, quantile, probs = c(0.9), na.rm=TRUE))
PH90
All the best,
Filipe
Pravin,
Please try this new code:
PH90.A<-extract(x = CHM.S$newMosaic, y = EX1.Shape$fieldShape)
PH90<-do.call(rbind,lapply(PH90.A, quantile, probs = c(0.9), na.rm=TRUE))
PH90
Best,
Filipe