In this LDRD we examine techniques to analyze the electromagnetic scattering from structures that are nearly periodic. Nearly periodic could mean that one of the structure's unit cells is different from all the others--a defect. It could also mean that the structure is truncated, or butted up against another periodic structure to form a seam. Straightforward electromagnetic analysis of these nearly periodic structures requires us to grid the entire structure, which would overwhelm today's computers and the computers in the foreseeable future. In this report we will examine various approximations that allow us to continue to exploit some aspects of the structure's periodicity and thereby reduce the number of unknowns required for analysis. W...