Modular data is an important topic of study in rational conformal field theory, [10]. A modular datum defines finite dimensional representations of the modular group SL 2 (Z). The rows of a Fourier matrix in a modular datum are scaled to obtain an Allen matrix. In this paper we classify the non-homogenous Fourier matrices and non-homogenous Allen matrices up to rank 5. Also, we establish some results that are helpful in recognizing the C-algebras not arising from Allen matrices.