- #1
INTEGER NLINES, NVALUES
PARAMETER(NLINES=7,NVALUES=5)
REAL*8 VAL(NLINES,NVALUES)
OPEN(1,FILE='GUCU.TXT')
DO 5 I=1,NLINES
5 READ(1,*)(VAL(I,J),J=1,NVALUES)
DO 15 I=1,NLINES
15 WRITE(6,'(5F10.3)')(VAL(I,J),J=1,NVALUES)
STOP
END
0.1414607 2.1 12 0.9 0.175
1.607 10 39.2 0 0.255102
35 32 137 0.03990063 0.2335766
8.806 325 -999 0.8399166 -999
-999 -999 -999 0.9591094 -999
INTEGER NLINES, NVALUES
PARAMETER(NLINES=6,NVALUES=2)
CHARACTER*8 VAL(NLINES,NVALUES)
OPEN(1,FILE='CSV.DAT')
DO 5 I=1,NLINES
5 READ(1,*)(VAL(I,J),J=1,NVALUES)
DO 15 I=1,NLINES
15 WRITE(6,'(5A10)')(VAL(I,J),J=1,NVALUES)
STOP
END
A2332110 PLUVI
A2352020 PLUVI
A3301010 NIVAL
A3422010 PLUVI
A3792010 TRANS
A3832010 PLUVI
FORTRAN 77 (Formula Translation 1977) is a programming language commonly used for scientific and engineering applications. It is a high-level language that allows for efficient and accurate numerical computation.
MS Excel files often contain important data that needs to be processed and analyzed. By reading these files in FORTRAN 77, scientists can use the powerful capabilities of the language to extract and manipulate this data.
There are several ways to read MS Excel files in FORTRAN 77. One method is to use a library such as XL Fortran or ExcelFortran, which provide functions specifically designed for reading and writing Excel files. Another method is to use a converter tool to convert the Excel file into a format that can be read by FORTRAN 77, such as a CSV file.
FORTRAN 77 is a powerful programming language that offers a wide range of mathematical and scientific functions. By reading MS Excel files in FORTRAN 77, scientists can take advantage of these functions to perform complex calculations and analysis on their data. Additionally, FORTRAN 77 is a highly efficient language, making it ideal for working with large datasets.
One potential challenge is ensuring that the Excel file is formatted correctly for reading in FORTRAN 77. This may require some data manipulation or conversion beforehand. Additionally, some advanced features in newer versions of Excel may not be compatible with FORTRAN 77, so it is important to check for compatibility before attempting to read a file.