Fortran Data analysis with fortran/c or simulink

AI Thread Summary
The discussion revolves around the user's need to analyze XPS measurement data stored in .txt files, which consist of two columns with numerous rows of measurements. The user aims to develop an algorithm that processes the first column to identify specific numerical intervals (from 81.510 to 91.970), extracts corresponding values from the second column, and calculates averages for these measurements. The user expresses uncertainty about how to begin writing this algorithm due to a lack of recent experience with Fortran, despite recalling the basics. There is a request for clarification on the intended data processing steps, particularly regarding the extraction and averaging of data, as some aspects of the user's explanation are deemed vague and require further specification.
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
 
Technology 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?
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Replies
4
Views
2K
Replies
5
Views
2K
Replies
2
Views
4K
Replies
4
Views
13K
Replies
16
Views
5K
Replies
5
Views
3K
Back
Top