Data analysis with fortran/c or simulink

Click For Summary
SUMMARY

This discussion focuses on data analysis using Fortran or C for processing X-ray photoelectron spectroscopy (XPS) measurements stored in .txt files. The user aims to develop an algorithm that reads specific ranges of data from the first column, extracts corresponding values from the second column, and calculates averages from these measurements. Key challenges include clarifying the data extraction process and ensuring the algorithm accurately reflects the intended statistical analysis.

PREREQUISITES
  • Basic understanding of Fortran or C programming languages
  • Familiarity with data file manipulation, specifically .txt files
  • Knowledge of statistical concepts, particularly averaging
  • Experience with data parsing techniques
NEXT STEPS
  • Learn data file handling in Fortran, focusing on reading and writing .txt files
  • Study statistical functions in Fortran or C for calculating averages
  • Research data parsing techniques for extracting specific columns from text files
  • Explore algorithms for processing and analyzing time-series data
USEFUL FOR

This discussion is beneficial for researchers and analysts working with XPS data, programmers looking to enhance their skills in Fortran or C, and anyone involved in statistical data analysis and processing.

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?
 

Similar threads

Replies
7
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
13K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 16 ·
Replies
16
Views
5K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 8 ·
Replies
8
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K