NLLS for ELNES example During this tutorial, we demonstrate how to use the non-linear least squares (NLLS) routine to map fine structures, such as energy loss near edge structure (ELNES).