How to use rasterio for rasterize and transformation of polygons?

#1

Hi, I am new at this and I don’t quite understand how functions work. I have to transform a list of polygons that is in vector form into a raster mask, which should be geographically aligned with the NDVI image.
I have the NDVI image and the list of polygons but I am not sure how to approach the problem.
Thank you!