cdfdefint −− perform definite integral over a dimension
cdfdefint dimension_name
Cdfdefint accepts a common data format file on the standard input and writes a modified file on the standard output. The modification consists of replacing each field depending on the dimension name listed on the command line by the definite integral of that field over the full domain of the dimension of interest. Field names remain the same, and regions with bad data are counted as having a value of zero in the integrand. Field dimensions are reduced by one by the process. Fields that don’t depend on the specified dimension are left unchanged.
If the index parameters for the dimension of interest are missing, the first two values of the index field are used to define the grid spacing. Non−uniform grid spacings specified by an index field yield incorrect answers.