The DB System

The DB system is the collective name for the programs and supporting structures used to access and manipulate data formatted in CPD2 style

For solutions to common tasks see the FAQ.

Data in the DB system is exchanged in the form of records consisting of variables.

Data Access

Intensive Data Generation

Data Export

Secondary Data Interfaces

Comment System

Comments are arbitrary strings associated with an archive, type, and a time range. Most types are allowed to overlap. Non-overlapping comments for when data is (re)processed and passed are automatically generated.

Segmentation System

Segments are single line strings associated with a type and time range. Segments are non-overlapping.

Data Storage Interfaces

Editing and Correction System

Correction Chain

These programs are normally called by data.edit.corr but they can function as part of an external pipeline, provided they are called with the correct arguments.

Internal

These programs are not usable outside of being called by data.edit.get.

System Utilities

System synchronization

Found in $DB/bin/sync

Configuration Files

Configuration Directories

A configuration directory is a directory either in the default location, $DB/etc/$DIRECTORY or in the station specific one at $DB/etc/$STATION/$DIRECTORY. Where “$DIRECTORY” is one of the names below. The exact override behavior varies with the specific directory, but generally the files in the station specific one take precedence over those in the default.

R Programs

These are programs that interface with R.

  • cdf_plot - Generate a CDF plot for a single variable from one or more stations.
  • normal_stats - Generate normal distribution related statistics about variables from a single station.
  • quantile_stats - Generate quantile statistics for set of stations and variables.

See also the examples in /aer/prg/r/examples for programs that are not directly callable but can be copied and modified for other usage.

Other