The atmospheric muon flux and charge ratio using a magnet spectrometer