Recent content by fortranuser

  1. F

    Fortran Problem on reading dataset with variable decimal places as it is using fortran

    hi gsal I carefully read to jtbell again and finally understood what you and he wants me to do. Thanks both of you.Problem is no more.
  2. F

    Fortran Problem on reading dataset with variable decimal places as it is using fortran

    hi jtbell, Thanks for writing me. I have written the program just to test which is as follow PROGRAM CHAR_ARRAY character(10):: data real::a read(*,*)data read(data,*)a print*,a END I gave 45.2 to data and output was 45.200001...
  3. F

    Fortran Problem on reading dataset with variable decimal places as it is using fortran

    Hi all, I have attached my text file(tab delimited). I am planning to read those dataset into real array of (30,38). The dataset has variable decimal places like 312.66, 0, 535.696 ,456122.758. With the following codes, READ(12,*)((X(I,J),I=1,30),J=1,38)...
  4. F

    Fortran [Fortran] problem on reading the csv file

    Hi, I have attached the screenshot of my terminal used in centos 6. For your information I use vi editor to write fortran program.
  5. F

    Fortran [Fortran] problem on reading the csv file

    Hi gsal.Thank you. I have saved the fortran code in csvread.f90 and csv filename is Relative. To compile , in terminal I have to write gfortran -o csvread.exe csvread.f90 To execute it ,in terminal I write as ./csvread.exe removing usage of input file (opening, reading from unit 15 and...
  6. F

    Fortran [Fortran] problem on reading the csv file

    In above program I found out 1 mistake . The file to be opened was Relative instead RELATIVE. Again on executing exe file i got error message . At line 9 of file csvread.f90 (unit = 15, file = 'Relative') Fortran runtime error: Bad integer for item 1 in list input Again I change code to...
  7. F

    Fortran [Fortran] problem on reading the csv file

    hi. I have a csv file name Relative which has 24 different data set containing characters as well as numbers. It looks like Date,Hour,Min (RH),Max (RH),Avg (RH) 2012-08-28,0,85.190,87.200,86.325 2012-08-28,1,85.390,88.570,86.775 With reference to one of the thread reply in this forum...
Back
Top