Scientific programming with Fortran


The goal of the course is to provide a hands-on introduction to computer programming focusing on solving the basic problems in data exploration, data analysis and data modelling. The students will be introduced to the Fortran 90 language and the GNU gfortran compiler. Emphasis will be placed on the use of libraries to read and save data in the NetCDF format. The course will also deal with the creation of personal libraries of procedures and their maintenance with the make utility and the creation of Makefile files.

Programme information: 

  • Introduction to Fortran and to the Netcdf format: Fortran variable types, precision, and array manipulation. Subroutines and Functions. Structure of a Netcdf file: dimensions, variables and attributes. Reading and creating Netcdf files. Creation of series of climate variability as ENSO and NAO from data fields.
  • Data exploration and analysis with Fortran using the time series created in class (or provided by the students). Calculating Percentiles. Robust and non-robust measures of range, central value and dispersion. Identification of outlayers. Decomposing the signal in periodic cycles, trends and anomalies. Estimation of the decorrelation times and effective number of degress of freedom. Calculation of power spectral densities.
  • Data modelling using the time series created in class or (or provided by the students). Adjusting probability density functions, linear and non-linear regression models, and calculation of Empirical Orthogonal Functions (EOF).

Number of hours: 





9:00-12:30 h 14:00-17:30 h


Institut de Ciències del Mar

Maximum number of places: 


Special requirements: 

Bring computer with a Fortran compiler installed. For computers using Linux, install the gfortan compiler. With computers using Windows, install cygwin (a linux-like environment), which allows installing the gfortran compiler.


Full price of this course is 510€. A reduced registration fee of 425€ is applied for early registrations (20 days before the opening of the course).

Price: 510.00€

Cancelation policies

Cancellations by attendants

To cancel a place that you have booked for a Barcelona Ocean course, a notice of cancellation must be sent via email to The following policies apply:
• If you cancel at least 3 months before the start of the course you will receive a full refund.
• If you cancel between 3 months and 1 month prior to the start of the course you will receive a full refund minus a 10% administration fee.
• If you cancel between 1 month and 10 working days prior to the start of the course you will receive a 50% refund.
• If you cancel less than 10 working days before the event you will not be entitled to a refund.
There will be no refund for non-attendance to the course.

Cancellations by Barcelona Ocean

Barcelona Ocean courses are constantly updated and, while we endeavour to deliver the courses as advertised, there may inevitably be occasions when we will have to change some of the course contents or one or more of the lecturers without prior notice or, in very exceptional circumstances, to cancel an event.
In the case of a complete course cancellation, attendants will either be offered an alternative date, a credit note or a full refund. Barcelona Ocean will not compensate for travel fees or any other expense incurred by you as a result of such cancellation. Every effort will be made to avoid the cancellation of any planned courses.

Connect with us

We're on Social Networks. Follow us & get in touch.

Contact us

For any inquiries, please contact us by phone or email at: