blimpy/calib_utils/calib_plots.py
def get_diff(dio_cross,feedtype,**kwargs):
    '''
    Returns ON-OFF for all Stokes parameters given a cross_pols noise diode measurement
    '''
    #Get Stokes parameters, frequencies, and time sample length
    obs = Waterfall(dio_cross,max_load=150)
    freqs = obs.populate_freqs()
    tsamp = obs.header['tsamp']
    data = obs.data
    obs = None

    I,Q,U,V = get_stokes(data,feedtype)

    #Fold noise diode data
    I_OFF,I_ON = foldcal(I,tsamp,**kwargs)
    Q_OFF,Q_ON = foldcal(Q,tsamp,**kwargs)
    U_OFF,U_ON = foldcal(U,tsamp,**kwargs)
    V_OFF,V_ON = foldcal(V,tsamp,**kwargs)

    #Do ON-OFF subtraction
    Idiff = I_ON-I_OFF
    Qdiff = Q_ON-Q_OFF
    Udiff = U_ON-U_OFF
    Vdiff = V_ON-V_OFF

    return Idiff,Qdiff,Udiff,Vdiff,freqs
def get_diff(dio_cross,feedtype,**kwargs):
    '''
    Returns ON-OFF for all Stokes parameters given a cross_pols noise diode measurement
    '''
    #Get Stokes parameters, frequencies, and time sample length
    obs = Waterfall(dio_cross,max_load=150)
    freqs = obs.populate_freqs()
    tsamp = obs.header['tsamp']
    data = obs.data
    obs = None

    I,Q,U,V = get_stokes(data,feedtype)

    #Fold noise diode data
    I_OFF,I_ON = foldcal(I,tsamp,**kwargs)
    Q_OFF,Q_ON = foldcal(Q,tsamp,**kwargs)
    U_OFF,U_ON = foldcal(U,tsamp,**kwargs)
    V_OFF,V_ON = foldcal(V,tsamp,**kwargs)

    #Do ON-OFF subtraction
    Idiff = I_ON-I_OFF
    Qdiff = Q_ON-Q_OFF
    Udiff = U_ON-U_OFF
    Vdiff = V_ON-V_OFF

    return Idiff,Qdiff,Udiff,Vdiff,freqs
def get_diff ( dio_cross , feedtype , * * kwargs ) : #Get Stokes parameters, frequencies, and time sample length obs = Waterfall ( dio_cross , max_load = 150 ) freqs = obs . populate_freqs ( ) tsamp = obs . header [ 'tsamp' ] data = obs . data obs = None I , Q , U , V = get_stokes ( data , feedtype ) #Fold noise diode data I_OFF , I_ON = foldcal ( I , tsamp , * * kwargs ) Q_OFF , Q_ON = foldcal ( Q , tsamp , * * kwargs ) U_OFF , U_ON = foldcal ( U , tsamp , * * kwargs ) V_OFF , V_ON = foldcal ( V , tsamp , * * kwargs ) #Do ON-OFF subtraction Idiff = I_ON - I_OFF Qdiff = Q_ON - Q_OFF Udiff = U_ON - U_OFF Vdiff = V_ON - V_OFF return Idiff , Qdiff , Udiff , Vdiff , freqs
Returns ON-OFF for all Stokes parameters given a cross_pols noise diode measurement
Returns ON - OFF for all Stokes parameters given a cross_pols noise diode measurement