Fortran libraries and tools used in the COSMO project (CTM2016-79474-R, MINECO/FEDER, UE)
The code has been developed under Centos, using the GNU Fortran (GCC) 4.8.5 compiler and the Fortran 90 netcdf library version 4.3.3.1 and python version 3.6.3. It has been also tested in Ubuntu 16.04.3 LTS (xenial).
Purpose: Build a fortran utilities library and a Lagrangian trajectory integrator (COSMO Lagrangian Model). Requirements: Fortran compiler and the NetCDF F90 library version 4.3.X.X
To install the code, use:
$ git clone https://github.com/quimbp/cosmo.git
Edit the file make.inc and modify the paths of the installation folder $COSMO (Default: $(HOME)/cosmo), the fortran compiler (Default: gfortran), and the path to the NetCDF Fortran 90 modules and libraries (NF90_INC and NF90_LIB).
Then type,
$ make
If compilation succeeds, the COSMO Lagrangian Model will be located in $COSMO/bin/lagrangian
Type
$ $COSMO/bin/lagrangian --help
to obtain the list of options for running the model. A detailed User Documentation will be uploaded shortly.
Three utilities are currently available:
A visualization tool to visualize JSON files with lagrangian trajectories generated during the COSMO project. This tool allows simple selection of initial and final points and to remove undesired locations.
$ python3 cosmo-jason.py
A tool returning the initial position and the release date of a JSON lagrangian trajectory.
$ python3 release_point.py ../data/exp001.json
Opening file ../data/exp0001.json
1.4167 41.0002 2017-11-22T10:35:13
Using the option '-label' the corresponding option names required by the COSMO Lagrangian Model are included.
$ python3 release_point.py -label ../data/exp001.json
Opening file ../data/exp0001.json
-xo 1.4167 -yo 41.0002 -do 2017-11-22T10:35:13
A visualization tool to visualize ocean currents. It can load fields directly from operational providers or from Netcdf files. It can superimpose satellite SST data received by the HPRT station located in the Institut de Ciencies del Mar (ICM/CSIC) and lagrangian trajectories created by the COSMO Lagrangian Model or JSON files from field experiments.
$ python3 cosmo-view.py
A detailed User Documentation will be uploaded shortly.
- Joaquim Ballabrera (ICM/CSIC) E-mail: joaquim@icm.csic.es
This project is licensed under the MIT License - see the LICENSE file for details.
The COSMO project is funded by the Spanish Government Minstry of Economy and Competitivity (CTM2016-79474-R, MINECO/FEDER, UE). This work is the result of the collaboration of ICM-CSIC Research Team: Dr. Emilio García, Dr. Jordi Isern, Dr. Jordi Solé and Dr. José Antonio Jiménez.