def get_diff(dio_cross,feedtype,**kwargs):
<EOL>obs = Waterfall(dio_cross,max_load=<NUM_LIT>)<EOL>freqs = obs.populate_freqs()<EOL>tsamp = obs.header['<STR_LIT>']<EOL>data = obs.data<EOL>obs = None<EOL>I,Q,U,V = get_stokes(data,feedtype)<EOL>I_OFF,I_ON = foldcal(I,tsamp,**kwargs)<EOL>Q_OFF,Q_ON = foldcal(Q,tsamp,**kwargs)<EOL>U_OFF,U_ON = foldcal(U,tsamp,**kwargs)<EOL>V_OFF,V_ON = foldcal(V,tsamp,**kwargs)<EOL>Idiff = I_ON-I_OFF<EOL>Qdiff = Q_ON-Q_OFF<EOL>Udiff = U_ON-U_OFF<EOL>Vdiff = V_ON-V_OFF<EOL>return Idiff,Qdiff,Udiff,Vdiff,freqs<EOL>
Returns ON-OFF for all Stokes parameters given a cross_pols noise diode measurement