I have made some processing on some satellite images as numpy arrays. I want to export the data as tif images again to see the result I read ùy image with rasterio
sentinel2 = rasterio.open('sentinel2.tif')
and my processed array is
According to this
>>> new_dataset.write(Z, 1) I used that to export the image but this error appears
sentinel2.write(date1seg, 1) AttributeError: 'DatasetReader' object has no attribute 'write'