<div dir="ltr">Hi Manikantan,<br><div class="gmail_extra"><br><div class="gmail_quote">On 20 February 2018 at 14:11, Manikantan Ramadas <span dir="ltr"><<a href="mailto:mramadas@gmail.com" target="_blank">mramadas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Adam,<div><br></div><div>Thanks for the response! Please find my replies inline.<br><div class="gmail_extra"><div class="gmail_quote"><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div></div></div>1.The delay in the fringeRotationVal should be T, not T'.<br></div><br></div></div></div></div></blockquote><div> </div></span><div> So, I should use the accurate delay value estimate T instead of the rounded-off value T'? OK can do. But my logic was that this error is what I am correcting in Fractional sample correction, and I should be doing fringe-rotation for the same delay d that I am using in delay-tracking of the other station's data stream.</div></div></div></div></div></blockquote><div><br></div><div>There are two corrections being made: delay and phase. Delay is made up of integer sample delay and fractional sample delay, to get to the ideal delay correction. Phase can be corrected exactly in one step with simply the ideal delay times the LO.</div><div><br></div><div>So fractional sample correction has nothing to do with fringe rotation (you would need to do it even if you had no frequency conversion, in which case no fringe rotation would be needed, but delay still would be).</div><div><br></div><div>If you were doing fringe rotation with the integer sample delay, you'd only ever be shifting the phase by multiples of 250ns * Vlo, which given your LO of 2300 MHz would always be an integer number of turns of phase, which means your fringe rotation is basically doing nothing and hence the fringe is entirely washed out.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><span class=""><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div></div><div>Also, fractional sample correction is normally done differently in a baseline based correlator, but the scheme you describe of going into the frequency domain, correcting, and then back should work (albeit somewhat computationally expensively). However, you have either a typo or an error in your equation: the phasor exponent should be -i*2*PI*channelfreq*Tfc, not -i*2*PI*Vlo*Tf. Channelfreq is the frequency of the channel, which would range from 0 to 4 MHz (for upper sideband data), -4 to 0 MHz (for lower sideband data), or -2 to 2 MHz (if this complex subband really has been mixed down to be centred on 0 Hz - see next point). So the frequency you are multiplying by is not fixed (otherwise what would be the point of going to the frequency domain?), it is a ramp across the band. If this is really an error and not a typo, then this is certainly destroying your fringes!</div></div></div></div></blockquote><div><br></div></span><div>This is a typo! I am using channelfreq as you have mentioned. This is a complex sub-band varying from -2 MHz to 2 MHz and centered at 0. In sky freq-range, our central channel is centred on 2.3 GHz varying from 2.298 GHz (-2MHz) to 2.302 (+2MHz). The channelfreq that I am using in fractional bit-shift correction is 0 for the central 2.3 GHz sub-channel, +2MHz at the upper-end of the band, -2 MHz at the lower-end of the band and channel freq steps of 4 MHz/64 in between range (FFT size is 64).</div><span class=""><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><br></div><div> Finally, Vlo (the local oscillator frequency) should be the signed sum of the
effective LO, which is likely at the edge of the 4 MHz band, not in the
middle. If you have this wrong, you'll then have a residual fringe rate of half your bandwidth, or 2 MHz
in this case.<br></div><div><br></div></div></div></div></div></blockquote></span><div>By "signed sum of the effective LO", you mean the LO values set at each stage if I am doing it at multiple stages, right? In this case, it is a single step conversion from RF to IF (70MHz). </div><div>In my complex sub-band (mixed to be centred at 0 Hz), I am using the central local oscillator frequency - 2.3 GHz (for my central channel). This is OK right? I am doing same way for other channels as well.</div></div></div></div></div></blockquote><div><br></div><div>Any implicit frequency conversion which is done by channelisation at the intermediate frequency counts towards to the LO sum. Imagine you're observing at 1500-1516 MHz, and you set the LO to be 1400 MHz. So your band of interest is now mixed down to 100-116 MHz. Now you sample it at 256 Msamples/s with a real sampler, giving you the range 0-128 MHz, and then you use a digital downconverter to bandpass filter and shift down the frequency range 100-116 MHz by 100 MHz, so your subband is now at 0-16 MHz. The signed sum of the LOs in this case would be 1400+100=1500 MHz.</div><div><br></div><div>If your digital downconversion from the IF really does center your band of interest on DC (so it has both positive and negative frequencies), then indeed the LO would be as you describe.</div><div><br></div><div>Cheers,</div><div>Adam<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><span class=""><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div></div><div>Don't worry about the interpolators in DiFX: they are just down-sampling the 5th order polynomial which is valid for 120 seconds to a 1st or 2nd order polynomial which is valid for of order a few microseconds, for computational efficiency.<br><br></div></div></div></div></div></blockquote></span><div>Thanks for clarifying that!</div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div></div>Note that autocorrelations are never really a great test, since they are insensitive to the phase, which is where almost every mistake is made :)<br></div></div></div></div></blockquote><div><br></div></span><div>Yeah, right! :-)</div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><br></div>2. The fractional bandwidth is irrelevant for fringe rotation: you can think of the chunk of spectrum as having been shifted in frequency by Vlo in the downconversion process. That holds true for every frequency within the downconverted subband: assuming upper sideband data, then the lowest band edge has been shifted down from Vlo Hz to 0 Hz, and the upper band edge has been shifted down from Vlo + B Hz to B Hz. Hence they've all been shifted by Vlo, and that single correction is good for all of the frequencies within the subband. <br><br></div></div></div></blockquote></span><div>OK!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>- Manikantan.</div><div><br></div></font></span></div><span class="">-- <br><div class="m_-7919418078445164378gmail_signature" data-smartmail="gmail_signature">"By being pleasant always and smiling, it takes you nearer to God, nearer than any prayer." - Sri Ramakrishna Paramahamsa<br>------------------------------<wbr>------------------------------<wbr>------</div>
</span></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr" style="font-size:12.8000001907349px"><div dir="ltr" style="font-size:12.8px"><div dir="ltr" style="font-size:12.8px"><div dir="ltr" style="font-size:12.8px"><div dir="ltr" style="font-size:12.8px">!=============================================================!<br>Dr. Adam Deller </div><div dir="ltr" style="font-size:12.8px">ARC Future Fellow, Senior Lecturer</div><div style="font-size:12.8px">Centre for Astrophysics & Supercomputing </div><div dir="ltr" style="font-size:12.8px">Swinburne University of Technology <br>John St, Hawthorn VIC 3122 Australia</div><div style="font-size:12.8px">phone: +61 3 9214 5307</div><div style="font-size:12.8px">fax: +61 3 9214 8797</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">office days (usually): Mon-Thu<br>!=============================================================!</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>