I have a .txt
file that looks like this but much longer:
Image0001_01.tif[1] <- Image0035_01.tif[1]: (410.0, -362.0) correlation (R)=0.05516124 (176 ms)
Image0001_01.tif[1] <- Image0002_01.tif[1]: (489.0, -495.0) correlation (R)=0.047715914 (287 ms)
Image0002_01.tif[1] <- Image0003_01.tif[1]: (647.0, 0.0) correlation (R)=0.8842946 (295 ms)
Image0001_01.tif[1] <- Image0036_01.tif[1]: (265.0, -363.0) correlation (R)=0.039207384 (365 ms)
Image0002_01.tif[1] <- Image0034_01.tif[1]: (626.0, -626.0) correlation (R)=0.60634625 (124 ms)
...........
I'd like to turn this into a comma separated file (csv) so that I can look at the correlations (R-values) but running into problems because of the weird formatting of this file. Is there a way I can do this in Python?