Implementation of Ian McHugh's CPD code:
 - copied code into qccpd.py
 - amended to read an OzFlux style control file
 - amended to read 1D and 3D netCDF files
 - various othger changes