to compute the orientation of the best dipolar fit to the magnetic field. This determines the so-called geomagnetic North and South poles, which are antipodal by construction:
Also compute the positions of the magnetic North and South poles, which are the locations at which the magnetic lines are vertical. In general, they will not be antipodal points: