I'm using rasterio in Python at the moment, and I have no problem when I'm dealing with RGB satellite images. However, if I try using singleband Sentinel 2 images, or a singleband Sentinel 1 image, something happens. As this figure here shows, you can see that the image on the left, is suddenly green. Whilst the exact same image on the right in QGIS, looks at it should. Any suggestions?
I use the following code:
dataset = rasterio.open(project_dir + '/data/satellite_data/S1/merged/S1HH.tiff') img=dataset.read() fig=show(img)