Supplement 1. The R code for simulating 2-D data with known spectral exponents, sampling, and ANOVA estimation of β.
SynthesiseSpectra2DBetaDetection1000.r -- r code for generating 2D data and determining variance spectra repeatedly from subsamples (n = 1000)
The SynthesiseSpectra2DBetaDetection1000.r program uses r code to recover spectral exponents from 2D simulated data using repeated hierarchical analysis of variance over a range of nested spatial scales. The method for generating the simulated data using inverse Fourier transforms of 1/f β weighted random phases and numbers, and the returned β-values are given in Appendix B.