[Tutor] manipulating data
Bryan Fodness
bryan.fodness at gmail.com
Tue Nov 6 20:54:45 CET 2007
I would like to have my data in a format so that I can create a contour plot.
My data is in a file with a format, where there may be multiple fields
field = 1
1a 0
2a 0
3a 5
4a 5
5a 5
6a 5
7a 5
8a 5
9a 0
10a 0
1b 0
2b 0
3b 5
4b 5
5b 5
6b 5
7b 5
8b 5
9b 0
10b 0
field = 2
1a 0
2a 0
3a 0
4a 4
5a 4
6a 4
7a 4
8a 0
9a 0
10a 0
1b 0
2b 0
3b 0
4b 4
5b 4
6b 4
7b 4
8b 0
9b 0
10b 0
field = 3
1a 0
2a 0
3a 0
4a 0
5a 3
6a 3
7a 0
8a 0
9a 0
10a 0
1b 0
2b 0
3b 0
4b 0
5b 3
6b 3
7b 0
8b 0
9b 0
10b 0
where,
a b
a b a b
10 0000000000|0000000000 0000000000|0000000000 0000000000|0000000000
9 0000000000|0000000000 0000000000|0000000000 0000000000|0000000000
8 0000011111|1111100000 0000000000|0000000000 0000000000|0000000000
7 0000011111|1111100000 0000001111|1111000000 0000000000|0000000000
6 0000011111|1111100000 0000001111|1111000000 0000000111|1110000000
5 0000011111|1111100000 0000001111|1111000000 0000000111|1110000000
4 0000011111|1111100000 0000001111|1111000000 0000000000|0000000000
3 0000011111|1111100000 0000000000|0000000000 0000000000|0000000000
2 0000000000|0000000000 0000000000|0000000000 0000000000|0000000000
1 0000000000|0000000000 0000000000|0000000000 0000000000|0000000000
I could possibly have many of these that I will add together and
normalize to one.
Also, there are 60 a and b blocks, the middle 40 are 0.5 times the
width of the outer 20.
I thought about filling an array, but there is not a one to one symmetry.
I cannot seem to get my head around this. Can anybody help me get started?
More information about the Tutor
mailing list