GS 543 Computer Programming for Geosciences

Syllabus​

Development of algorithms and flowcharts. Basic elements of FORTRAN: variables, data types, declarations. Expressions: literals, characters and strings. Arithmetic operations, order of operations, intrinsic functions. Simple inputs and outputs, Input/output formats. Conditional expressions. Logical operations. If statements. Loops. Implementation, testing/debugging. File operations: open, read, write, close. Arrays: static and dynamic array declaration, accessing array elements; arrays of strings, multidimensional array declaration. Functions and subroutines. Derived data types: definition, declaration, arrays of derived data. Modules. Programming exercises in simple numerical analysis and in geoscience application areas. Brief overview of C language.

Texts/References

  • Metcalf,  M. and Reid, J., 1996, The F Programming language. Oxford University Press.
  • Rajaraman, V., 2004, Computer Programming in Fortran 90 and 95. Prentice-Hall of India Pvt. Ltd.
  • Brainerd, W. S., 2015, Guide to Fortran 2008 Programming. Springer-Verlag, London.
  • Chivers, I. and Sleightholme, J., 2015, Introduction to Programming with Fortran (With Coverage of Fortran 90, 95, 2003, 2008 and 77). Springer Publishers.
  • Kanetkar, Y. P., 2016, Let us C. BPB publications.