How to get an Image for process api and leaflet

Hello team,

I’m working on getting average NDVI values ​​from sentinel-2 images for my plots on a given date using the statistical API. I want to exclude cloudy pixels by masking them with bands like clm and scl before averaging.
I want to position the image back to its position on leaflet

Do you have any sample assessment scripts or suggestions on how to achieve this?

Thank you in advance for your help!

Hi,

If you are looking to create cloud free mosaics of Sentinel-2 then there are some examples on the Custom Scripts Repository here. I think this script should help you out.