# Software

## Spatial Spectral Code

- Royle, J.A., and C.K. Wikle, (2005). Efficient Statistical Mapping of Avian Count Data.
*Ecological and Environmental Statistics*,**12**, 225-243. - tst_dfft2d.R, Test program.
- dfft2d.R, Simple vectorization of 2d FFT.
- maternspec2d.R, Calculates analytical Matern spectral density and matches the vectorization in
**dttf2d.R**

As indicated in the above paper, the following R code can implement the FFT spectral Matern functions. The authors make no claim as to the accuracy of this code and do not claim that it is convenient for general use. The program "tst_dfft2d.R" is a simple test program that illustrates how to use the program "dfft2d.R" and "maternspec2d.R". For details, see the paper.