<font face="Verdana, Arial, Helvetica" size="2">Michael Bietenholz updated #12546<br />
---------------------------------<br />
<br />
Don't understand CLCAL interpolation<br />
------------------------------------<br />
<br />
<div style="margin-left: 40px;">Ticket ID: 12546</div>
<div style="margin-left: 40px;">URL: <a href="https://help.nrao.edu/staff/index.php?/Tickets/Ticket/View/12546">https://help.nrao.edu/staff/index.php?/Tickets/Ticket/View/12546</a></div>
<div style="margin-left: 40px;">Name: Michael Bietenholz</div>
<div style="margin-left: 40px;">Email address: <a href="mailto:mbieten@yorku.ca">mbieten@yorku.ca</a></div>
<div style="margin-left: 40px;">Creator: User</div>
<div style="margin-left: 40px;">Department: AIPS Data Reduction</div>
<div style="margin-left: 40px;">Staff (Owner): -- Unassigned --</div>
<div style="margin-left: 40px;">Type: Issue</div>
<div style="margin-left: 40px;">Status: Open</div>
<div style="margin-left: 40px;">Priority: Default</div>
<div style="margin-left: 40px;">SLA: NRAO E2E</div>
<div style="margin-left: 40px;">Template group: Default</div>
<div style="margin-left: 40px;">Created: 08 August 2018 07:45 PM</div>
<div style="margin-left: 40px;">Updated: 08 August 2018 07:45 PM</div>
<div style="margin-left: 40px;">Reply due: 10 August 2018 07:45 PM (2d 0h 0m)</div>
<div style="margin-left: 40px;">Resolution due: 04 May 2021 12:00 AM (999d 4h 15m)</div>
<br />
<br />
<br />
I have a SN table with calibrator source entries at start & end.  I ran CLCAL to calibrate the intervening program source entries  using '2PT','FULL' and largely defaults otherwise (complete inputs below).  I expect that it would interpolate rate linearly, so the phase-vs-time slope should be changing linearly during the interpolated period.   As a test I used GAINV=1, which is an INDXR-generated CL table with all 0 phases & rates, and GAINU=9 - make a new CL table.   I attach CLCAL_phase.png which shows the resulting CL-table phase vs time, showing a phase-vs-time slope that changes non-linearly with time - contrary to my expectations.    The CL rates do behave the way I expect, ie. linearly interpolated between values at start and end. CL1 is plotted in yellow and CL9 in green.<br /><br />Another thing - possibly connected was this:  I ran CLCAL with CALSOURC=[calibrator=NRAO530], SOURCE=[program=SGRA],  OPCO='CALP'.  Since I'm only asking it to calibrate the SGRA entries, I expect that the NRAO530 (and other calibrator) entries in the CL table will remain unchanged.  This is not what happens (there are several calibrator sources, they are the  one shorter scans at the start and the three at the end) - which all seem to bet modified.<br /><br />Am I confused or is something funny going on here?<br /><br />Complete CLCAL inputs; I attach a tasav with the relevant tables in; 31DEC18 AIPS, midnight job yesterday.<br /><br />AIPS 1: CLCAL Task to manage SN and CL calibration tables<br />AIPS 1: Adverbs Values Comments<br />AIPS 1: ----------------------------------------------------------------<br />AIPS 1: INNAME 'BY144C' Input UV file name (name)<br />AIPS 1: INCLASS 'TASAV' Input UV file name (class)<br />AIPS 1: INSEQ 2 Input UV file name (seq. #)<br />AIPS 1: INDISK 5 Input UV file disk unit #<br />AIPS 1: SOURCES 'SGRA' Source list to calibrate<br />AIPS 1: *rest ' '<br />AIPS 1: SOUCODE ' ' Source "Cal codes"<br />AIPS 1: CALSOUR 'NRAO530' Cal sources for calibration<br />AIPS 1: *rest ' '<br />AIPS 1: QUAL -1 Source qualifier -1=>all<br />AIPS 1: CALCODE ' ' Calibrator code ' '=>all<br />AIPS 1: TIMERANG *all 0 Time range to calibrate<br />AIPS 1: SUBARRAY 0 Subarray, 0=>all,<br />AIPS 1: ANTENNAS *all 0 Antennas selected, 0=> all<br />AIPS 1: SELBAND -1 Bandwidth to select (kHz)<br />AIPS 1: SELFREQ -1 Frequency to select (MHz)<br />AIPS 1: FREQID -1 Freq. ID to select.<br />AIPS 1: OPCODE ' ' Operation 'MERG','CALI',<br />AIPS 1: 'CALP'; ' ' => 'CALP' ****<br />AIPS 1: INTERPOL ' ' Interpolation function,<br />AIPS 1: choices are: '2PT','SIMP',<br />AIPS 1: 'AMBG','CUBE','SELF','POLY',<br />AIPS 1: 'SELN'; see HELP for details<br />AIPS 1: CUTOFF 0 Interpolation limit in<br />AIPS 1: time (min); 0=> no limit.<br />AIPS 1: SAMPTYPE ' ' Smoothing function<br />AIPS 1: BPARM *all 0 Smoothing parameters<br />AIPS 1: ICUT 0.1 Cutoff for functional forms<br />AIPS 1: DOBLANK 0 Blanked value interpolation<br />AIPS 1: DOBTWEEN 1 > 0 -> smooth all sources<br />AIPS 1: together; else separate them<br />AIPS 1: SMOTYPE ' ' Data to smooth<br />AIPS 1: SNVER 8 Input SN table, 0=>all.<br />AIPS 1: INVERS 1 Upper SN table vers in a<br />AIPS 1: range. 0=>SNVER<br />AIPS 1: GAINVER 1 Input Cal table 0=>high<br />AIPS 1: GAINUSE 9 Output CAL table 0=>high+1<br />AIPS 1: REFANT 7 Reference antenna 0=>pick.<br />AIPS 1: BADDISK *all 0 Disks to avoid for scratch
<br />
<HR style="margin-bottom: 6px; height: 1px; BORDER: none; color: #cfcfcf; background-color: #cfcfcf;" />
Staff CP:  <a href="https://help.nrao.edu/staff" target="_blank">https://help.nrao.edu/staff</a><br />
</font>