OCEE210 Computer Programming in Oceanography (Practical)

About the Course

This is a computer-based course to teach computer programming in Fortran. The objective of the course to develope the skill of writing computer programs for the processing of oceanographic data sets. The students does not require any previous knowledge in computer for learing this course.

Oceanographic data can be so huge so that it will be difficult to do various computations by hand. Hence the data has to be processed with the help of computer by the application of a programming language. In oceanography, Fortran has been used as the preferred programming language for oceanographic computations. Fortran is used in making mathematical models of ocean processes. A good skill in Fortran programming is essential to become a good oceanographer.

Faculty Saji P. K.
Credits 2
Hours/Week 6
Duration July-Nov
Nature of course General
Pre-requisites for other students No specific pre-requisites are required for this course. The student only have a positive mind towards solving mathematical problems by writing computer programs.

Syllabus
Variables, data and types, assignment statements, arithmetic statements, input and output
statements, FORMAT and pause statements

DO Loop, nested and implied DO loop, IF statement, nested block IF, computed GOTO
statements - Subscripted variables (arrays) - single and multidimensional arrays.

User-defined functions and subroutines - nesting of subprograms, COMMON and
EQUIVALENCE statements - file operations - reading from and writing to files - multiple
file operations

Oceanographic applications - processing profile data - quality control of temperature and
salinity data - interpolation - horizontal and vertical averages - processing time series and
global data.





Assessment

Method of Assessment

	Test-1			20 marks
	Test-2			20 marks
	Test-3			50 marks
	Record			10 marks (format sample)
	Class Performance 	

Marks

=================================================================================
Name	 		Test1	Test2	Test3	Record	Total
			(20)	(20)	(50)	(10)	(100)
=================================================================================









=================================================================================
- 75% of the third test mark will be considered as retest mark. Final mark is computed from the best three of four (test1, test2, test3 and retest) marks. - Practical Record must be submitted on or before 16-11-2016 4pm - Marks will be finalyzed on 16-11-2016 at 4pm.


Class Schedule
  1. Introduction
    • Why programming?
    • Why programming in Oceanography?
    • History of Fortran
    • Programming steps
    • Fortran compilers (77 and 90)
    • Coding rule (for Fortran 77)
    • Program structure
    • First Program: Print a text "Welcome to Fortran"

  2. Basics

  3. Logical (Control) Operations [ Tutorial ] [ Notes ]
    • IF-ENDIF
    • IF-ELSE-ENDIF
    • IF-ELSEIF-ENDIF
    • Alternative IF statement
    • Nested IF
    • Problems

  4. Iterative operations (loop) (Included with notes for Logical) [Tutorial ]
    • Application and importance of Loops
    • IF-GOTO loop
    • DO loop without limits
    • DO loop with limits
    • DO-WHILE loop
    • Problems

  5. Subscripted variables (arrays) (Notes)

  6. Subprogram [Notes-1 Notes-2 Notes-3 ]

    • Advantages of subprograms
    • Function Subprogram

    • Subroutine Subprogram

  7. File Operations
    • Opening files with OPEN statement. Options: unit, file, status, access, iostat
    • Close Statement
    • Reading from files
    • Writing output to files
    • Finding End-of-File with 'END" statement
    • Unopened files

  8. Oceanographic Computations
    1. Potential temperature
    2. Sound velocity
    3. Density of sea water
    4. Specific volume anomaly
    5. Freezing point temperature
    6. Specific heat capacity of sea water
    7. Salinity from conductivity ratio and vice versa