I am reading a jpg image and its associated world file in Python with Rasterio like this:
import rasterio
with rasterio.open('/path/to/file.jpg') as src:
print(src.width, src.height)
print(src.crs)
print(src.indexes)
The image file and its associated world file are correctly read, however the CRS is undefined (I guess that's because world file doesn't contain the CRS). Here is the output:
5000 5000
None
(1, 2, 3)
How to set the CRS manually in Rasterio after reading the file?