CDF's are filled, but the magnetic coordinate calculation is wrong. Probably an issue with passing correct GPS coordinates to the program. Removed an old debugging line.