We have a model that outputs acid concentration data on a 2-dimensional grid in the form,
X,Y,HCl,HF,H2SO4,.... (Column headers)
1,1,0.4,0.8,0.8,.... (Data)
2,1,0.2,0.8,0.9,....
ETC.
We need to read HF data from this file. Unfortunately, depending upon the initial model setup, the number of acids modelled and column location of HF varies. Is there any easy way that we can find out which column HF is in and then read data from this column? I have not used Fortran since leaving university so am a little rusty I'm afraid.
Thanks in advance
X,Y,HCl,HF,H2SO4,.... (Column headers)
1,1,0.4,0.8,0.8,.... (Data)
2,1,0.2,0.8,0.9,....
ETC.
We need to read HF data from this file. Unfortunately, depending upon the initial model setup, the number of acids modelled and column location of HF varies. Is there any easy way that we can find out which column HF is in and then read data from this column? I have not used Fortran since leaving university so am a little rusty I'm afraid.
Thanks in advance