I have a text file with a long list of values in it. The values are actually for coordinates, the values are like this;
X0Y0 First Value
X0Y1 Second Value
X0Y2 etc.
X1Y0
X1Y1
X1Y2
...
...
X15Y0
X15Y1
X15Y2
etc.
I know the bounds of X and Y and I want to rearrange it and put into a new file looking like this;
X0Y0 X0Y1 X0Y2
X1Y0 X1Y1 X1Y2
X2Y0 X2Y1 X2Y2
etc.
I would guess it's few lines of code but I'm getting nowhere. I know the X and Y bounds before I start btw.
Any help appreciated.
X0Y0 First Value
X0Y1 Second Value
X0Y2 etc.
X1Y0
X1Y1
X1Y2
...
...
X15Y0
X15Y1
X15Y2
etc.
I know the bounds of X and Y and I want to rearrange it and put into a new file looking like this;
X0Y0 X0Y1 X0Y2
X1Y0 X1Y1 X1Y2
X2Y0 X2Y1 X2Y2
etc.
I would guess it's few lines of code but I'm getting nowhere. I know the X and Y bounds before I start btw.
Any help appreciated.