Reading a specific column from .csv into fortran

Click For Summary
SUMMARY

This discussion focuses on reading specific columns from a .csv file using Fortran. The user seeks to extract data from defined ranges, specifically from A1 to D20 and later from F1 to H35. The consensus is that all columns must be read initially, and then the desired columns can be selected. It is noted that only one of the selected columns needs to be stored as an array for further processing.

PREREQUISITES
  • Familiarity with Fortran programming language
  • Understanding of .csv file structure and data types
  • Knowledge of array manipulation in Fortran
  • Basic file I/O operations in Fortran
NEXT STEPS
  • Research Fortran file I/O functions for reading .csv files
  • Learn about array handling and manipulation in Fortran
  • Explore methods for selecting specific data from arrays in Fortran
  • Investigate libraries or tools that facilitate .csv parsing in Fortran
USEFUL FOR

This discussion is beneficial for Fortran developers, data analysts working with .csv files, and anyone interested in efficient data extraction techniques in Fortran.

rajith
Messages
1
Reaction score
0
Hi, I am using fortran to read specific columns from a .csv file. the rows in each columns are different, so I wish to read columns wise with a do loop. say, I wish to read from A1 to D20 initially(4 columns of 20 rows), then later f1 to h35 (3 columns, 35 rows). how do I read particular columns alone. thanks
 
Technology news on Phys.org
You have to read all columns and pick the one you want.
 
jedishrfu said:
You have to read all columns and pick the one you want.

True, but only one of them has to be an array.
 
  • Like
Likes   Reactions: jedishrfu

Similar threads

  • · Replies 14 ·
Replies
14
Views
7K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
22K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
7
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K