A lattice modification function takes a lattice structure as input and outputs another lattice structure. An important routine within AT is atmatch. atmatch will create a new lattice structure based on target functions, parameters and constraints. This is really a combination of lattice calculation functions and lattice modfication functions, with iteration between the two until a target is reached.