I calculate the geomagnetic field using IGRF model in Matlab. However, the output is in the NED coordinate frame and I want to tranform it into the Body frame.
I've searched everywhere and I cannot find any suitable Rotation Matrix to calculate the IGRF in Orbit or Body frame.
I have found a transformation matrix from NED to ECEF and ECI. So, if anyone knows how to go from ECEF/ECI to Orbital Frame, I would be on your debt :D