Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i format this file?

Status
Not open for further replies.

Alfredot75

Programmer
Jun 8, 2006
8
MX
May I request some help?


This is the big data block I got:


Mode 1 2 3 4 5 6
Symmetry: 1 B1G 1 E2U 1 E2U 1 B2U 1 E2G 1 E2G
mu 504.72215 550.38168 550.38333 579.74361 673.09113 673.11267

l( 1x) -0.00000 0.00004 -0.00002 -0.35218 0.26965 -0.40252
l( 1y) -0.00001 -0.00002 0.00001 0.20647 0.01705 0.31354
l( 1z) -0.40826 -0.09727 -0.56909 0.00003 -0.00000 -0.00000
l( 2x) 0.00001 -0.00000 -0.00000 -0.00271 -0.01393 -0.16470
l( 2y) 0.00000 0.00005 -0.00003 -0.40825 0.55016 -0.05782
l( 2z) 0.40825 -0.44422 0.36878 -0.00007 0.00000 0.00001
l( 3x) -0.00000 -0.00004 0.00003 0.35490 -0.34942 -0.34037
l( 3y) 0.00000 -0.00002 0.00002 0.20177 -0.04509 -0.30554
l( 3z) -0.40824 0.54149 0.20032 0.00004 -0.00000 -0.00000
l( 4x) 0.00000 0.00004 -0.00003 -0.35219 -0.26966 0.40251
l( 4y) -0.00001 -0.00003 0.00002 0.20648 -0.01705 -0.31354
l( 4z) 0.40824 -0.09727 -0.56910 0.00004 0.00000 -0.00000
l( 5x) 0.00001 0.00000 -0.00000 -0.00272 0.01394 0.16469
l( 5y) 0.00001 0.00004 -0.00003 -0.40824 -0.55016 0.05781
l( 5z) -0.40825 -0.44421 0.36879 -0.00008 0.00000 0.00001
l( 6x) -0.00001 -0.00003 0.00003 0.35489 0.34941 0.34038
l( 6y) 0.00000 -0.00002 0.00001 0.20177 0.04510 0.30554
l( 6z) 0.40826 0.54148 0.20030 0.00005 -0.00000 -0.00000

Working second column:

Mode 1
Symmetry: 1 B1G
mu 504.72215

l( 1x) -0.00000 |
l( 1y) -0.00001 |first 3 rows
l( 1z) -0.40826 |
l( 2x) 0.00001 *
l( 2y) 0.00000 * second block of rows
l( 2z) 0.40825 *
l( 3x) -0.00000 +
l( 3y) 0.00000 + third block of rows
l( 3z) -0.40824 +
l( 4x) 0.00000 -
l( 4y) -0.00001 - 4
l( 4z) 0.40824 -
l( 5x) 0.00001 /
l( 5y) 0.00001 / 5
l( 5z) -0.40825 /
l( 6x) -0.00001 #
l( 6y) 0.00000 # 6
l( 6z) 0.40826 #

There is in the second column a small data blocks. I need to order it in the next way:

-0.00000 -0.00001 -0.40826 <-- elements in first 3 rows
0.00001 0.00000 0.40825 <-- Elements in second block of rows
-0.00000 0.00000 -0.40824 <---elements in 4
0.00000 -0.00001 0.40824
0.00001 0.00001 -0.40825
-0.00001 0.00000 0.40826

The last process is used to the next columns (3-7).
All elements in the third colum need to be added to the end of last small block in the same way that was order in the last problem.
So at the end I will get 6 small data blocks with a blank line between those.

Can anybody help me?
Thnaks in advance
 
show us what ya got?

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top