A method is described of constructing a homogeneous magnetic field with the aid of air-cored coils of semi-ellipsoidal geometry, for application in nuclear spectroscopy.