The package traj

The package traj allows to determine the trajectories of an ensemble of air parcels. Using assimilated winds and temperatures derived from meteorological data (currently UKMO or ECMWF), both forward and backward can be calculated. The numerical integration is based on the 4th order Runge-Kutta schema.

Configuration file

The options for the execution of traj can be set in the configuration file traj.inp:

example1/pos_EXP_97032512.nc  ! Name of initial positions file
/dat_icg1/rad/example         ! Input directory
I3U                           ! Prefix of wind files
outdir                        ! Output directory
TRU                   ! Prefix for output file
24                    ! 1/2/3/4/6/8/12/24 -> Data every n hours 
y                     ! y/n - Backward/Forward trajectories 
y                     ! y/n - 3d(with theta_dot)/2d(without theta_dot) run
1                     ! eq. starts (a=0) diff. starts: a=1/2 same end/length
12 23 03 1997         ! Endtime(hh dd mm yy) for a=0/1, lenght (hrs) for a=2
1800                  ! First timestep in seconds
60                    ! Second timestep in seconds
0 1 0                 ! Writing frequency (minutes hours days) 
N.Thomas              ! user name
4                     ! number of output parameters
TEMP                  ! output parameters (one short name per line) 
PRESS                 ! possible parameters are: TEMP,PRESS,U,V,PV, and SZA
PV
SZA

Initial positions of air parcels

This file includes the starting positions of the trajectories (longitudes, latitudes and theta) and the corresponding starting times. To create it the package pos can be used. It has to be a file in NetCDF data format with the following variables:

The filename must correspond to the following format:

Meteorological data

The data files with meteorological data used by the trajectory program must contain the coordinate variables:

LAT and LON must build a regular grid.

Besides the files must include at least the four-dimensional data sets for the variables:

The filenames must correspond to the format: