Data analysis with fortran/c or simulink

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
jameshowlett
Messages
1
Reaction score
0
Hello,

Lately i had my XPS measurements from my collegue. data files are .txt files and contains two column and thousends of rows of consequent measurements of same region. i mean

81.510 aa.bbb
...
...
91.870 cc.ddd
81.510 ee.fff
...
...
91.870 gg.hhh

the reason of consequent measurements is to increase statistics. the algorithm which i want to write; reads/follows the first column till 81.510 to 91.970, cuts the data from second column, and creates a txt file, then scans the whole data again, finds the second interval, cuts the data from second column, add to the first file which it wrote and takes the avarage of first and second data. as a result i want to take all consequent measurement results and take to avarages of all.

Because i did not used fortran since i graduated. that's why i don't know how to start. but i still remember basics...

I will be so glad if you can help and thanks in advance
 
Physics news on Phys.org
jameshowlett said:
Hello,

Lately i had my XPS measurements from my collegue. data files are .txt files and contains two column and thousends of rows of consequent measurements of same region. i mean

81.510 aa.bbb
...
...
91.870 cc.ddd
81.510 ee.fff
...
...
91.870 gg.hhh

the reason of consequent measurements is to increase statistics. the algorithm which i want to write; reads/follows the first column till 81.510 to 91.970, cuts the data from second column, and creates a txt file, then scans the whole data again, finds the second interval, cuts the data from second column, add to the first file which it wrote and takes the avarage of first and second data. as a result i want to take all consequent measurement results and take to avarages of all.

Because i did not used fortran since i graduated. that's why i don't know how to start. but i still remember basics...

I will be so glad if you can help and thanks in advance
Your description is pretty vague. Can you be more specific about what you're trying to do? There are several things you said that are unclear to me.
1) "reads/follows the first column till 81.510 to 91.970" - does this mean read the first group of numbers in the first column?
2) "cuts the data from second column" - does this mean ignore the values in the second column?
3) "takes the avarage of first and second data" - I don't see the purpose in this. You can have two sets of completely different numbers for which the averages of the two sets are equal. For example {1, 3, 5, 7} and {2, 2, 2, 2}. The average (mean) of each set is 2, but that doesn't tell you a whole lot about the two sets.
4) "and take to avarages of all" - what does this mean?