Theory, techniques and applications of in situ