Obtaining magnetization orientation from magneto-resistance
Magnetism is a fascinating subject, not in terms of the science and understanding of it, but in terms of the application it has unfolded in the recent years. With the discovery of the Giant Magnetoresistance effect, which led to the birth of spintronics, technology around us has changed drastically and rapidly. Data storage has transformed from bulky HDD s to more recent MRAMS, and DRAMS.
Spintronics which means the field of study on spin dependent magnetism phenomena, has done great invaluable impacts not only to the storage industry but to the communication industry as well. I will try to post more articles about the history of spintronics and their practical implications in another post .
As such, it can be realized that it is very much necessary to understand the process of the magnetization change in order to have any product designed out of it. One such tool to probe the magnetic property of a material is by performing a magneto resistance measurement of the material.
However the measured magneto-resistance is obtained in units of resistance (ohms) and therefore it becomes necessary to extract the magnetization angles from the resistance to understand a quantitative magnetization switching process. In this post, I have included a code, which converts the measured transverse anisotropic magneto resistance into magnetization angle with respect to the  crystal axes.
It is quite useful to have the AMR in terms of magnetization angle, because we can then explain the path of the reversal process, and design materials to alter or control the magnetization.
Find the code here:
GitHub link. for the code.