next up previous contents
Next: 27.1.3 An analysis of Up: 27.1 Convergence of meridians Previous: 27.1.1 fourfil

   
27.1.2 firfil

For the reasons given above, it may be desirable to filter the solution in polar latitudes. Option firfil uses multiple passes with a simple symmetric finite impulse response filter (Hamming 1977) to accomplish the filtering. Its advantage over fourier filtering with option fourfil is speed and there is also no ficticiously induced vertical velocity (described above) because the amount of filtering is not a function of strip size. The finite impluse filter is also designed to handle land points without the need for code to pull out the various strips as is needed for fourier filtering. Additionally, option firfil will not increase variance (and there is no introduction of negative values into a field that is all positive).

As with fourier filtering, the amount of filtering is a function of latitude and is controlled by the number of passes of the filter. The number of passes is arbitrairly given by


 \begin{displaymath}numflt = \frac{\cos{filter\_reflat\_s}}{\cstj}
\end{displaymath} (27.9)

where $filter\_reflat\_s$ is the southern reference latitude and numflt is the number of filter applications per prognostic variable per latitude and the $\cstj$ is the cosine of that latitude. If filtering in the northern hemisphere, then $filter\_reflat\_n$ would be used instead of $filter\_reflat\_s$. Variable  numflt is for T cell latitudes and there is a corresponding  numflu for the number of passes used for variables on U cell latitudes. Equation (27.9) is arbitrary and should be adjusted by the researcher to get the desired effect.

A finite impulse filter can be written as


\begin{displaymath}\tilde{\alpha}_i = \sum_{\ell=-M}^{M} c_\ell \alpha_{i+\ell}
\end{displaymath} (27.10)

and its transfer function is


\begin{displaymath}H(\omega) = c_\circ + 2\sum_{\ell=1}^{M}C_\ell\cos(\omega) \;\; for \; \omega=0 \; to\; \pi
\end{displaymath} (27.11)

A very simple one is used with M=1 and weights given by


\begin{displaymath}\tilde{\alpha}_i = \frac{1}{4}\alpha_{i-1} + \frac{1}{2}\alpha_i + \frac{1}{4}\alpha_{i+1}
\end{displaymath} (27.12)

The transfer function is


\begin{displaymath}H(\omega) = \frac{1}{2}(1+\cos(\omega))
\end{displaymath} (27.13)

The effect of multiple applications of this filter can be easily calculated. If the filter is applied numflt times then the transfer function is $H^{numflt}(\omega)$.

It is useful to demonstrate that the M=1 filter (a ``1-2-1'' filter) does not change the zonal mean of a field, so long as the zonal grid spacing is uniform and the field has cyclic symmetry, or the field satisfies the no-flux condition on the zonal land/ocean boundaries. For this purpose, consider the zonal sum of the filtered field

$\displaystyle \langle \tilde{\alpha} \rangle_{x}$ = $\displaystyle \sum_{i=2}^{imt-1} \tilde{\alpha}_i$  
  = $\displaystyle \sum_{i=2}^{imt-1}
(\frac{1}{4}\alpha_{i-1} + \frac{1}{2}\alpha_i + \frac{1}{4}\alpha_{i+1})$  
  = $\displaystyle \frac{1}{2}\sum_{i=2}^{imt-1} \alpha_i
+
\frac{1}{4}\sum_{i=2}^{imt-1} (\alpha_{i-1} + \alpha_{i+1}).$ (27.14)

The first term represents the zonal sum of the unfiltered field
$\displaystyle \langle \alpha \rangle_{x}
= \sum_{i=2}^{imt-1} \alpha_i.$     (27.15)

The other two terms are almost this zonal sum, except for some boundary points
$\displaystyle \sum_{i=2}^{imt-1} \alpha_{i-1}$ = $\displaystyle \sum_{i=1}^{imt-2} \alpha_{i}$  
  = $\displaystyle \alpha_{1}-\alpha_{imt-1} + \sum_{i=2}^{imt-1} \alpha_{i}$  
  = $\displaystyle \alpha_{1}-\alpha_{imt-1} + \langle \alpha \rangle_{x},$ (27.16)

and likewise
$\displaystyle \sum_{i=2}^{imt-1} \alpha_{i+1}$ = $\displaystyle \sum_{i=3}^{imt} \alpha_{i}$  
  = $\displaystyle -\alpha_{2}+\alpha_{imt} + \sum_{i=2}^{imt-1} \alpha_{i}$  
  = $\displaystyle -\alpha_{2}+\alpha_{imt} + \langle \alpha \rangle_{x}.$ (27.17)

Therefore, the zonal sum of the filtered field is given by
$\displaystyle \langle \tilde{\alpha} \rangle_{x}$ = $\displaystyle \langle \alpha \rangle_{x}
+ (\alpha_{1}-\alpha_{2}+\alpha_{imt}-\alpha_{imt-1}),$ (27.18)

and the zonal sum is unchanged if the unfiltered field satisfies the zonally cyclic conditions:
$\displaystyle \alpha_{1}$ = $\displaystyle \alpha_{imt-1}$ (27.19)
$\displaystyle \alpha_{imt}$ = $\displaystyle \alpha_{2},$ (27.20)

or if the field satisfies the no-flux condition on the zonal walls
$\displaystyle \alpha_{1}$ = $\displaystyle \alpha_{2}$ (27.21)
$\displaystyle \alpha_{imt}$ = $\displaystyle \alpha_{imt-1}.$ (27.22)


next up previous contents
Next: 27.1.3 An analysis of Up: 27.1 Convergence of meridians Previous: 27.1.1 fourfil
RC Pacanowski and SM Griffies, GFDL, Jan 2000