Modified from original to support ft neuromag data ds to raw.fif file