From BAWiki

Revision as of 09:22, 3 February 2017 by imported>Lang Guenther (HDF Error added)

Basic Information

Name of Program



February 2017


February 2017


differences of synoptic data
differences of characteristic numbers
differences for extensive quantities
input data for Taylor diagram
median, percentiles (Q01, Q05, Q95, Q99)
parallelization using OpenMP

Acknowledgment: This project took advantage of netCDF software developed by UCAR/Unidata (

Short Description of Functionality

Program computes differences for comparable variables (primary variable pairs) as well as additional statistical data derived from primary differences, but also data for Taylor diagrams (details see Differences of Calculated Results) can be computed for some types of data. Finding the primary variable pairs is done in an essentially automatical manner but can be altered to some extent by the user (see ncdelta.dat). Primary differences are computed according to variant data minus reference data.

Requirements for time-dependent primary variable pairs:

  1. both data sets must contain an identical number of data items (time steps), with periods allowed to be different;
  2. for data sets with constant time step, the respective time steps must be identical.

Remarks concerning the spatial location of data:

  1. data sets may differ with respect to their geographical location;
  2. areas for which data are defined must overlap to some degree;
  3. coordinates may be given in different coordinate systems, e. g. Gauß-Krüger and UTM;
  4. data for a location are compared with data for the nearest lying location, as far as the distance between the different locations does not exceed a prescribed maximum (see ncdelta.dat).

Remarks concerning the comparison of extensive variables:

  1. for extensive variables the respective sizes of the computational cells (area, length) are taken into account.


  1. general input data (file type ncdelta.dat)
  2. reference data (file type CF-NETCDF.NC)
  3. variant data (file type CF-NETCDF.NC)


  1. results (file type CF-NETCDF.NC)
  2. (optional) informative printer file of program execution (file type ncdelta.sdr)
  3. (optional) trace of program execution (file type ncdelta.trc)


The program is subdivided into the following sections:

  1. read, check and print steering data prescribed by the user;
  2. read metadata for reference data;
  3. read metadata for variant data;
  4. copy metadata for reference as well as variant data to program specific data structures;
  5. compare metadata for substantial discrepancies (e. g. reference locations) between data sets;
  6. classify all reference as well as variant data;
  7. find primary variable pairs: each variant variable has one partner reference variable; primary computational results will be later derived from primary variable pairs;
  8. derive variables to be copied from reference as well as variant data file into the result file;
  9. compute interpolation matrices required for interpolation between reference data locations and variant data locations;
  10. create all metadata for the result file; essentially they stem from variables to be copied, from primary result variables, newly generated coordinate variables (time, vertical), as well as newly derived or to be copied measure and auxiliary variables;
  11. copy selceted variables from reference as well as variant file to the result file;
  12. compute all primary variables, (new) time and vertical coordinate variables, as well as weights and auxiliary variables.

Just in case HDF error is detected during read of a data record, the program tries to reconstruct the wanted data set from adjacent (in time) records for the same variable. This type of repair works for time dependent variables only.

Program(s) to run before this Program


Program(s) to run after this Program


Additional Information



Additional software


Original Version

G. Lang, S. Spohr


G. Lang, S. SPohr


back to Program Descriptions