Generic routines have been developed for performing averages from a subgrid level to every subgrid/grid level encompassing it. Shown below is table of routines which may be called to perform this averaging for clumps or filters of subgrid units. Required arguments are the subgrid bounds for both levels in the hierarchy and the two data arrays for both levels in the hierarchy. Additional arguments are required for multi-level variables and for scaling quantities. Individual routines called by the interfaces shown in the table below are contained in module subgridAveMod (Section A.87).
Examples of their use can be found in module histFileMod (Section A.57), which calls many routines for updating history fields, and pft2colMod (Section A.79), which calls p2c to perform averages from PFT-level variables to column-level variables for water state and flux quantities.