Prev: Rotate histogram
Next: for loop imread
From: andy zhu on 9 Jun 2010 15:43 Dear All I need to save the data between the line "#L strech-h H K L ..." and the line '#c' into separate files. This file below has two blocks of such data and therefore needs to be saved in to two txt files. The original data has lot more blocks. Thanks a lot. #S 1 ascan horstr -0.2254 0.1746 60 1 #D Sun Mar 28 13:36:42 2010 #T 1 (Seconds) #G0 0 0 0 1 0 0 0 0 0 0 0 0 50 0 0.1 0 68 68 50 -1 1 1 3.13542 3.13542 0 #G1 6.28319 6.28319 6.28319 90 90 90 0.9999992531 0.9999992531 0.9999992531 90 90 90 1 0 0 0 1 0 2 1 90 0 0 0 60 30 0 -90 0 0 1.095405 1.54 #G3 6.123027196e-17 5.377638759e-17 0.9999992531 9.169225529e-16 -0.9999992531 1.150066595e-16 0.9999992531 7.561083858e-16 -2.220444391e-16 #G4 0 0 0 1.095405 0.699 -0.699 0 90 0 0 0 0 0 0 0 0 -180 -180 -180 -180 -180 -180 -180 -180 -180 #Q 0 0 0 #P0 0 0.699 90 0 30.000282 2.1 20.5 10.255 #P1 0.596266 0.583566 0 0 0 0 0 0 #P2 0.492126 0.898527 0 0 -2.899839e-08 0.5 0 0 #P3 0 0 0 0 0 0 0 0 #P4 3.2757599e-08 0.401321 0.401321 0.401321 0 0 1 0.75 #P5 0.15 0.19 -0.41 0.98 0.28 0.3 -1.2 0.0325 #P6 -0.5675 0.6 -0.9 0.68 0.08 -0.25 -1.75 2.7 #P7 1.1430023 -24 1.14 0.5000635 0 0 0 0 #P8 0 8.4836169e-09 -5.2501905e-09 10.000564 -0.025400051 1 6.4 210 #P9 0 0 0 0 0 0 0 #X Filter unit status = 6 #N 9 #L strech-h H K L Temp(C) Epoch Seconds I0-Monitor Monitor Detector -0.22542545 0 0 0 58.9427 41 1 5757 17 7303 -0.21907544 0 0 0 58.9447 42 1 5733 15 7227 -0.21272543 0 0 0 58.9459 44 1 5706 12 6751 -0.20637541 0 0 0 58.9438 45 1 5719 15 7031 -0.2000254 0 0 0 58.941 47 1 5765 10 7399 -0.19050038 0 0 0 58.9353 49 1 5753 18 7306 -0.18415037 0 0 0 58.9291 50 1 5782 13 7572 -0.17780036 0 0 0 58.9207 52 1 5784 13 7738 -0.17145034 0 0 0 58.9146 53 1 5776 18 7634 -0.16510033 0 0 0 58.9092 55 1 5777 15 7639 -0.15875032 0 0 0 58.9067 57 1 5762 17 7031 #C Peak at 0.0666751 is 7887 COM at -0.0180142 FWHM is 0 at 0.0666751 #C Sum = 405974 Ave.Mon./Time = 15.0328 Ave.Temp. = 58.8961C #C Temperature setpoint = 60 C #C Elapsed time: 1 minute 37 second #S 2 ascan tth -0.02 0.02 80 1 #D Sun Mar 28 13:40:06 2010 #T 1 (Seconds) #G0 0 0 0 1 0 0 0 0 0 0 0 0 50 0 0.1 0 68 68 50 -1 1 1 3.13542 3.13542 0 #G1 6.28319 6.28319 6.28319 90 90 90 0.9999992531 0.9999992531 0.9999992531 90 90 90 1 0 0 0 1 0 2 1 90 0 0 0 60 30 0 -90 0 0 1.095405 1.54 #G3 6.123027196e-17 5.377638759e-17 0.9999992531 9.169225529e-16 -0.9999992531 1.150066595e-16 0.9999992531 7.561083858e-16 -2.220444391e-16 #G4 0 0 0 1.095405 0.699 -0.699 0 90 0 0 0 0 0 0 0 0 -180 -180 -180 -180 -180 -180 -180 -180 -180 #Q 0 0 0 #P0 0 0.699 90 0 30.000282 2.1 20.5 10.255 #P1 0.596266 0.583566 0 0 0 0 0 0 #P2 0.492126 0.898527 0 0 -2.899839e-08 0.5 0 0 #P3 0 0 0 0 0 0 0 0 #P4 3.2757599e-08 0.401321 0.401321 0.401321 0 0 1 0.75 #P5 0.15 0.19 -0.41 0.98 0.28 0.3 -1.2 0.0325 #P6 -0.5675 0.6 -0.9 0.68 0.08 -0.25 -1.75 2.7 #P7 1.1430023 -24 1.14 0.5000635 0 0 0 0 #P8 0 8.4836169e-09 -5.2501905e-09 10.000564 -0.079375159 1 6.4 210 #P9 0 0 0 0 0 0 0 #X Filter unit status = 6 #N 9 #L Two Theta H K L Temp(C) Epoch Seconds I0-Monitor Monitor Detector -0.02 -0.00200207 2.47757e-05 0 58.8621 245 1 5710 16 4 -0.0195 -0.00195202 2.41478e-05 0 58.8635 246 1 5661 9 7 -0.019 -0.00190197 2.35203e-05 0 58.8621 248 1 5668 12 7 -0.0185 -0.00185192 2.28933e-05 0 58.8629 249 1 5652 6 4 -0.018 -0.00180186 2.22667e-05 0 58.8607 251 1 5644 16 4 -0.0175 -0.00175181 2.16405e-05 0 58.8621 252 1 5709 13 6 -0.017 -0.00170176 2.10148e-05 0 58.8604 254 1 5716 14 5 -0.0165 -0.00165171 2.03895e-05 0 58.8624 256 1 5708 14 11 -0.016 -0.00160166 1.97646e-05 0 58.8613 257 1 5702 13 6 -0.0155 -0.00155161 1.91402e-05 0 58.8637 259 1 5707 14 5 -0.015 -0.00150155 1.85162e-05 0 58.863 260 1 5690 21 5 #C Peak at 0.0005 is 5857 COM at 0.000635182 FWHM is 0.00242715 at 0.000662278 #C Sum = 32937 Ave.Mon./Time = 14.1728 Ave.Temp. = 58.8406C #C Temperature setpoint = 60 C #C Elapsed time: 2 minute 6 second #C Sun Mar 28 13:42:33 2010. Two Theta reset from 0.0005 to 0.
|
Pages: 1 Prev: Rotate histogram Next: for loop imread |