Skip to content

Join config ( jc)

Thomas Nipen edited this page Dec 17, 2019 · 4 revisions

A more flexible way to specify which grid points and variables to use in the joining, you can use the -jc option:

wxgen sim -db db.nc -n 21 -t 365 -o j2.nc -jc points.txt

This takes a filename (points.txt) as input, which is where the gridpoint/variables are defined. The file is semicolon separated, and contains a header row followed by a set of join points:

lat;lon;variable;weight
60;10;air_temperature_2m;1
60;5;surface_air_pressure;0.005

This file specifies two join points, one using temperature for the point (60,10) and one using surface air pressure at (60,5). Their weights are also specified. If the weight column is omitted, then all weights are set to 1.