Saving cloud mask

I have gone through the sentinel2-cloud-detector-example in jupyter notebook. It has worked very well for my area of interest. But how do I export the resulting masks in vector or raster format?


I suggest checking out rasterio package which implements basic tools for exporting numpy arrays into geotiffs and for converting rasters to vectors.

Another option is to check out eo-learn which wraps both s2cloudless and rasterio in a form of EOTasks. There you can simply chain together tasks such as eolearn.mask.AddCloudMaskTask, and

Thanks for the advice maleksandrov. I’ll check out both and hopefully get it working.