cdfinterp -- interpolate a dimension on an irregular grid to a regular grid
cdfinterp dimension val0 dval nval
Cdfinterp expects a Candis file on the standard input. All variable fields are interpolated to a regular grid on the dimension mentioned on the command line. The grid values are given by val = val0 + dval*i, for i = 0, 1, ..., nval - 1. The existing index field for that dimension is replaced by a new one with the regular spacing. The index parameters are also replaced. Bad data values are written in space outside of the range of the original data, as well as where the original data are bad. The resulting Candis file is written to the standard output.