Recent content by Azorio

  1. A

    Fortran Figuring Out Missing Values in Fortran Array

    I am trying to figure out how to represent missing values in an array with a value I know won't be in there for example -99.9. A sample of my code, is below. The array "pro" has been read in from a data file of numeric values. I need the do loop range to stay fixed because other parts of the...
  2. A

    Fortran Reading and Displaying text file in Fortran

    I fixed the FORMAT statement in my code and got the data read and displayed correctly.
  3. A

    Fortran Reading and Displaying text file in Fortran

    Yes, I tried that see the post above you. No error in the program but the numerical data from the text file is not displaying for some reason. Here's what my code looks like now: PROGRAM testx IMPLICIT NONE CHARACTER(20) :: FileName INTEGER :: Count = 0, OpenStatus...
  4. A

    Fortran Reading and Displaying text file in Fortran

    Yes, where there were commas there are now spaces. So the file at the beginning looks like: 1948 8 1 0.02 89.0 71.0 1948 8 2 0.00 90.0 72.0 And so on... The 100 FORMAT statement reads space first so I took the "1X" out of the code in my last post. Then the next is "I4" since the year is a 4...
  5. A

    Fortran Reading and Displaying text file in Fortran

    Okay I changed the code around a bit. It compiles but the program itself is giving me an error: "STOP ***Input error***" I'm not sure how to fix this. PROGRAM testx IMPLICIT NONE CHARACTER(20) :: FileName INTEGER :: Count = 0, OpenStatus, InputStatus REAL :: Y, M...
  6. A

    Fortran Reading and Displaying text file in Fortran

    I am trying to read and display the content of a text file in Fotran 90 to make sure that fortran is interpreting the data correctly. Eventually I want to store the data in an array so I can calculate averages, but at the moment I am still working on getting the data displayed in Fortran. I've...
Back
Top