#!/usr/bin/env python # coding: utf-8 # Goal: Import CMB data to usable numpy arrays for each angle. # In[ ]: #Import the raw data from your .dat file #Change the file name to your desired file Datetime, AIN0, AIN1, AIN2, AIN3, T1, T2, T3, T4, Power = np.loadtxt('4-8sky.dat',dtype='O', delimiter=',', skiprows=1, unpack=True) #Change the data types from strings to floats AIN0=AIN0.astype(np.float) #obsolete AIN1=AIN1.astype(np.float) #obsolete AIN2=AIN2.astype(np.float) #analog angle output (Need to convert) based on the formula you found AIN3=AIN3.astype(np.float) #obsolete T1=T1.astype(np.float) #Cold (K) T2=T2.astype(np.float) #Warm (K) T3=T3.astype(np.float) #Horn (K) T4=T4.astype(np.float) #LNB (K) Power=Power.astype(np.float) #Digital power (W) print('done') #just so you know it ran # Congratulations, you have imported your data to python arrays.