Setup interface and ported GeoMag subroutines