<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ovsa.njit.edu//wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ychai</id>
	<title>EOVSA Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://ovsa.njit.edu//wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ychai"/>
	<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php/Special:Contributions/Ychai"/>
	<updated>2026-04-06T11:03:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.38.1</generator>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Trouble_Shooting_Guide&amp;diff=4486</id>
		<title>Trouble Shooting Guide</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Trouble_Shooting_Guide&amp;diff=4486"/>
		<updated>2019-07-04T14:49:57Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a trouble shooting guide for tohbans monitoring EOVSA remotely using MobaXterm and VNC Viewer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font size=&amp;quot;5&amp;quot;&amp;gt;'''&amp;lt;General checklist for solar observation&amp;gt;'''&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1. Check [http://ovsa.njit.edu/EOVSA/ant_status.php Antenna Status Page] to see if any antenna is under work.&lt;br /&gt;
&lt;br /&gt;
2. In Schedule window, click &amp;quot;Today&amp;quot;, &amp;quot;File&amp;quot;, choose &amp;quot;Save&amp;quot; (overwrite if prompted), and &amp;quot;Go&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;'''Since Feb. 2017, the schedule setup is slightly different.''' Do the following:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.1. Load 'solar.scd' and hit Today. Save it (overwrite if prompted).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.2. Open 'solar_plus3c84_Feb2017.scd' in Texteditor (in ~/Dropbox/PythonCode/Current folder).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.3. Update the sunrise and the sunset time according to the solar.scd file that you just updated.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.4. Update the PHASECAL (and refcal, which is 1-hr PHASECAL, if necessary) times by '''subtracting''' 4 minutes from each scan (to account for the day-to-day sidereal time shift of each calibrator source). Shift the times of previous and next lines (usually ACQUIRE and SUN) accordingly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.5. Save the updated 'solar_plus3c84_Feb2017.scd'. Don't forget to update the DATE as well.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.6. Load the updated 'solar_plus3c84_Feb2017.scd' and hit Go.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. '''Antenna Tracking''' - are all antenna tracking (in white color)?&lt;br /&gt;
&lt;br /&gt;
4. '''Frequency Tuning''' - LO1A Sweep Status = &amp;quot;Sweeping&amp;quot;, FSeqFile = FSEQ-FILE on the schedule, ErrorMsg = &amp;quot;No error&amp;quot;&lt;br /&gt;
&lt;br /&gt;
5. '''Phase Tracking''' - &amp;quot;ON&amp;quot;&lt;br /&gt;
&lt;br /&gt;
6. '''Power and Attenuation''' - Are all dBm on both H- and V- Channels within the second and third numbers shown in &amp;quot;AGC&amp;quot; on the schedule window? You can also see '''SaveList''' hpol and vpol to check this.&lt;br /&gt;
&lt;br /&gt;
7. '''Temps''' - no fluctuation?&lt;br /&gt;
&lt;br /&gt;
8. '''CryoRX''' - this is for antenna 14 control system. If it is down (Eg: FEMA Outlets &amp;amp; Receiver Voltage/Current values are zero and status is OFF), then issue the command 'ctlgo' in the terminal.&lt;br /&gt;
&lt;br /&gt;
9. Make sure that [http://ovsa.njit.edu/EOVSA/status.php EOVSA Observing Status Page] is being updated and that the data is being recorded. You can check if the data is recorded by typing &amp;quot;ls /data1/IDB |tail&amp;quot; in DPP terminal too.&lt;br /&gt;
&lt;br /&gt;
10. STOW antennas at the end of the observation, if needed (see [http://www.ovsa.njit.edu/wiki/index.php/Trouble_Shooting_Guide#Antenna_does_not_stow_.28Ant_10.29 possible problem with Ant 10])&lt;br /&gt;
&lt;br /&gt;
11. Checking the PHASECAL plots [http://ovsa.njit.edu/phasecal/ PHASECAL plot page], if you notice any unusual noisy data on ants 9, 10, 11 or 13, generally it means the antenna did not stow properly on a previous occasion, so you should issue the commands (for example with ant 13): &lt;br /&gt;
step 1: stop ant13&lt;br /&gt;
&lt;br /&gt;
step 2: stow ant13 (wait for it to completely stow--repeat steps 1 and 2 if it seems like it is not stowing after 5 minutes or so)&lt;br /&gt;
&lt;br /&gt;
step 3: track ant13&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt; New! &amp;lt;/span&amp;gt; 12. After the day's observation is over, take a look at the results of all PHASECAL by going to [http://ovsa.njit.edu/phasecal/ PHASECAL plot page]. Note any scan that didn't go well '''without''' the effect of WINDSCRAM (if it was under WINDSCRAM then the data points would appear in red). Record your comments on them in tohban log at [http://ovsa.njit.edu/dev/tohban/ EOVSA tohban log page]. Log other activities during your duty.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt; New! &amp;lt;/span&amp;gt; 13. Do the reference gain calibration analysis by following the procedures explained in [http://www.ovsa.njit.edu/wiki/index.php/Reference_Gain_Calibration Reference Gain Calibration] '''by 1 pm on the next day'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt; New! &amp;lt;/span&amp;gt; 14. Run the following commands to produce daily spectrogram which will be uploaded to RHESSI browser.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import read_idb as ri&lt;br /&gt;
from util import Time&lt;br /&gt;
#To produce the spectrogram for 2017-08-14 on 2017-08-15&lt;br /&gt;
out = ri.allday_udb(t=Time('2017-08-14'),gain_corr=True,savfig=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule window ==&lt;br /&gt;
&lt;br /&gt;
=== 1.1 I accidentally closed the schedule ===&lt;br /&gt;
&lt;br /&gt;
1. Click &amp;quot;Schedule&amp;quot; (on the left task bar) '''just once'''.&lt;br /&gt;
&lt;br /&gt;
2. Click &amp;quot;Today&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== “Error: Could not write stateframe to SQL” ===&lt;br /&gt;
&lt;br /&gt;
1. hit STOP on the schedule&lt;br /&gt;
&lt;br /&gt;
2. type $scan-stop in Raw Command window (to stop the data recording)&lt;br /&gt;
&lt;br /&gt;
3. close the schedule (exit out of it)&lt;br /&gt;
&lt;br /&gt;
4. restart the program (by clicking on the icon at the left)&lt;br /&gt;
&lt;br /&gt;
5. hit GO to start the observation again&lt;br /&gt;
&lt;br /&gt;
=== Schedule window is frozen ===&lt;br /&gt;
&lt;br /&gt;
1. Close the old one using command 'kill -9 #', where # is the number found by typing '''ps -elf | grep schedule.py''' in sched@helios (the number is at the fourth column from the left).&lt;br /&gt;
&lt;br /&gt;
2. Click &amp;quot;Schedule&amp;quot; (on the left task bar) '''just once'''.&lt;br /&gt;
&lt;br /&gt;
3. Make sure you load the correct schedule and hit &amp;quot;Go&amp;quot;. Double-check everything in the system, and that data files are created.&lt;br /&gt;
&lt;br /&gt;
== Stateframe ==&lt;br /&gt;
&lt;br /&gt;
=== Stateframe is frozen ===&lt;br /&gt;
&lt;br /&gt;
1. Close the old one using command 'kill -2 #', where # is the number followed by My PID on the right corner of the StateFrame, in the terminal of sched@helios. If you have accidentally closed the StateFrame without noting the PID, you can get it by typing '''ps -elf | grep sf_display''' in sched@helios, and looking at the number indicated in the '''fourth column from the left''' on the line that ends with &amp;quot;python /common/python/current/sf_display.py&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. Open a new Stateframe from the menu on the left ('sf_display')&lt;br /&gt;
&lt;br /&gt;
3. Check the log box of the new stateframe&lt;br /&gt;
&lt;br /&gt;
=== “ACC down?” ===&lt;br /&gt;
&lt;br /&gt;
1. Open pdudigital.solar.pvt on web browser&lt;br /&gt;
&lt;br /&gt;
2. Go to “Actions”&lt;br /&gt;
&lt;br /&gt;
3. Go to “Loads” (on the left)&lt;br /&gt;
&lt;br /&gt;
4. Click item 14 (ACC)&lt;br /&gt;
&lt;br /&gt;
5. Hit “Cycle” and “Ok” when prompted&lt;br /&gt;
&lt;br /&gt;
After rebooting, if Stateframe hangs up &amp;amp; does not respond, open a new Stateframe and give &amp;quot;kill ##&amp;quot; (## = “My PID” on the upper right corner of frozen Stateframe) command to sched@helios.solar.pvt server.&lt;br /&gt;
&lt;br /&gt;
=== ACC Restart ===&lt;br /&gt;
&lt;br /&gt;
After the above procedure, or any time the ACC reboots, it loads from its own disk and this appears to cause glitches in the recorded data due to some synchronization problem.  For some reason not understood, the glitches go away when the ACC is loaded from the win computer.  To do this, &lt;br /&gt;
* Start LabVIEW on the win computer if it is not already open, and click on EOVSA-LabVIEW 2015.lvproj (this may already be open).  &lt;br /&gt;
* In the new Project Explorer window, under Targets, expand the acc item and right click on acc, then choose Connect from the drop down menu.&lt;br /&gt;
* After connecting, click on ACC Master.vi and select Apply.&lt;br /&gt;
* Now under the Startup folder in the Project Explorer, right-click ACC Master.vi and select Run.&lt;br /&gt;
* In the window that pops up, start it (by selecting the white arrow at the top of the window)&lt;br /&gt;
* After it starts successfully, right click on acc in the Project Explorer and choose Disconnect.&lt;br /&gt;
* Now you can close the ACC Master.vi window&lt;br /&gt;
&lt;br /&gt;
Note: Rebooting the ACC kills the dppxmp program, so you need to rmlock on the DPP to allow it to run again.  It also kills the sf_display, see above.&lt;br /&gt;
&lt;br /&gt;
=== CryoRX tab - Status are OFF, all values are zeroes (Checklist #7 is false)===&lt;br /&gt;
&lt;br /&gt;
What you should be seeing is that FEMA Outlets and Receiver Voltages/Currents are all zeroes, and Status are all OFF (except for Noise Diode, and RFSwitch when using low frequency receiver). This means that the control system for receiver has died. You would still see that antennas are tracking fine and data is recorded, and it doesn't mean that these data are &amp;quot;wrong&amp;quot; or &amp;quot;unusable&amp;quot;. They have to be ON and non-zeroes whenever you want to change receiver setting or modify attenuation setting, which sometimes happens during the observation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;del&amp;gt;To reboot, execute &amp;quot;starburstControl start&amp;quot; in antctl@feanta server (ssh connect from helios, if disconnected).&amp;lt;/del&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;12/18/2016&amp;gt; To reboot, just type &amp;quot;ctlgo&amp;quot; in a terminal window on helios in VNC Viewer (you may have to stop the schedule). If for any reason you want to stop the control system, type &amp;quot;ctlstop&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Antenna(s) down ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;'''Don’t forget to check the [http://ovsa.njit.edu/EOVSA/ant_status.php Antenna Status page] before considering to “fix” any of the antennas!!'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Symptoms: Not tracking, showing ‘AT STOW’ or other unwanted coordinates, both AZ and EL permits ON or only EL permit ON, or Axis Lock is ON&lt;br /&gt;
&lt;br /&gt;
Please be noted that the old antennas don't have power controller so $pcycle command won't work on them.&lt;br /&gt;
&lt;br /&gt;
1. Ant 9, 10, 11, 13 could be in this state early in the schedule because they just can't move to commanded position (out of declination limit). In this case, you just have to wait a while (~few hours?)&lt;br /&gt;
&lt;br /&gt;
2. In cold morning, large spike in the current may cause large position error in AT STOW state. &lt;br /&gt;
&lt;br /&gt;
3. Proceed if neither #1 nor #2 is the case. If only AZ permit is ON (the first column), try &amp;quot;reboot 1 ant2&amp;quot; for rebooting ant2, for example.&lt;br /&gt;
&lt;br /&gt;
4. If both AZ and EL permit is ON (the second column) or only EL permit is ON, then give command &amp;quot;$pcycle ant2&amp;quot; for resetting antenna 2. This switches OFF the power to antenna for 15 seconds and switches ON. In Communication tab, Ant 2 line will go red. Wait till it becomes white. If it does not become white, then try &amp;quot;sync ant2&amp;quot;. If cRIO does not respond to this, it may be in “safe mode”, in which case you can type &amp;quot;$pcycle crio ant2&amp;quot; and it will cycle the power on the cRIO. &amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;Note that cRIO takes at least 2 minutes to reboot and come back online.&amp;lt;/span&amp;gt; If this sequence does not work, you may try $pcycle again, &amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;but keep in mind that this command in general should only be used when needed (i.e. discouraged if it can be avoided), to save wear and tear on the components.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Give &amp;quot;tracktable [the current tracktable ***.radec] ant2&amp;quot; and &amp;quot;track ant2&amp;quot; to initiate the tracking. If this does not work, look for temperature to raise (if temperature is low).&lt;br /&gt;
&lt;br /&gt;
6. If any antenna's communication is down (pwr shows off in communication), you can issue &amp;quot;$pcycle crio ant#&amp;quot; in raw command, then follow the routine described in 4 and 5.&lt;br /&gt;
&lt;br /&gt;
=== Ant14's cRIO's &amp;quot;Ant&amp;quot; value (last column) is showing negative value ===&lt;br /&gt;
&lt;br /&gt;
What you may see is that ant14's cRIO's &amp;quot;Ant&amp;quot; value (the very last column) showing negative value (not necessarily the extremely large value like you see for some antennas that are down, but some random number with negative sign). When you observe this, go to &amp;quot;ant14.solar.pvt&amp;quot; on web browser and see if it says in red &amp;quot;Slot1 - Maths error&amp;quot; on the left side. It is believed to occur when the controller is interpolating coordinates for the last-entered track table, and the calculation blows up (i.e. pcal_tab.radec file would have had a day change in it when it was not supposed to).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;This should not happen beyond 12/18/2016, but if you observe it beyond this date, '''report to Dr. Gary''', and proceed to do the followings:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1. In &amp;quot;ant14.solar.pvt&amp;quot;, go to &amp;quot;Log-in&amp;quot; and log-in (if you need ID/PW, ask Dr. Gary or Natsuha.)&lt;br /&gt;
&lt;br /&gt;
2. Click &amp;quot;Parameters&amp;quot;, then select &amp;quot;#10 - Status And Trips&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
3. Choose &amp;quot;#10.00&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
4. Enter &amp;quot;1070&amp;quot; to &amp;quot;Update values&amp;quot;, and hit &amp;quot;change&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
5. Go to 'parameter drop down' tab under the 'menu' tab, and choose &amp;quot;#38 - User Trip&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
6. Enter &amp;quot;100&amp;quot; to &amp;quot;Update values&amp;quot;, and hit &amp;quot;change&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This is supposed to reset the controller. Watch for cRIO's Ant value changes to positive values. &amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;Take note on the time you did this procedure, and report it to Dr. Gary.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== BRIGHTSCRAM ===&lt;br /&gt;
&lt;br /&gt;
Find out which antenna is experiencing this by looking at [http://ovsa.njit.edu/fits/images/ FITS image files]. BRIGHTSCRAM should appear as data-gap like features on the dynamics spectra. &amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;If more than two antennas are having BRIGHTSCRAM, then ALL antennas show BRIGHTSCRAM.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Wait for a while (~10 min) to see if it automatically goes away. After it goes away, give &amp;quot;tracktable [the current tracktable ***.radec] ant#&amp;quot; and &amp;quot;track ant#&amp;quot; to initiate the tracking.&lt;br /&gt;
&lt;br /&gt;
=== Frequency Tuning's Sweep Status is “stopped” or &amp;quot;Queue overflow&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
1. Try &amp;quot;Stop&amp;quot; and &amp;quot;Go&amp;quot; the schedule.&lt;br /&gt;
&lt;br /&gt;
2. If #1 does not work, try &amp;quot;lo1a-reboot&amp;quot; in Raw command window&lt;br /&gt;
&lt;br /&gt;
3. After the previous command, enter the following raw commands, or simply stop and restart the schedule (which will send the commands for you):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fseq-off&lt;br /&gt;
fseq-init&lt;br /&gt;
fseq-file [the current frequency receiver setting ***.fsq] (should be in the right side of the schedule window, like solarhi.fsq)&lt;br /&gt;
fseq-on&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Temperature is fluctuating too much ===&lt;br /&gt;
&lt;br /&gt;
Try rebooting the temperature controller by typing &amp;quot;tec$bc ant2&amp;quot; for ant2, for example (tec =&amp;gt; Thermo-Electric Controller).&lt;br /&gt;
&lt;br /&gt;
=== nd-on is on (Attenuation) ===&lt;br /&gt;
&lt;br /&gt;
Send &amp;quot;nd-off ant#&amp;quot; raw command to turn off the local noise diode. &lt;br /&gt;
 &lt;br /&gt;
[[File:2016-04-13_hpol.png|thumb|upright=2.0|'''Figure 1:''' Example of the oscillation from unbalanced attenuation for ant 12 (orange).]]&lt;br /&gt;
&lt;br /&gt;
[[File:2016-04-15_hpol.png|thumb|upright=2.0|'''Figure 2:''' Example of the oscillation from unbalanced attenuation for ant 2 (red) and 5 (cyan).]]&lt;br /&gt;
&lt;br /&gt;
=== hpol/vpol plot (Savelist) is showing unusual oscillating behavior ===&lt;br /&gt;
&lt;br /&gt;
What you should see is the dBm values of the antenna fluctuating very violently like in '''Figure 1''' and '''2'''. Notice that the amplitude of the fluctuation is ~3 dB, which was one FEMATTN step (at this date). This happens when hattn/vattn settings of the antenna get changed somehow and two polarizations get very unbalanced. The result is that the automatic gain control is not being able to find a happy level for both at the same time, and went into an oscillation. To calm it down, first issue the commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;femauto-off ant#&lt;br /&gt;
hattn 0 0 ant#&lt;br /&gt;
vattn 0 0 ant#&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which turns off the automatic gain control. '''If the antenna is on the Sun, temporarily move it off the Sun using''' &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
radecoff 0 10 ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
With the antenna off the Sun, set the hattn and vattn settings until both power levels are around 3 dB, i.e.:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hattn 0 12 ant#&lt;br /&gt;
vattn 0 11 ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where the choice of attenuations (12 and 11 in this example) are those that set the power level close to 3 dB. Finally, turn the gain control back on, with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
femauto-on ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you issued the radecoff command, be sure to remove it with'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
radecoff 0 0 ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;If the fluctuation is within one FEMATTN step (2 dB as of 12/12/16, check [http://www.ovsa.njit.edu/wiki/index.php/Schedule_Commands#FEMATTN_level_.5Bantennalist.5D Schedule Command - FEMATTN level]), the cause might be just interference. In this case, leave it for a while and see if the oscillation goes away.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Antenna does not stow (Ant 10) ===&lt;br /&gt;
&lt;br /&gt;
This mostly seems to happen on Ant 10 (as of ~July 2017). The symptom is that Ant 10 keeps staying at &amp;quot;TO STOW&amp;quot; status while all other (old) antennas are AT STOW already at the end of the observation. You might have tried the command &amp;quot;stow ant10&amp;quot;, but it did not change the status. If this continues for more than a minute or so, it is likely that the antenna is running into a limit, and cannot be stowed properly with just &amp;quot;stow ant10&amp;quot; command (you also cannot trust if it does go to STOW by itself much later). To properly stow the antenna, '''issue &amp;quot;stop ant10&amp;quot; first''', then do &amp;quot;stow ant10&amp;quot;. You may need to do this multiple times. If you don't properly stow the antenna this way, it may not start tracking automatically next morning, and you will miss the data from this antenna.&lt;br /&gt;
&lt;br /&gt;
=== Antenna tab is blank and an attempt to switch to it causes the Stateframe to freeze ===&lt;br /&gt;
&lt;br /&gt;
This occurred around early June of 2017. The cause turned out to be a change in numpy behavior. Dr. Gary updated the numpy at some point and a subtle difference caused it. This means that we should think about software upgrade as one of the causes of malfunctions of our system sometimes.&lt;br /&gt;
&lt;br /&gt;
=== Antenna shows (Lo or Hi) Hard limit and does not track ===&lt;br /&gt;
&lt;br /&gt;
If a hard limit of any azel antenna (1-8 or 12) is ON, follow this procedure into the Raw Command window of the schedule (with no typos).&lt;br /&gt;
&lt;br /&gt;
1. Make sure that other antennas are tracking a source and that no source changes are coming up within the next minute or so.&lt;br /&gt;
&lt;br /&gt;
2. Put antenna in velocity mode with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
runmode 2 ant#  (e.g for antenna 6, use &amp;quot;runmode 2 ant6&amp;quot;)   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be sure to specify the antenna, otherwise ALL antennas will move. &lt;br /&gt;
&lt;br /&gt;
3. Drive the antenna OFF the limit in velocity mode.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;axis&amp;gt;velocity &amp;lt;speed&amp;gt; ant# (e.g &amp;quot;azimuthvelocity 5000 ant6&amp;quot; for which antenna 6 begins to move in azimuth, to drive off the Lo limit)  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If the limit is on the azimuth axis, set &amp;lt;axis&amp;gt;velocity as &amp;quot;azimuthvelocity&amp;quot;.  If the limit is on the elevation axis, set &amp;lt;axis&amp;gt;velocity as &amp;quot;elevationvelocity&amp;quot;.&lt;br /&gt;
To drive off a low limit, use a positive velocity 5000.  To drive off a high limit, use a negative velocity -5000. Units are 1/10000th of a deg/s, so 5000 means 0.5 deg/s.&lt;br /&gt;
  &lt;br /&gt;
4. After the limit is off, set the velocity back to zero.&lt;br /&gt;
&lt;br /&gt;
Wait for up to ~10-30 s, until the Hard Limit indicator goes OFF (on the antenna tab). &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;axis&amp;gt;velocity 0 ant# (e.g &amp;quot;azimuthvelocity 0 ant6&amp;quot; for which antenna 6 stops moving) &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Bring antenna to track.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
track ant# (e.g &amp;quot;track ant6&amp;quot; for which antenna 6 resumes normal slew to target and starts tracking)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the Lo Hard Limit indicator does not go OFF after 30 s, go ahead with commands 4 and 5 (although tracking will not work) and let Dr. Gary know about it.&lt;br /&gt;
&lt;br /&gt;
=== Control Room Temp row is red (temp above 85 F) ===&lt;br /&gt;
&lt;br /&gt;
This information tells you what the temperature of the EOVSA control room (where all hardwares are) is. When this becomes higher than 85 F, this row becomes red, and we must let Kjell and Dr. Gary know and shut down the system to protect our hardwares. It only happened once before, but when it happens it is critical, so you must act immediately.&lt;br /&gt;
&lt;br /&gt;
Note that, when the row is grey, it is only because the &amp;quot;Pressure&amp;quot; information is zero, which means that we're not getting weather information. So this is not related to the control room temperature.&lt;br /&gt;
&lt;br /&gt;
=== Front End Temperature shows 0 ===&lt;br /&gt;
&lt;br /&gt;
If front end temperature shows all 0 and the attenuation tab gives 'nan' for a certain antenna, you can cycle the front end power by issuing following command in raw command window: '$pcycle fem ant#', where ant# is the antenna that having the problem.&lt;br /&gt;
&lt;br /&gt;
=== Ant 14 receiver does not switch between lo/hi ===&lt;br /&gt;
&lt;br /&gt;
This information is relevant since ~ 2018 March, when we started to have low-frequency receiver of Ant 14 working for calibration purposes. The schedule should have HISELECT and LOSELECT during the morning and evening reference calibration scans. During HISELECT/LOSELECT, check '''CryoRX''' window, and make sure that the following setting is achieved (see '''Figure 3''' and '''4'''):&lt;br /&gt;
&lt;br /&gt;
[[File:HISELECT.png|thumb|upright=2.0|'''Figure 3:''' How CryoRX window should look like after HISELECT schedule has run.]]&lt;br /&gt;
&lt;br /&gt;
[[File:LOSELECT.png|thumb|upright=2.0|'''Figure 4:''' How CryoRX window should look like after LOSELECT schedule has run.]]&lt;br /&gt;
&lt;br /&gt;
'''HISELECT scan:'''&lt;br /&gt;
&lt;br /&gt;
RFSwitch = ON&lt;br /&gt;
&lt;br /&gt;
Selected RS = High Freq RX&lt;br /&gt;
&lt;br /&gt;
[RXSelect, Position] = ~510&lt;br /&gt;
&lt;br /&gt;
[ZFocus, Position] = ~8&lt;br /&gt;
&lt;br /&gt;
'''LOSELECT scan:'''&lt;br /&gt;
&lt;br /&gt;
RFSwitch = OFF&lt;br /&gt;
&lt;br /&gt;
Selected RS = Low Freq RX&lt;br /&gt;
&lt;br /&gt;
[RXSelect, Position] = ~103&lt;br /&gt;
&lt;br /&gt;
[ZFocus, Position] = ~70&lt;br /&gt;
&lt;br /&gt;
If for some reason this state is not achieved (e.g., the receiver state does not switch from low-frequency mode to high-frequency mode during HISELECT, the RXSelect or ZFocus position stops at some values and do not approach to the desired values), issue '''rx-select hi ant 14''' or '''rx-select lo ant14''', to switch the state manually to high-frequency mode and low-frequency mode, respectively.&lt;br /&gt;
&lt;br /&gt;
=== Antenna 13 shows 'position' in AZ and 'Lo Hard Limit' in EL ===&lt;br /&gt;
&lt;br /&gt;
Stow the certain antenna and then TRACK may solve the problem.&lt;br /&gt;
&lt;br /&gt;
== Data recording (DPP) ==&lt;br /&gt;
&lt;br /&gt;
=== Data recording has stopped (ls /data1/IDB |tail does not return the most recent file) ===&lt;br /&gt;
&lt;br /&gt;
You need to delete dpplock.txt file. Follow these steps:&lt;br /&gt;
&lt;br /&gt;
1. Enter &amp;quot;top&amp;quot; into user@dpp.solar.pvt command line (if user@dpp.solar.pvt is not there, open a new terminal/terminal tab in VNC viewer &amp;amp; type “ssh -X user@dpp.solar.pvt).&lt;br /&gt;
&lt;br /&gt;
2. Look for &amp;quot;dppxmp” under “command” column. &amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;'''If it is there, do NOT delete dpplock.txt.'''&amp;lt;/span&amp;gt; If it’s not there, then quit top by hitting “q” and proceed.&lt;br /&gt;
&lt;br /&gt;
3. Type “rmlock&amp;quot; on DPP terminal. Check if the data recording has recovered by sending &amp;quot;ls /data1/IDB |tail&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Network ==&lt;br /&gt;
&lt;br /&gt;
=== x11vnc with 20000 port ===&lt;br /&gt;
&lt;br /&gt;
To permit connections via VNC, first check if the x11vnc server is running by giving this command in Helios terminal through Mobaxterm or SSH.&lt;br /&gt;
 ps -ef | grep -v grep | grep /usr/local/bin/x11vnc&lt;br /&gt;
or&lt;br /&gt;
 x11vnc&lt;br /&gt;
&lt;br /&gt;
which should display a line indicating that it is running (it will not be, on a new reboot).  If not, type&lt;br /&gt;
 x11go&lt;br /&gt;
to start it.&lt;br /&gt;
&lt;br /&gt;
=== Cannot open VNC Viewer, or VNC Viewer's response is too slow ===&lt;br /&gt;
&lt;br /&gt;
Open the “local” raw command window and Stateframe window by following these steps:&lt;br /&gt;
&lt;br /&gt;
1. Type &amp;quot;cd /common/python/current&amp;quot; in helios.solar.pvt terminal of MobaXterm&lt;br /&gt;
&lt;br /&gt;
2. Type &amp;quot;./sched_commands.py&amp;quot; for raw command window&lt;br /&gt;
&lt;br /&gt;
3. Type &amp;quot;./sf_display.py&amp;quot; for Stateframe window (add “ &amp;amp;” in the end if you want to keep typing the command in the same helios window) -- note that this Stateframe window may take a while (~5 min or more) to load.&lt;br /&gt;
&lt;br /&gt;
== Others ==&lt;br /&gt;
&lt;br /&gt;
[[File:FLM20151005.png|thumb|upright=2.0|'''Figure 3:''' Geosynchronous satellite signals seen in flare monitor.]]&lt;br /&gt;
&lt;br /&gt;
=== Strong interference in flare monitor ===&lt;br /&gt;
&lt;br /&gt;
Twice per year (for 1-2 weeks centered around Mar. 5 and Oct. 5), the Sun enters in geosynchronous satellite belt. In this case, we see strong signals on flare monitor, like in '''Figure 3''' (blue line). These are radio signals from man-made satellites, which will not harm the system and cannot be avoided, so don't be alarmed.&lt;br /&gt;
&lt;br /&gt;
=== The “streak” in the lowest frequency of the dynamic spectrum ===&lt;br /&gt;
&lt;br /&gt;
If you are seeing this at the beginning or at the end of the day, this is the Sun! See '''Figure 4''' and '''Figure 5''' for sample images. When the baseline is foreshortened (as in near sunrise or sunset), the response is quite strong to the solar disk.  As the Sun rises, the intensity goes down because the baselines start to get longer.  You will actually see the reverse trend in the afternoon, although often the RFI is stronger so the color scale is more blue than in the morning.&lt;br /&gt;
&lt;br /&gt;
[[File:XSP20151202160136.png|thumb|upright=2.0|'''Figure 4:''' The solar signal at the beginning of 2015-12-02 observation period. Notice that the low frequency intensity is decreasing as the Sun rises.]]&lt;br /&gt;
&lt;br /&gt;
[[File:XSP20151202213507.png|thumb|upright=2.0|'''Figure 5:''' The solar signal at the end of 2015-12-02 observation period. Notice the reverse effect compared to '''Figure 4'''.]]&lt;br /&gt;
&lt;br /&gt;
== Refcal calibration ==&lt;br /&gt;
&lt;br /&gt;
To run the daily reference and phase calibration follow these steps.&lt;br /&gt;
&lt;br /&gt;
On pipeline terminal,&lt;br /&gt;
&lt;br /&gt;
 python /common/python/current/calwidget.py&lt;br /&gt;
&lt;br /&gt;
which opens the calwidget window. Select the desired date of calibration in date tab by entering it or by using up and down arrows. Click enter to display all the calibration scans on that day.  There are two reference calibrations placed in the start and end of the schedule with both HI and LO frequency receiver modes. After selecting click 'Analyse as Refcal' button. Please wait till the status displayed in the bottom of the window shows 'Analysis complete'.&lt;br /&gt;
 &lt;br /&gt;
1. Select the LO receiver scan by clicking on it and check the Fix Phase Drift check box.&lt;br /&gt;
&lt;br /&gt;
2. Analyze the LO receiver as refcal.&lt;br /&gt;
&lt;br /&gt;
3. Do any flagging needed to improve the solution.&lt;br /&gt;
&lt;br /&gt;
4. Select the Hi receiver scan (leave the Fix Phase Drift box checked).&lt;br /&gt;
&lt;br /&gt;
5. Analyze the HI receiver as refcal (takes awhile) and do flagging.&lt;br /&gt;
&lt;br /&gt;
6. Select the LO receiver refcal and select Set as Refcal.  The extend selection check box becomes available.&lt;br /&gt;
&lt;br /&gt;
7. Check the check box, then select the HI receiver refcal.&lt;br /&gt;
&lt;br /&gt;
8. The button changes to Set as Extended Refcal.  Click that button, and if all goes well the line with the HI receiver scan will have an asterisk added, and the Sigma Map will be updated to include the merged scans.&lt;br /&gt;
&lt;br /&gt;
9. Leave the HI receiver scan selected, and click Save to SQL.&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Trouble_Shooting_Guide&amp;diff=2860</id>
		<title>Trouble Shooting Guide</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Trouble_Shooting_Guide&amp;diff=2860"/>
		<updated>2018-11-29T20:23:27Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a trouble shooting guide for tohbans monitoring EOVSA remotely using MobaXterm and VNC Viewer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font size=&amp;quot;5&amp;quot;&amp;gt;'''&amp;lt;General checklist for solar observation&amp;gt;'''&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1. Check [http://ovsa.njit.edu/EOVSA/ant_status.php Antenna Status Page] to see if any antenna is under work.&lt;br /&gt;
&lt;br /&gt;
2. In Schedule window, click &amp;quot;Today&amp;quot;, &amp;quot;File&amp;quot;, choose &amp;quot;Save&amp;quot; (overwrite if prompted), and &amp;quot;Go&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;'''Since Feb. 2017, the schedule setup is slightly different.''' Do the following:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.1. Load 'solar.scd' and hit Today. Save it (overwrite if prompted).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.2. Open 'solar_plus3c84_Feb2017.scd' in Texteditor (in ~/Dropbox/PythonCode/Current folder).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.3. Update the sunrise and the sunset time according to the solar.scd file that you just updated.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.4. Update the PHASECAL (and refcal, which is 1-hr PHASECAL, if necessary) times by '''subtracting''' 4 minutes from each scan (to account for the day-to-day sidereal time shift of each calibrator source). Shift the times of previous and next lines (usually ACQUIRE and SUN) accordingly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.5. Save the updated 'solar_plus3c84_Feb2017.scd'. Don't forget to update the DATE as well.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.6. Load the updated 'solar_plus3c84_Feb2017.scd' and hit Go.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. '''Antenna Tracking''' - are all antenna tracking (in white color)?&lt;br /&gt;
&lt;br /&gt;
4. '''Frequency Tuning''' - LO1A Sweep Status = &amp;quot;Sweeping&amp;quot;, FSeqFile = FSEQ-FILE on the schedule, ErrorMsg = &amp;quot;No error&amp;quot;&lt;br /&gt;
&lt;br /&gt;
5. '''Phase Tracking''' - &amp;quot;ON&amp;quot;&lt;br /&gt;
&lt;br /&gt;
6. '''Power and Attenuation''' - Are all dBm on both H- and V- Channels within the second and third numbers shown in &amp;quot;AGC&amp;quot; on the schedule window? You can also see '''SaveList''' hpol and vpol to check this.&lt;br /&gt;
&lt;br /&gt;
7. '''Temps''' - no fluctuation?&lt;br /&gt;
&lt;br /&gt;
8. '''CryoRX''' - this is for antenna 14 control system. If it is down (Eg: FEMA Outlets &amp;amp; Receiver Voltage/Current values are zero and status is OFF), then issue the command 'ctlgo' in the terminal.&lt;br /&gt;
&lt;br /&gt;
9. Make sure that [http://ovsa.njit.edu/EOVSA/status.php EOVSA Observing Status Page] is being updated and that the data is being recorded. You can check if the data is recorded by typing &amp;quot;ls /data1/IDB |tail&amp;quot; in DPP terminal too.&lt;br /&gt;
&lt;br /&gt;
10. STOW antennas at the end of the observation, if needed (see [http://www.ovsa.njit.edu/wiki/index.php/Trouble_Shooting_Guide#Antenna_does_not_stow_.28Ant_10.29 possible problem with Ant 10])&lt;br /&gt;
&lt;br /&gt;
11. Checking the PHASECAL plots [http://ovsa.njit.edu/phasecal/ PHASECAL plot page], if you notice any unusual noisy data on ants 9, 10, 11 or 13, generally it means the antenna did not stow properly on a previous occasion, so you should issue the commands (for example with ant 13): &lt;br /&gt;
step 1: stop ant13&lt;br /&gt;
&lt;br /&gt;
step 2: stow ant13 (wait for it to completely stow--repeat steps 1 and 2 if it seems like it is not stowing after 5 minutes or so)&lt;br /&gt;
&lt;br /&gt;
step 3: track ant13&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt; New! &amp;lt;/span&amp;gt; 12. After the day's observation is over, take a look at the results of all PHASECAL by going to [http://ovsa.njit.edu/phasecal/ PHASECAL plot page]. Note any scan that didn't go well '''without''' the effect of WINDSCRAM (if it was under WINDSCRAM then the data points would appear in red). Record your comments on them in tohban log at [http://ovsa.njit.edu/dev/tohban/ EOVSA tohban log page]. Log other activities during your duty.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt; New! &amp;lt;/span&amp;gt; 13. Do the reference gain calibration analysis by following the procedures explained in [http://www.ovsa.njit.edu/wiki/index.php/Reference_Gain_Calibration Reference Gain Calibration] '''by 1 pm on the next day'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt; New! &amp;lt;/span&amp;gt; 14. Run the following commands to produce daily spectrogram which will be uploaded to RHESSI browser.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import read_idb as ri&lt;br /&gt;
from util import Time&lt;br /&gt;
#To produce the spectrogram for 2017-08-14 on 2017-08-15&lt;br /&gt;
out = ri.allday_udb(t=Time('2017-08-14'),gain_corr=True,savfig=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule window ==&lt;br /&gt;
&lt;br /&gt;
=== I accidentally closed the schedule ===&lt;br /&gt;
&lt;br /&gt;
1. Click &amp;quot;Schedule&amp;quot; (on the left task bar) '''just once'''.&lt;br /&gt;
&lt;br /&gt;
2. Click &amp;quot;Today&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== “Error: Could not write stateframe to SQL” ===&lt;br /&gt;
&lt;br /&gt;
1. hit STOP on the schedule&lt;br /&gt;
&lt;br /&gt;
2. type $scan-stop in Raw Command window (to stop the data recording)&lt;br /&gt;
&lt;br /&gt;
3. close the schedule (exit out of it)&lt;br /&gt;
&lt;br /&gt;
4. restart the program (by clicking on the icon at the left)&lt;br /&gt;
&lt;br /&gt;
5. hit GO to start the observation again&lt;br /&gt;
&lt;br /&gt;
=== Schedule window is frozen ===&lt;br /&gt;
&lt;br /&gt;
1. Close the old one using command 'kill -9 #', where # is the number found by typing '''ps -elf | grep schedule.py''' in sched@helios (the number is at the fourth column from the left).&lt;br /&gt;
&lt;br /&gt;
2. Click &amp;quot;Schedule&amp;quot; (on the left task bar) '''just once'''.&lt;br /&gt;
&lt;br /&gt;
3. Make sure you load the correct schedule and hit &amp;quot;Go&amp;quot;. Double-check everything in the system, and that data files are created.&lt;br /&gt;
&lt;br /&gt;
== Stateframe ==&lt;br /&gt;
&lt;br /&gt;
=== Stateframe is frozen ===&lt;br /&gt;
&lt;br /&gt;
1. Close the old one using command 'kill -2 #', where # is the number followed by My PID on the right corner of the StateFrame, in the terminal of sched@helios. If you have accidentally closed the StateFrame without noting the PID, you can get it by typing '''ps -elf | grep sf_display''' in sched@helios, and looking at the number indicated in the '''fourth column from the left''' on the line that ends with &amp;quot;python /common/python/current/sf_display.py&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. Open a new Stateframe from the menu on the left ('sf_display')&lt;br /&gt;
&lt;br /&gt;
3. Check the log box of the new stateframe&lt;br /&gt;
&lt;br /&gt;
=== “ACC down?” ===&lt;br /&gt;
&lt;br /&gt;
1. Open pdudigital.solar.pvt on web browser&lt;br /&gt;
&lt;br /&gt;
2. Go to “Actions”&lt;br /&gt;
&lt;br /&gt;
3. Go to “Loads” (on the left)&lt;br /&gt;
&lt;br /&gt;
4. Click item 14 (ACC)&lt;br /&gt;
&lt;br /&gt;
5. Hit “Cycle” and “Ok” when prompted&lt;br /&gt;
&lt;br /&gt;
After rebooting, if Stateframe hangs up &amp;amp; does not respond, open a new Stateframe and give &amp;quot;kill ##&amp;quot; (## = “My PID” on the upper right corner of frozen Stateframe) command to sched@helios.solar.pvt server.&lt;br /&gt;
&lt;br /&gt;
=== ACC Restart ===&lt;br /&gt;
&lt;br /&gt;
After the above procedure, or any time the ACC reboots, it loads from its own disk and this appears to cause glitches in the recorded data due to some synchronization problem.  For some reason not understood, the glitches go away when the ACC is loaded from the win computer.  To do this, &lt;br /&gt;
* Start LabVIEW on the win computer if it is not already open, and click on EOVSA-LabVIEW 2015.lvproj (this may already be open).  &lt;br /&gt;
* In the new Project Explorer window, under Targets, expand the acc item and right click on acc, then choose Connect from the drop down menu.&lt;br /&gt;
* After connecting, click on ACC Master.vi and select Apply.&lt;br /&gt;
* Now under the Startup folder in the Project Explorer, right-click ACC Master.vi and select Run.&lt;br /&gt;
* In the window that pops up, start it (by selecting the white arrow at the top of the window)&lt;br /&gt;
* After it starts successfully, right click on acc in the Project Explorer and choose Disconnect.&lt;br /&gt;
* Now you can close the ACC Master.vi window&lt;br /&gt;
&lt;br /&gt;
Note: Rebooting the ACC kills the dppxmp program, so you need to rmlock on the DPP to allow it to run again.  It also kills the sf_display, see above.&lt;br /&gt;
&lt;br /&gt;
=== CryoRX tab - Status are OFF, all values are zeroes (Checklist #7 is false)===&lt;br /&gt;
&lt;br /&gt;
What you should be seeing is that FEMA Outlets and Receiver Voltages/Currents are all zeroes, and Status are all OFF (except for Noise Diode, and RFSwitch when using low frequency receiver). This means that the control system for receiver has died. You would still see that antennas are tracking fine and data is recorded, and it doesn't mean that these data are &amp;quot;wrong&amp;quot; or &amp;quot;unusable&amp;quot;. They have to be ON and non-zeroes whenever you want to change receiver setting or modify attenuation setting, which sometimes happens during the observation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;del&amp;gt;To reboot, execute &amp;quot;starburstControl start&amp;quot; in antctl@feanta server (ssh connect from helios, if disconnected).&amp;lt;/del&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;12/18/2016&amp;gt; To reboot, just type &amp;quot;ctlgo&amp;quot; in a terminal window on helios in VNC Viewer (you may have to stop the schedule). If for any reason you want to stop the control system, type &amp;quot;ctlstop&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Antenna(s) down ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;'''Don’t forget to check the [http://ovsa.njit.edu/EOVSA/ant_status.php Antenna Status page] before considering to “fix” any of the antennas!!'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Symptoms: Not tracking, showing ‘AT STOW’ or other unwanted coordinates, both AZ and EL permits ON or only EL permit ON, or Axis Lock is ON&lt;br /&gt;
&lt;br /&gt;
Please be noted that the old antennas don't have power controller so $pcycle command won't work on them.&lt;br /&gt;
&lt;br /&gt;
1. Ant 9, 10, 11, 13 could be in this state early in the schedule because they just can't move to commanded position (out of declination limit). In this case, you just have to wait a while (~few hours?)&lt;br /&gt;
&lt;br /&gt;
2. In cold morning, large spike in the current may cause large position error in AT STOW state. &lt;br /&gt;
&lt;br /&gt;
3. Proceed if neither #1 nor #2 is the case. If only AZ permit is ON (the first column), try &amp;quot;reboot 1 ant2&amp;quot; for rebooting ant2, for example.&lt;br /&gt;
&lt;br /&gt;
4. If both AZ and EL permit is ON (the second column) or only EL permit is ON, then give command &amp;quot;$pcycle ant2&amp;quot; for resetting antenna 2. This switches OFF the power to antenna for 15 seconds and switches ON. In Communication tab, Ant 2 line will go red. Wait till it becomes white. If it does not become white, then try &amp;quot;sync ant2&amp;quot;. If cRIO does not respond to this, it may be in “safe mode”, in which case you can type &amp;quot;$pcycle crio ant2&amp;quot; (if on ants 1-8 or 12) and it will cycle the power on the cRIO. &amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;Note that cRIO takes at least 2 minutes to reboot and come back online.&amp;lt;/span&amp;gt; If this sequence does not work, you may try $pcycle again, &amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;but keep in mind that this command in general should only be used when needed (i.e. discouraged if it can be avoided), to save wear and tear on the components.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Give &amp;quot;tracktable [the current tracktable ***.radec] ant2&amp;quot; and &amp;quot;track ant2&amp;quot; to initiate the tracking. If this does not work, look for temperature to raise (if temperature is low).&lt;br /&gt;
&lt;br /&gt;
=== Ant14's cRIO's &amp;quot;Ant&amp;quot; value (last column) is showing negative value ===&lt;br /&gt;
&lt;br /&gt;
What you may see is that ant14's cRIO's &amp;quot;Ant&amp;quot; value (the very last column) showing negative value (not necessarily the extremely large value like you see for some antennas that are down, but some random number with negative sign). When you observe this, go to &amp;quot;ant14.solar.pvt&amp;quot; on web browser and see if it says in red &amp;quot;Slot1 - Maths error&amp;quot; on the left side. It is believed to occur when the controller is interpolating coordinates for the last-entered track table, and the calculation blows up (i.e. pcal_tab.radec file would have had a day change in it when it was not supposed to).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;This should not happen beyond 12/18/2016, but if you observe it beyond this date, '''report to Dr. Gary''', and proceed to do the followings:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1. In &amp;quot;ant14.solar.pvt&amp;quot;, go to &amp;quot;Log-in&amp;quot; and log-in (if you need ID/PW, ask Dr. Gary or Natsuha.)&lt;br /&gt;
&lt;br /&gt;
2. Click &amp;quot;Parameters&amp;quot;, then select &amp;quot;#10 - Status And Trips&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
3. Choose &amp;quot;#10.00&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
4. Enter &amp;quot;1070&amp;quot; to &amp;quot;Update values&amp;quot;, and hit &amp;quot;change&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
5. Go to 'parameter drop down' tab under the 'menu' tab, and choose &amp;quot;#38 - User Trip&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
6. Enter &amp;quot;100&amp;quot; to &amp;quot;Update values&amp;quot;, and hit &amp;quot;change&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This is supposed to reset the controller. Watch for cRIO's Ant value changes to positive values. &amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;Take note on the time you did this procedure, and report it to Dr. Gary.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== BRIGHTSCRAM ===&lt;br /&gt;
&lt;br /&gt;
Find out which antenna is experiencing this by looking at [http://ovsa.njit.edu/fits/images/ FITS image files]. BRIGHTSCRAM should appear as data-gap like features on the dynamics spectra. &amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;If more than two antennas are having BRIGHTSCRAM, then ALL antennas show BRIGHTSCRAM.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Wait for a while (~10 min) to see if it automatically goes away. After it goes away, give &amp;quot;tracktable [the current tracktable ***.radec] ant#&amp;quot; and &amp;quot;track ant#&amp;quot; to initiate the tracking.&lt;br /&gt;
&lt;br /&gt;
=== Frequency Tuning's Sweep Status is “stopped” or &amp;quot;Queue overflow&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
1. Try &amp;quot;Stop&amp;quot; and &amp;quot;Go&amp;quot; the schedule.&lt;br /&gt;
&lt;br /&gt;
2. If #1 does not work, try &amp;quot;lo1a-reboot&amp;quot; in Raw command window&lt;br /&gt;
&lt;br /&gt;
3. After the previous command, enter the following raw commands, or simply stop and restart the schedule (which will send the commands for you):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fseq-off&lt;br /&gt;
fseq-init&lt;br /&gt;
fseq-file [the current frequency receiver setting ***.fsq] (should be in the right side of the schedule window, like solarhi.fsq)&lt;br /&gt;
fseq-on&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Temperature is fluctuating too much ===&lt;br /&gt;
&lt;br /&gt;
Try rebooting the temperature controller by typing &amp;quot;tec$bc ant2&amp;quot; for ant2, for example (tec =&amp;gt; Thermo-Electric Controller).&lt;br /&gt;
&lt;br /&gt;
=== nd-on is on (Attenuation) ===&lt;br /&gt;
&lt;br /&gt;
Send &amp;quot;nd-off ant#&amp;quot; raw command to turn off the local noise diode. &lt;br /&gt;
 &lt;br /&gt;
[[File:2016-04-13_hpol.png|thumb|upright=2.0|'''Figure 1:''' Example of the oscillation from unbalanced attenuation for ant 12 (orange).]]&lt;br /&gt;
&lt;br /&gt;
[[File:2016-04-15_hpol.png|thumb|upright=2.0|'''Figure 2:''' Example of the oscillation from unbalanced attenuation for ant 2 (red) and 5 (cyan).]]&lt;br /&gt;
&lt;br /&gt;
=== hpol/vpol plot (Savelist) is showing unusual oscillating behavior ===&lt;br /&gt;
&lt;br /&gt;
What you should see is the dBm values of the antenna fluctuating very violently like in '''Figure 1''' and '''2'''. Notice that the amplitude of the fluctuation is ~3 dB, which was one FEMATTN step (at this date). This happens when hattn/vattn settings of the antenna get changed somehow and two polarizations get very unbalanced. The result is that the automatic gain control is not being able to find a happy level for both at the same time, and went into an oscillation. To calm it down, first issue the commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;femauto-off ant#&lt;br /&gt;
hattn 0 0 ant#&lt;br /&gt;
vattn 0 0 ant#&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which turns off the automatic gain control. '''If the antenna is on the Sun, temporarily move it off the Sun using''' &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
radecoff 0 10 ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
With the antenna off the Sun, set the hattn and vattn settings until both power levels are around 3 dB, i.e.:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hattn 0 12 ant#&lt;br /&gt;
vattn 0 11 ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where the choice of attenuations (12 and 11 in this example) are those that set the power level close to 3 dB. Finally, turn the gain control back on, with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
femauto-on ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you issued the radecoff command, be sure to remove it with'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
radecoff 0 0 ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;If the fluctuation is within one FEMATTN step (2 dB as of 12/12/16, check [http://www.ovsa.njit.edu/wiki/index.php/Schedule_Commands#FEMATTN_level_.5Bantennalist.5D Schedule Command - FEMATTN level]), the cause might be just interference. In this case, leave it for a while and see if the oscillation goes away.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Antenna does not stow (Ant 10) ===&lt;br /&gt;
&lt;br /&gt;
This mostly seems to happen on Ant 10 (as of ~July 2017). The symptom is that Ant 10 keeps staying at &amp;quot;TO STOW&amp;quot; status while all other (old) antennas are AT STOW already at the end of the observation. You might have tried the command &amp;quot;stow ant10&amp;quot;, but it did not change the status. If this continues for more than a minute or so, it is likely that the antenna is running into a limit, and cannot be stowed properly with just &amp;quot;stow ant10&amp;quot; command (you also cannot trust if it does go to STOW by itself much later). To properly stow the antenna, '''issue &amp;quot;stop ant10&amp;quot; first''', then do &amp;quot;stow ant10&amp;quot;. You may need to do this multiple times. If you don't properly stow the antenna this way, it may not start tracking automatically next morning, and you will miss the data from this antenna.&lt;br /&gt;
&lt;br /&gt;
=== Antenna tab is blank and an attempt to switch to it causes the Stateframe to freeze ===&lt;br /&gt;
&lt;br /&gt;
This occurred around early June of 2017. The cause turned out to be a change in numpy behavior. Dr. Gary updated the numpy at some point and a subtle difference caused it. This means that we should think about software upgrade as one of the causes of malfunctions of our system sometimes.&lt;br /&gt;
&lt;br /&gt;
=== Antenna shows (Lo or Hi) Hard limit and does not track ===&lt;br /&gt;
&lt;br /&gt;
If a hard limit of any azel antenna (1-8 or 12) is ON, follow this procedure into the Raw Command window of the schedule (with no typos).&lt;br /&gt;
&lt;br /&gt;
1. Make sure that other antennas are tracking a source and that no source changes are coming up within the next minute or so.&lt;br /&gt;
&lt;br /&gt;
2. Put antenna in velocity mode with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
runmode 2 ant#  (e.g for antenna 6, use &amp;quot;runmode 2 ant6&amp;quot;)   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be sure to specify the antenna, otherwise ALL antennas will move. &lt;br /&gt;
&lt;br /&gt;
3. Drive the antenna OFF the limit in velocity mode.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;axis&amp;gt;velocity &amp;lt;speed&amp;gt; ant# (e.g &amp;quot;azimuthvelocity 5000 ant6&amp;quot; for which antenna 6 begins to move in azimuth, to drive off the Lo limit)  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If the limit is on the azimuth axis, set &amp;lt;axis&amp;gt;velocity as &amp;quot;azimuthvelocity&amp;quot;.  If the limit is on the elevation axis, set &amp;lt;axis&amp;gt;velocity as &amp;quot;elevationvelocity&amp;quot;.&lt;br /&gt;
To drive off a low limit, use a positive velocity 5000.  To drive off a high limit, use a negative velocity -5000. Units are 1/10000th of a deg/s, so 5000 means 0.5 deg/s.&lt;br /&gt;
  &lt;br /&gt;
4. After the limit is off, set the velocity back to zero.&lt;br /&gt;
&lt;br /&gt;
Wait for up to ~10-30 s, until the Hard Limit indicator goes OFF (on the antenna tab). &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;axis&amp;gt;velocity 0 ant# (e.g &amp;quot;azimuthvelocity 0 ant6&amp;quot; for which antenna 6 stops moving) &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Bring antenna to track.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
track ant# (e.g &amp;quot;track ant6&amp;quot; for which antenna 6 resumes normal slew to target and starts tracking)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the Lo Hard Limit indicator does not go OFF after 30 s, go ahead with commands 4 and 5 (although tracking will not work) and let Dr. Gary know about it.&lt;br /&gt;
&lt;br /&gt;
=== Control Room Temp row is red (temp above 85 F) ===&lt;br /&gt;
&lt;br /&gt;
This information tells you what the temperature of the EOVSA control room (where all hardwares are) is. When this becomes higher than 85 F, this row becomes red, and we must let Kjell and Dr. Gary know and shut down the system to protect our hardwares. It only happened once before, but when it happens it is critical, so you must act immediately.&lt;br /&gt;
&lt;br /&gt;
Note that, when the row is grey, it is only because the &amp;quot;Pressure&amp;quot; information is zero, which means that we're not getting weather information. So this is not related to the control room temperature.&lt;br /&gt;
&lt;br /&gt;
=== Front End Temperature shows 0 ===&lt;br /&gt;
&lt;br /&gt;
If front end temperature shows all 0 and the attenuation tab gives 'nan' for a certain antenna, you can cycle the front end power by issuing following command in raw command window: '$pcycle fem ant#', where ant# is the antenna that having the problem.&lt;br /&gt;
&lt;br /&gt;
=== Ant 14 receiver does not switch between lo/hi ===&lt;br /&gt;
&lt;br /&gt;
This information is relevant since ~ 2018 March, when we started to have low-frequency receiver of Ant 14 working for calibration purposes. The schedule should have HISELECT and LOSELECT during the morning and evening reference calibration scans. During HISELECT/LOSELECT, check '''CryoRX''' window, and make sure that the following setting is achieved (see '''Figure 3''' and '''4'''):&lt;br /&gt;
&lt;br /&gt;
[[File:HISELECT.png|thumb|upright=2.0|'''Figure 3:''' How CryoRX window should look like after HISELECT schedule has run.]]&lt;br /&gt;
&lt;br /&gt;
[[File:LOSELECT.png|thumb|upright=2.0|'''Figure 4:''' How CryoRX window should look like after LOSELECT schedule has run.]]&lt;br /&gt;
&lt;br /&gt;
'''HISELECT scan:'''&lt;br /&gt;
&lt;br /&gt;
RFSwitch = ON&lt;br /&gt;
&lt;br /&gt;
Selected RS = High Freq RX&lt;br /&gt;
&lt;br /&gt;
[RXSelect, Position] = ~510&lt;br /&gt;
&lt;br /&gt;
[ZFocus, Position] = ~8&lt;br /&gt;
&lt;br /&gt;
'''LOSELECT scan:'''&lt;br /&gt;
&lt;br /&gt;
RFSwitch = OFF&lt;br /&gt;
&lt;br /&gt;
Selected RS = Low Freq RX&lt;br /&gt;
&lt;br /&gt;
[RXSelect, Position] = ~103&lt;br /&gt;
&lt;br /&gt;
[ZFocus, Position] = ~70&lt;br /&gt;
&lt;br /&gt;
If for some reason this state is not achieved (e.g., the receiver state does not switch from low-frequency mode to high-frequency mode during HISELECT, the RXSelect or ZFocus position stops at some values and do not approach to the desired values), issue '''rx-select hi ant 14''' or '''rx-select lo ant14''', to switch the state manually to high-frequency mode and low-frequency mode, respectively.&lt;br /&gt;
&lt;br /&gt;
=== Antenna 13 shows 'position' in AZ and 'Lo Hard Limit' in EL ===&lt;br /&gt;
&lt;br /&gt;
Stow the certain antenna and then TRACK may solve the problem.&lt;br /&gt;
&lt;br /&gt;
== Data recording (DPP) ==&lt;br /&gt;
&lt;br /&gt;
=== Data recording has stopped (ls /data1/IDB |tail does not return the most recent file) ===&lt;br /&gt;
&lt;br /&gt;
You need to delete dpplock.txt file. Follow these steps:&lt;br /&gt;
&lt;br /&gt;
1. Enter &amp;quot;top&amp;quot; into user@dpp.solar.pvt command line (if user@dpp.solar.pvt is not there, open a new terminal/terminal tab in VNC viewer &amp;amp; type “ssh -X user@dpp.solar.pvt).&lt;br /&gt;
&lt;br /&gt;
2. Look for &amp;quot;dppxmp” under “command” column. &amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;'''If it is there, do NOT delete dpplock.txt.'''&amp;lt;/span&amp;gt; If it’s not there, then quit top by hitting “q” and proceed.&lt;br /&gt;
&lt;br /&gt;
3. Type “rmlock&amp;quot; on DPP terminal. Check if the data recording has recovered by sending &amp;quot;ls /data1/IDB |tail&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Network ==&lt;br /&gt;
&lt;br /&gt;
=== Cannot open VNC Viewer, or VNC Viewer's response is too slow ===&lt;br /&gt;
&lt;br /&gt;
Open the “local” raw command window and Stateframe window by following these steps:&lt;br /&gt;
&lt;br /&gt;
1. Type &amp;quot;cd /common/python/current&amp;quot; in helios.solar.pvt terminal of MobaXterm&lt;br /&gt;
&lt;br /&gt;
2. Type &amp;quot;./sched_commands.py&amp;quot; for raw command window&lt;br /&gt;
&lt;br /&gt;
3. Type &amp;quot;./sf_display.py&amp;quot; for Stateframe window (add “ &amp;amp;” in the end if you want to keep typing the command in the same helios window) -- note that this Stateframe window may take a while (~5 min or more) to load.&lt;br /&gt;
&lt;br /&gt;
== Others ==&lt;br /&gt;
&lt;br /&gt;
[[File:FLM20151005.png|thumb|upright=2.0|'''Figure 3:''' Geosynchronous satellite signals seen in flare monitor.]]&lt;br /&gt;
&lt;br /&gt;
=== Strong interference in flare monitor ===&lt;br /&gt;
&lt;br /&gt;
Twice per year (for 1-2 weeks centered around Mar. 5 and Oct. 5), the Sun enters in geosynchronous satellite belt. In this case, we see strong signals on flare monitor, like in '''Figure 3''' (blue line). These are radio signals from man-made satellites, which will not harm the system and cannot be avoided, so don't be alarmed.&lt;br /&gt;
&lt;br /&gt;
=== The “streak” in the lowest frequency of the dynamic spectrum ===&lt;br /&gt;
&lt;br /&gt;
If you are seeing this at the beginning or at the end of the day, this is the Sun! See '''Figure 4''' and '''Figure 5''' for sample images. When the baseline is foreshortened (as in near sunrise or sunset), the response is quite strong to the solar disk.  As the Sun rises, the intensity goes down because the baselines start to get longer.  You will actually see the reverse trend in the afternoon, although often the RFI is stronger so the color scale is more blue than in the morning.&lt;br /&gt;
&lt;br /&gt;
[[File:XSP20151202160136.png|thumb|upright=2.0|'''Figure 4:''' The solar signal at the beginning of 2015-12-02 observation period. Notice that the low frequency intensity is decreasing as the Sun rises.]]&lt;br /&gt;
&lt;br /&gt;
[[File:XSP20151202213507.png|thumb|upright=2.0|'''Figure 5:''' The solar signal at the end of 2015-12-02 observation period. Notice the reverse effect compared to '''Figure 4'''.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Trouble_Shooting_Guide&amp;diff=2306</id>
		<title>Trouble Shooting Guide</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Trouble_Shooting_Guide&amp;diff=2306"/>
		<updated>2018-01-20T17:37:46Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a trouble shooting guide for tohbans monitoring EOVSA remotely using MobaXterm and VNC Viewer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font size=&amp;quot;5&amp;quot;&amp;gt;'''&amp;lt;General checklist for solar observation&amp;gt;'''&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1. Check [http://ovsa.njit.edu/EOVSA/ant_status.php Antenna Status Page] to see if any antenna is under work.&lt;br /&gt;
&lt;br /&gt;
2. In Schedule window, click &amp;quot;Today&amp;quot;, &amp;quot;File&amp;quot;, choose &amp;quot;Save&amp;quot; (overwrite if prompted), and &amp;quot;Go&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;'''Since Feb. 2017, the schedule setup is slightly different.''' Do the following:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.1. Load 'solar.scd' and hit Today. Save it (overwrite if prompted).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.2. Open 'solar_plus3c84_Feb2017.scd' in Texteditor (in ~/Dropbox/PythonCode/Current folder).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.3. Update the sunrise and the sunset time according to the solar.scd file that you just updated.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.4. Update the PHASECAL (and refcal, which is 1-hr PHASECAL, if necessary) times by '''subtracting''' 4 minutes from each scan (to account for the day-to-day sidereal time shift of each calibrator source). Shift the times of previous and next lines (usually ACQUIRE and SUN) accordingly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.5. Save the updated 'solar_plus3c84_Feb2017.scd'. Don't forget to update the DATE as well.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.6. Load the updated 'solar_plus3c84_Feb2017.scd' and hit Go.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. '''Antenna Tracking''' - are all antenna tracking (in white color)?&lt;br /&gt;
&lt;br /&gt;
4. '''Frequency Tuning''' - LO1A Sweep Status = &amp;quot;Sweeping&amp;quot;, FSeqFile = FSEQ-FILE on the schedule, ErrorMsg = &amp;quot;No error&amp;quot;&lt;br /&gt;
&lt;br /&gt;
5. '''Phase Tracking''' - &amp;quot;ON&amp;quot;&lt;br /&gt;
&lt;br /&gt;
6. '''Power and Attenuation''' - Are all dBm on both H- and V- Channels within the second and third numbers shown in &amp;quot;AGC&amp;quot; on the schedule window? You can also see '''SaveList''' hpol and vpol to check this.&lt;br /&gt;
&lt;br /&gt;
7. '''Temps''' - no fluctuation?&lt;br /&gt;
&lt;br /&gt;
8. '''CryoRX''' - this is for antenna 14 control system. If it is down (Eg: FEMA Outlets &amp;amp; Receiver Voltage/Current values are zero and status is OFF), then issue the command 'ctlgo' in the terminal.&lt;br /&gt;
&lt;br /&gt;
9. Make sure that [http://ovsa.njit.edu/EOVSA/status.php EOVSA Observing Status Page] is being updated and that the data is being recorded. You can check if the data is recorded by typing &amp;quot;ls /data1/IDB |tail&amp;quot; in DPP terminal too.&lt;br /&gt;
&lt;br /&gt;
10. STOW antennas at the end of the observation, if needed (see [http://www.ovsa.njit.edu/wiki/index.php/Trouble_Shooting_Guide#Antenna_does_not_stow_.28Ant_10.29 possible problem with Ant 10])&lt;br /&gt;
&lt;br /&gt;
11. Checking the PHASECAL plots [http://ovsa.njit.edu/phasecal/ PHASECAL plot page], if you notice any unusual noisy data on ants 9, 10, 11 or 13, generally it means the antenna did not stow properly on a previous occasion, so you should issue the commands (for example with ant 13): &lt;br /&gt;
step 1: stop ant13&lt;br /&gt;
&lt;br /&gt;
step 2: stow ant13 (wait for it to completely stow--repeat steps 1 and 2 if it seems like it is not stowing after 5 minutes or so)&lt;br /&gt;
&lt;br /&gt;
step 3: track ant13&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt; New! &amp;lt;/span&amp;gt; 12. After the day's observation is over, take a look at the results of all PHASECAL by going to [http://ovsa.njit.edu/phasecal/ PHASECAL plot page]. Note any scan that didn't go well '''without''' the effect of WINDSCRAM (if it was under WINDSCRAM then the data points would appear in red). Record your comments on them in tohban log at [http://ovsa.njit.edu/dev/tohban/ EOVSA tohban log page]. Log other activities during your duty.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt; New! &amp;lt;/span&amp;gt; 13. Do the reference gain calibration analysis by following the procedures explained in [http://www.ovsa.njit.edu/wiki/index.php/Reference_Gain_Calibration Reference Gain Calibration] '''by 1 pm on the next day'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt; New! &amp;lt;/span&amp;gt; 14. Run the following commands to produce daily spectrogram which will be uploaded to RHESSI browser.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import read_idb as ri&lt;br /&gt;
from util import Time&lt;br /&gt;
#To produce the spectrogram for 2017-08-14 on 2017-08-15&lt;br /&gt;
out = ri.allday_udb(t=Time('2017-08-14'),gain_corr=True,savfig=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule window ==&lt;br /&gt;
&lt;br /&gt;
=== I accidentally closed the schedule ===&lt;br /&gt;
&lt;br /&gt;
1. Click &amp;quot;Schedule&amp;quot; (on the left task bar) '''just once'''.&lt;br /&gt;
&lt;br /&gt;
2. Click &amp;quot;Today&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== “Error: Could not write stateframe to SQL” ===&lt;br /&gt;
&lt;br /&gt;
1. hit STOP on the schedule&lt;br /&gt;
&lt;br /&gt;
2. type $scan-stop in Raw Command window (to stop the data recording)&lt;br /&gt;
&lt;br /&gt;
3. close the schedule (exit out of it)&lt;br /&gt;
&lt;br /&gt;
4. restart the program (by clicking on the icon at the left)&lt;br /&gt;
&lt;br /&gt;
5. hit GO to start the observation again&lt;br /&gt;
&lt;br /&gt;
== Stateframe ==&lt;br /&gt;
&lt;br /&gt;
=== Stateframe is frozen ===&lt;br /&gt;
&lt;br /&gt;
1. Close the old one using command 'kill -2 #', where # is the number followed by My PID on the right corner of the StateFrame, in the terminal of sched@helios. If you have accidentally closed the StateFrame without noting the PID, you can get it by typing '''ps -elf | grep sf_display''' in sched@helios, and looking at the number indicated in the '''fourth column from the left''' on the line that ends with &amp;quot;python /common/python/current/sf_display.py&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. Open a new Stateframe from the menu on the left ('sf_display')&lt;br /&gt;
&lt;br /&gt;
3. Check the log box of the new stateframe&lt;br /&gt;
&lt;br /&gt;
=== “ACC down?” ===&lt;br /&gt;
&lt;br /&gt;
1. Open pdudigital.solar.pvt on web browser&lt;br /&gt;
&lt;br /&gt;
2. Go to “Actions”&lt;br /&gt;
&lt;br /&gt;
3. Go to “Loads” (on the left)&lt;br /&gt;
&lt;br /&gt;
4. Click item 14 (ACC)&lt;br /&gt;
&lt;br /&gt;
5. Hit “Cycle” and “Ok” when prompted&lt;br /&gt;
&lt;br /&gt;
After rebooting, if Stateframe hangs up &amp;amp; does not respond, open a new Stateframe and give &amp;quot;kill ##&amp;quot; (## = “My PID” on the upper right corner of frozen Stateframe) command to sched@helios.solar.pvt server.&lt;br /&gt;
&lt;br /&gt;
=== ACC Restart ===&lt;br /&gt;
&lt;br /&gt;
After the above procedure, or any time the ACC reboots, it loads from its own disk and this appears to cause glitches in the recorded data due to some synchronization problem.  For some reason not understood, the glitches go away when the ACC is loaded from the win computer.  To do this, &lt;br /&gt;
* Start LabVIEW on the win computer if it is not already open, and click on EOVSA-LabVIEW 2015.lvproj (this may already be open).  &lt;br /&gt;
* In the new Project Explorer window, under Targets, expand the acc item and right click on acc, then choose Connect from the drop down menu.&lt;br /&gt;
* After connecting, click on ACC Master.vi and start it (by selecting the white arrow at the top of the window)&lt;br /&gt;
* After it starts successfully, right click on acc in the Project Explorer and choose Disconnect.&lt;br /&gt;
* Now you can close the ACC Master.vi window&lt;br /&gt;
&lt;br /&gt;
Note: Rebooting the ACC kills the dppxmp program, so you need to rmlock on the DPP to allow it to run again.  It also kills the sf_display, see above.&lt;br /&gt;
&lt;br /&gt;
=== CryoRX tab - Status are OFF, all values are zeroes (Checklist #7 is false)===&lt;br /&gt;
&lt;br /&gt;
What you should be seeing is that FEMA Outlets and Receiver Voltages/Currents are all zeroes, and Status are all OFF (except for Noise Diode, and RFSwitch when using low frequency receiver). This means that the control system for receiver has died. You would still see that antennas are tracking fine and data is recorded, and it doesn't mean that these data are &amp;quot;wrong&amp;quot; or &amp;quot;unusable&amp;quot;. They have to be ON and non-zeroes whenever you want to change receiver setting or modify attenuation setting, which sometimes happens during the observation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;del&amp;gt;To reboot, execute &amp;quot;starburstControl start&amp;quot; in antctl@feanta server (ssh connect from helios, if disconnected).&amp;lt;/del&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;12/18/2016&amp;gt; To reboot, just type &amp;quot;ctlgo&amp;quot; in a terminal window on helios in VNC Viewer (you may have to stop the schedule). If for any reason you want to stop the control system, type &amp;quot;ctlstop&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Antenna(s) down ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;'''Don’t forget to check the [http://ovsa.njit.edu/EOVSA/ant_status.php Antenna Status page] before considering to “fix” any of the antennas!!'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Symptoms: Not tracking, showing ‘AT STOW’ or other unwanted coordinates, both AZ and EL permits ON or only EL permit ON, or Axis Lock is ON&lt;br /&gt;
&lt;br /&gt;
Please be noted that the old antennas don't have power controller so $pcycle command won't work on them.&lt;br /&gt;
&lt;br /&gt;
1. Ant 9, 10, 11, 13 could be in this state early in the schedule because they just can't move to commanded position (out of declination limit). In this case, you just have to wait a while (~few hours?)&lt;br /&gt;
&lt;br /&gt;
2. In cold morning, large spike in the current may cause large position error in AT STOW state. &lt;br /&gt;
&lt;br /&gt;
3. Proceed if neither #1 nor #2 is the case. If only AZ permit is ON (the first column), try &amp;quot;reboot 1 ant2&amp;quot; for rebooting ant2, for example.&lt;br /&gt;
&lt;br /&gt;
4. If both AZ and EL permit is ON (the second column) or only EL permit is ON, then give command &amp;quot;$pcycle ant2&amp;quot; for resetting antenna 2. This switches OFF the power to antenna for 15 seconds and switches ON. In Communication tab, Ant 2 line will go red. Wait till it becomes white. If it does not become white, then try &amp;quot;sync ant2&amp;quot;. If cRIO does not respond to this, it may be in “safe mode”, in which case you can type &amp;quot;$pcycle crio ant2&amp;quot; (if on ants 1-8 or 12) and it will cycle the power on the cRIO. &amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;Note that cRIO takes at least 2 minutes to reboot and come back online.&amp;lt;/span&amp;gt; If this sequence does not work, you may try $pcycle again, &amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;but keep in mind that this command in general should only be used when needed (i.e. discouraged if it can be avoided), to save wear and tear on the components.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Give &amp;quot;tracktable [the current tracktable ***.radec] ant2&amp;quot; and &amp;quot;track ant2&amp;quot; to initiate the tracking. If this does not work, look for temperature to raise (if temperature is low).&lt;br /&gt;
&lt;br /&gt;
=== Ant14's cRIO's &amp;quot;Ant&amp;quot; value (last column) is showing negative value ===&lt;br /&gt;
&lt;br /&gt;
What you may see is that ant14's cRIO's &amp;quot;Ant&amp;quot; value (the very last column) showing negative value (not necessarily the extremely large value like you see for some antennas that are down, but some random number with negative sign). When you observe this, go to &amp;quot;ant14.solar.pvt&amp;quot; on web browser and see if it says in red &amp;quot;Slot1 - Maths error&amp;quot; on the left side. It is believed to occur when the controller is interpolating coordinates for the last-entered track table, and the calculation blows up (i.e. pcal_tab.radec file would have had a day change in it when it was not supposed to).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;This should not happen beyond 12/18/2016, but if you observe it beyond this date, '''report to Dr. Gary''', and proceed to do the followings:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1. In &amp;quot;ant14.solar.pvt&amp;quot;, go to &amp;quot;Log-in&amp;quot; and log-in (if you need ID/PW, ask Dr. Gary or Natsuha.)&lt;br /&gt;
&lt;br /&gt;
2. Click &amp;quot;Parameters&amp;quot;, then select &amp;quot;#10 - Status And Trips&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
3. Choose &amp;quot;#10.00&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
4. Enter &amp;quot;1070&amp;quot; to &amp;quot;Update values&amp;quot;, and hit &amp;quot;change&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
5. Go to 'parameter drop down' tab under the 'menu' tab, and choose &amp;quot;#38 - User Trip&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
6. Enter &amp;quot;100&amp;quot; to &amp;quot;Update values&amp;quot;, and hit &amp;quot;change&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This is supposed to reset the controller. Watch for cRIO's Ant value changes to positive values. &amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;Take note on the time you did this procedure, and report it to Dr. Gary.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== BRIGHTSCRAM ===&lt;br /&gt;
&lt;br /&gt;
Find out which antenna is experiencing this by looking at [http://ovsa.njit.edu/fits/images/ FITS image files]. BRIGHTSCRAM should appear as data-gap like features on the dynamics spectra. &amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;If more than two antennas are having BRIGHTSCRAM, then ALL antennas show BRIGHTSCRAM.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Wait for a while (~10 min) to see if it automatically goes away. After it goes away, give &amp;quot;tracktable [the current tracktable ***.radec] ant#&amp;quot; and &amp;quot;track ant#&amp;quot; to initiate the tracking.&lt;br /&gt;
&lt;br /&gt;
=== Frequency Tuning's Sweep Status is “stopped” or &amp;quot;Queue overflow&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
1. Try &amp;quot;Stop&amp;quot; and &amp;quot;Go&amp;quot; the schedule.&lt;br /&gt;
&lt;br /&gt;
2. If #1 does not work, try &amp;quot;lo1a-reboot&amp;quot; in Raw command window&lt;br /&gt;
&lt;br /&gt;
3. If #2 does not work, try the following raw commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fseq-off&lt;br /&gt;
fseq-init&lt;br /&gt;
fseq-file [the current frequency receiver setting ***.fsq] (should be in the right side of the schedule window, like solarhi.fsq)&lt;br /&gt;
fseq-on&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Temperature is fluctuating too much ===&lt;br /&gt;
&lt;br /&gt;
Try rebooting the temperature controller by typing &amp;quot;tec$bc ant2&amp;quot; for ant2, for example (tec =&amp;gt; Thermo-Electric Controller).&lt;br /&gt;
&lt;br /&gt;
=== nd-on is on (Attenuation) ===&lt;br /&gt;
&lt;br /&gt;
Send &amp;quot;nd-off ant#&amp;quot; raw command to turn off the local noise diode. &lt;br /&gt;
 &lt;br /&gt;
[[File:2016-04-13_hpol.png|thumb|upright=2.0|'''Figure 1:''' Example of the oscillation from unbalanced attenuation for ant 12 (orange).]]&lt;br /&gt;
&lt;br /&gt;
[[File:2016-04-15_hpol.png|thumb|upright=2.0|'''Figure 2:''' Example of the oscillation from unbalanced attenuation for ant 2 (red) and 5 (cyan).]]&lt;br /&gt;
&lt;br /&gt;
=== hpol/vpol plot (Savelist) is showing unusual oscillating behavior ===&lt;br /&gt;
&lt;br /&gt;
What you should see is the dBm values of the antenna fluctuating very violently like in '''Figure 1''' and '''2'''. Notice that the amplitude of the fluctuation is ~3 dB, which was one FEMATTN step (at this date). This happens when hattn/vattn settings of the antenna get changed somehow and two polarizations get very unbalanced. The result is that the automatic gain control is not being able to find a happy level for both at the same time, and went into an oscillation. To calm it down, first issue the commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;femauto-off ant#&lt;br /&gt;
hattn 0 0 ant#&lt;br /&gt;
vattn 0 0 ant#&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which turns off the automatic gain control. '''If the antenna is on the Sun, temporarily move it off the Sun using''' &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
radecoff 0 10 ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
With the antenna off the Sun, set the hattn and vattn settings until both power levels are around 3 dB, i.e.:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hattn 0 12 ant#&lt;br /&gt;
vattn 0 11 ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where the choice of attenuations (12 and 11 in this example) are those that set the power level close to 3 dB. Finally, turn the gain control back on, with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
femauto-on ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you issued the radecoff command, be sure to remove it with'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
radecoff 0 0 ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;If the fluctuation is within one FEMATTN step (2 dB as of 12/12/16, check [http://www.ovsa.njit.edu/wiki/index.php/Schedule_Commands#FEMATTN_level_.5Bantennalist.5D Schedule Command - FEMATTN level]), the cause might be just interference. In this case, leave it for a while and see if the oscillation goes away.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Antenna does not stow (Ant 10) ===&lt;br /&gt;
&lt;br /&gt;
This mostly seems to happen on Ant 10 (as of ~July 2017). The symptom is that Ant 10 keeps staying at &amp;quot;TO STOW&amp;quot; status while all other (old) antennas are AT STOW already at the end of the observation. You might have tried the command &amp;quot;stow ant10&amp;quot;, but it did not change the status. If this continues for more than a minute or so, it is likely that the antenna is running into a limit, and cannot be stowed properly with just &amp;quot;stow ant10&amp;quot; command (you also cannot trust if it does go to STOW by itself much later). To properly stow the antenna, '''issue &amp;quot;stop ant10&amp;quot; first''', then do &amp;quot;stow ant10&amp;quot;. You may need to do this multiple times. If you don't properly stow the antenna this way, it may not start tracking automatically next morning, and you will miss the data from this antenna.&lt;br /&gt;
&lt;br /&gt;
=== Antenna tab is blank and an attempt to switch to it causes the Stateframe to freeze ===&lt;br /&gt;
&lt;br /&gt;
This occurred around early June of 2017. The cause turned out to be a change in numpy behavior. Dr. Gary updated the numpy at some point and a subtle difference caused it. This means that we should think about software upgrade as one of the causes of malfunctions of our system sometimes.&lt;br /&gt;
&lt;br /&gt;
=== Antenna shows (Lo or Hi) Hard limit and does not track ===&lt;br /&gt;
&lt;br /&gt;
If a hard limit of any azel antenna (1-8 or 12) is ON, follow this procedure into the Raw Command window of the schedule (with no typos).&lt;br /&gt;
&lt;br /&gt;
1. Make sure that other antennas are tracking a source and that no source changes are coming up within the next minute or so.&lt;br /&gt;
&lt;br /&gt;
2. Put antenna in velocity mode with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
runmode 2 ant#  (e.g for antenna 6, use &amp;quot;runmode 2 ant6&amp;quot;)   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be sure to specify the antenna, otherwise ALL antennas will move. &lt;br /&gt;
&lt;br /&gt;
3. Drive the antenna OFF the limit in velocity mode.  &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;axis&amp;gt;velocity &amp;lt;speed&amp;gt; ant# (e.g &amp;quot;azimuthvelocity 5000 ant6&amp;quot; for which antenna 6 begins to move in azimuth, to drive off the Lo limit)  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If the limit is on the azimuth axis, set &amp;lt;axis&amp;gt;velocity as &amp;quot;azimuthvelocity&amp;quot;.  If the limit is on the elevation axis, set &amp;lt;axis&amp;gt;velocity as &amp;quot;elevationvelocity&amp;quot;.&lt;br /&gt;
To drive off a low limit, use a positive velocity 5000.  To drive off a high limit, use a negative velocity -5000. Units are 1/10000th of a deg/s, so 5000 means 0.5 deg/s.&lt;br /&gt;
  &lt;br /&gt;
4. After the limit is off, set the velocity back to zero.&lt;br /&gt;
&lt;br /&gt;
Wait for up to ~10-30 s, until the Hard Limit indicator goes OFF (on the antenna tab). &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;axis&amp;gt;velocity 0 ant# (e.g &amp;quot;azimuthvelocity 0 ant6&amp;quot; for which antenna 6 stops moving) &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Bring antenna to track.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
track ant# (e.g &amp;quot;track ant6&amp;quot; for which antenna 6 resumes normal slew to target and starts tracking)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the Lo Hard Limit indicator does not go OFF after 30 s, go ahead with commands 4 and 5 (although tracking will not work) and let Dr. Gary know about it.&lt;br /&gt;
&lt;br /&gt;
=== Control Room Temp row is red (temp above 85 F) ===&lt;br /&gt;
&lt;br /&gt;
This information tells you what the temperature of the EOVSA control room (where all hardwares are) is. When this becomes higher than 85 F, this row becomes red, and we must let Kjell and Dr. Gary know and shut down the system to protect our hardwares. It only happened once before, but when it happens it is critical, so you must act immediately.&lt;br /&gt;
&lt;br /&gt;
Note that, when the row is grey, it is only because the &amp;quot;Pressure&amp;quot; information is zero, which means that we're not getting weather information. So this is not related to the control room temperature.&lt;br /&gt;
&lt;br /&gt;
=== Front End Temperature shows 0 ===&lt;br /&gt;
&lt;br /&gt;
If front end temperature shows all 0 and the attenuation tab gives 'nan' for a certain antenna, you can cycle the front end power by issuing following command in raw command window: '$pcycle fem ant#', where ant# is the antenna that having the problem.&lt;br /&gt;
&lt;br /&gt;
== Data recording (DPP) ==&lt;br /&gt;
&lt;br /&gt;
=== Data recording has stopped (ls /data1/IDB |tail does not return the most recent file) ===&lt;br /&gt;
&lt;br /&gt;
You need to delete dpplock.txt file. Follow these steps:&lt;br /&gt;
&lt;br /&gt;
1. Enter &amp;quot;top&amp;quot; into user@dpp.solar.pvt command line (if user@dpp.solar.pvt is not there, open a new terminal/terminal tab in VNC viewer &amp;amp; type “ssh -X user@dpp.solar.pvt).&lt;br /&gt;
&lt;br /&gt;
2. Look for &amp;quot;dppxmp” under “command” column. &amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;'''If it is there, do NOT delete dpplock.txt.'''&amp;lt;/span&amp;gt; If it’s not there, then quit top by hitting “q” and proceed.&lt;br /&gt;
&lt;br /&gt;
3. Type “rmlock&amp;quot; on DPP terminal. Check if the data recording has recovered by sending &amp;quot;ls /data1/IDB |tail&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Network ==&lt;br /&gt;
&lt;br /&gt;
=== Cannot open VNC Viewer, or VNC Viewer's response is too slow ===&lt;br /&gt;
&lt;br /&gt;
Open the “local” raw command window and Stateframe window by following these steps:&lt;br /&gt;
&lt;br /&gt;
1. Type &amp;quot;cd /common/python/current&amp;quot; in helios.solar.pvt terminal of MobaXterm&lt;br /&gt;
&lt;br /&gt;
2. Type &amp;quot;./sched_commands.py&amp;quot; for raw command window&lt;br /&gt;
&lt;br /&gt;
3. Type &amp;quot;./sf_display.py&amp;quot; for Stateframe window (add “ &amp;amp;” in the end if you want to keep typing the command in the same helios window) -- note that this Stateframe window may take a while (~5 min or more) to load.&lt;br /&gt;
&lt;br /&gt;
== Others ==&lt;br /&gt;
&lt;br /&gt;
[[File:FLM20151005.png|thumb|upright=2.0|'''Figure 3:''' Geosynchronous satellite signals seen in flare monitor.]]&lt;br /&gt;
&lt;br /&gt;
=== Strong interference in flare monitor ===&lt;br /&gt;
&lt;br /&gt;
Twice per year (for 1-2 weeks centered around Mar. 5 and Oct. 5), the Sun enters in geosynchronous satellite belt. In this case, we see strong signals on flare monitor, like in '''Figure 3''' (blue line). These are radio signals from man-made satellites, which will not harm the system and cannot be avoided, so don't be alarmed.&lt;br /&gt;
&lt;br /&gt;
=== The “streak” in the lowest frequency of the dynamic spectrum ===&lt;br /&gt;
&lt;br /&gt;
If you are seeing this at the beginning or at the end of the day, this is the Sun! See '''Figure 4''' and '''Figure 5''' for sample images. When the baseline is foreshortened (as in near sunrise or sunset), the response is quite strong to the solar disk.  As the Sun rises, the intensity goes down because the baselines start to get longer.  You will actually see the reverse trend in the afternoon, although often the RFI is stronger so the color scale is more blue than in the morning.&lt;br /&gt;
&lt;br /&gt;
[[File:XSP20151202160136.png|thumb|upright=2.0|'''Figure 4:''' The solar signal at the beginning of 2015-12-02 observation period. Notice that the low frequency intensity is decreasing as the Sun rises.]]&lt;br /&gt;
&lt;br /&gt;
[[File:XSP20151202213507.png|thumb|upright=2.0|'''Figure 5:''' The solar signal at the end of 2015-12-02 observation period. Notice the reverse effect compared to '''Figure 4'''.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=2305</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=2305"/>
		<updated>2018-01-17T19:38:03Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Procedure for Analysis ==&lt;br /&gt;
Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. The routines (on pipeline machine) to retrieve and analyze the data are in the module refcal_anal.py. Start from a time range during which the reference calibration observation occurred (check the [http://ovsa.njit.edu/phasecal/ phasecal results] to see which 1-hr scan had stable phases)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
#example time range of the refcal scan that took place BEFORE the observation&lt;br /&gt;
trange=Time(['2017-04-08T14:00','2017-04-08T15:00'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now read the data from that timerange&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that there are optional arguments that can be given, such as projid='PHASECAL' (the default) and srcid='1229+060', but these are generally not needed.&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters (better to check more bands).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS: From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Observations within this time range will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0. We can further determine a finer selection of time range within this scan that has clean and stable phases if needed, by setting the new timerange in &amp;quot;trange&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=trange,scanidx=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== Getting Band 4 Phase (2017-Dec-24) ==&lt;br /&gt;
[[File: Band4_phase_diff.png | thumb | 600px | '''Figure 1:''' LoRX - HiRX phase differences 2017-12-24.  The blue points are the phase differences for common frequencies between pcal_lo_all.fsq and pcal_hi_all.fsq, for parallel feeds (XX and YY), and the orange points are the same for the crossed feeds (XY and YX).  Note that the XX and XY points are identical (except at high frequencies where noise is greater), while the YY and YX points differ by what looks like a frequency-independent constant.  The green curves are quadratic fits to the blue points.  The phase differences, and their fits, are nearly identical on each of the 13 antennas, which was not necessarily expected.  Most of the slope here is a delay difference of about 5.9 ns.]]&lt;br /&gt;
&lt;br /&gt;
Because the refcals have up to now been done with the high-frequency receiver (HiRX) on Antenna 14, we are only measuring the reference phase on bands 5-34, even though band 4 has been present in the solar data.  However, the shape of the phase vs. frequency is very regular, suggesting that if we know this shape (which could change over time, so it should be remeasured from time to time) then we can predict the Band 4 phase based on the phases of the higher bands.&lt;br /&gt;
&lt;br /&gt;
To do this, we measure the phase differences between the low-frequency receiver (LoRX) and HiRx for those frequencies that are in common.  It happens that there are many frequencies in common, since the LoRX covers 1-6 GHz and the HiRX covers 3-18 GHz.  In fact, the pcal_lo_all.fsq frequency sequence measures bands 1-12 (1-7 GHz) and the phases seem to be coherent from 6-7 GHz. This provides 38 frequencies in common between LoRX and HiRX, from which to determine the phase differences.&lt;br /&gt;
&lt;br /&gt;
The procedure, then, is to measure the LoRX and HiRX phases near the meridian passage of a strong calibrator (so that all of the feeds are approximately parallel and no feed-rotation-correction is needed).  We first observe the source with the LoRX receiver using pcal_lo_all.fsq, and then observe the source with the HiRX receiver using pcal_hi_all.fsq.  This is part of another procedure where we then rotate the Ant 14 feed by 90 degrees so that it is crossed with respect to the others.  It seems that the XX and YY phases of the parallel feeds should be the same as the XY and YX phases of the crossed feeds, and therefore we should get the same phase differences in the two cases. &lt;br /&gt;
Here is an example of obtaining the phases of such observations and plotting the phase differences, with corresponding parabolic fits:&lt;br /&gt;
&lt;br /&gt;
 npzfiles = ['/common/webplots/phasecal/20171224131548_1229+020.npz','/common/webplots/phasecal/20171224135049_1229+020.npz',&lt;br /&gt;
             '/common/webplots/phasecal/20171224142048_1229+020.npz','/common/webplots/phasecal/20171224145148_1229+020.npz']  # LoRX, HiRX, HiRX, LoRX&lt;br /&gt;
 import read_idb as ri&lt;br /&gt;
 import numpy as np&lt;br /&gt;
 import matplotlib.pylab as plt&lt;br /&gt;
 from util import common_val_idx, lobe&lt;br /&gt;
 outlo1 = ri.read_npz([npzfiles[0]])  # Parallel feed LoRX&lt;br /&gt;
 outhi1 = ri.read_npz([npzfiles[1]])  # Parallel feed HiRX&lt;br /&gt;
 outhi2 = ri.read_npz([npzfiles[2]])  # Crossed feed HiRX&lt;br /&gt;
 outlo2 = ri.read_npz([npzfiles[3]])  # Crossed feed LoRX&lt;br /&gt;
 phlo1 = np.angle(np.sum(outlo1['x'][ri.bl2ord[13,0:13]],3)) # Parallel LoRX phases averaged over time&lt;br /&gt;
 phhi1 = np.angle(np.sum(outhi1['x'][ri.bl2ord[13,0:13]],3)) # Parallel HiRx phases averaged over time&lt;br /&gt;
 phlo2 = np.angle(np.sum(outlo2['x'][ri.bl2ord[13,0:13]],3)) # Crossed LoRX phases averaged over time&lt;br /&gt;
 phhi2 = np.angle(np.sum(outhi2['x'][ri.bl2ord[13,0:13]],3)) # Crossed HiRx phases averaged over time&lt;br /&gt;
 idx1,idx2 = common_val_idx(outlo1['fghz'],outhi1['fghz'])  # Find common frequency indexes&lt;br /&gt;
 pdif1 = np.unwrap(lobe(phlo1[:,:,idx1] - phhi1[:,:,idx2]))  # Parallel phase differences at common frequencies&lt;br /&gt;
 pdif2 = np.unwrap(lobe(phlo2[:,:,idx1] - phhi2[:,:,idx2]))  # Crossed phase differences&lt;br /&gt;
 fcom = outlo1['fghz'][idx1]          # Common frequencies&lt;br /&gt;
 band4_fghz = outlo1['fghz'][23:31]   # Band 4 frequencies&lt;br /&gt;
 ps = []&lt;br /&gt;
 f, ax = plt.subplots(2,13)&lt;br /&gt;
 for i in range(13):&lt;br /&gt;
     for j in range(2):&lt;br /&gt;
         ax[j,i].cla()&lt;br /&gt;
         ax[j,i].plot(fcom,pdif1[i,j],'.')     # Plot parallel XX, YY phase differences&lt;br /&gt;
         ax[j,i].plot(fcom,pdif2[i,j+2],'.')   # Plot crossed XY, YX phase differences&lt;br /&gt;
         ax[j,i].set_ylim(-1,11)&lt;br /&gt;
         ps.append(np.polyfit(fcom,pdif1[i,j],2))&lt;br /&gt;
         ax[j,i].plot(fcom,np.polyval(ps[-1],fcom),'-')&lt;br /&gt;
&lt;br /&gt;
The resulting plot is shown in '''Figure 1''' above.  Curiously, the XX and YY phase differences (blue points) differ by about -0.5 radians, while the XX and YX phase differences (blue in top row vs. orange in bottom row) differ by +0.5 radians.  Meanwhile, the XX and XY phase differences are essentially identical.  This relates to the X vs. Y delays in some manner that has yet to be understood. &lt;br /&gt;
&lt;br /&gt;
The phase differences can be extrapolated to the band4 phases by&lt;br /&gt;
 for p in np.array(ps)[::2]:&lt;br /&gt;
     print ('{:8.2f}'*8).format(*np.polyval(p,band4_fghz))&lt;br /&gt;
&lt;br /&gt;
 for p in np.array(ps)[1::2]:&lt;br /&gt;
     print ('{:8.2f}'*8).format(*np.polyval(p,band4_fghz))&lt;br /&gt;
which results in the following tables (I put the headings in by hand):&lt;br /&gt;
&lt;br /&gt;
  XX Phase Differences for Band 4&lt;br /&gt;
     2.87    2.89    2.90    2.92    2.94    2.96    2.97    3.00&lt;br /&gt;
    ------  ------  ------  ------  ------  ------  ------  ------&lt;br /&gt;
 1  -0.596  -0.562  -0.528  -0.494  -0.460  -0.426  -0.392  -0.358&lt;br /&gt;
 2  -0.574  -0.541  -0.508  -0.475  -0.442  -0.408  -0.375  -0.341&lt;br /&gt;
 3  -0.567  -0.535  -0.502  -0.469  -0.436  -0.403  -0.370  -0.337&lt;br /&gt;
 4  -0.617  -0.583  -0.549  -0.514  -0.479  -0.444  -0.409  -0.374&lt;br /&gt;
 5  -0.664  -0.629  -0.594  -0.559  -0.523  -0.488  -0.452  -0.416&lt;br /&gt;
 6  -0.653  -0.619  -0.584  -0.549  -0.514  -0.479  -0.444  -0.409&lt;br /&gt;
 7  -0.593  -0.558  -0.524  -0.489  -0.454  -0.419  -0.384  -0.349&lt;br /&gt;
 8  -0.565  -0.532  -0.499  -0.466  -0.433  -0.399  -0.366  -0.332&lt;br /&gt;
 9  -0.720  -0.686  -0.651  -0.617  -0.582  -0.548  -0.513  -0.478&lt;br /&gt;
 10 -0.542  -0.510  -0.478  -0.446  -0.413  -0.381  -0.348  -0.315&lt;br /&gt;
 11 -0.660  -0.626  -0.591  -0.557  -0.522  -0.487  -0.452  -0.417&lt;br /&gt;
 12 -0.521  -0.490  -0.460  -0.429  -0.397  -0.366  -0.335  -0.303&lt;br /&gt;
 13 -0.793  -0.753  -0.714  -0.674  -0.634  -0.595  -0.555  -0.515&lt;br /&gt;
&lt;br /&gt;
  YY Phase Differences for Band 4&lt;br /&gt;
     2.87    2.89    2.90    2.92    2.94    2.96    2.97    3.00&lt;br /&gt;
    ------  ------  ------  ------  ------  ------  ------  ------&lt;br /&gt;
 1  -1.016  -0.980  -0.944  -0.909  -0.873  -0.837  -0.801  -0.765&lt;br /&gt;
 2  -0.988  -0.952  -0.916  -0.880  -0.844  -0.808  -0.772  -0.736&lt;br /&gt;
 3  -1.012  -0.977  -0.942  -0.906  -0.871  -0.836  -0.800  -0.765&lt;br /&gt;
 4  -1.008  -0.973  -0.939  -0.904  -0.869  -0.834  -0.799  -0.764&lt;br /&gt;
 5  -1.065  -1.027  -0.990  -0.953  -0.916  -0.878  -0.841  -0.803&lt;br /&gt;
 6  -0.924  -0.890  -0.856  -0.823  -0.789  -0.755  -0.721  -0.687&lt;br /&gt;
 7  -0.584  -0.561  -0.538  -0.515  -0.492  -0.468  -0.444  -0.420&lt;br /&gt;
 8  -1.038  -1.003  -0.967  -0.931  -0.895  -0.859  -0.823  -0.787&lt;br /&gt;
 9  -1.079  -1.045  -1.010  -0.975  -0.939  -0.904  -0.869  -0.834&lt;br /&gt;
 10 -1.155  -1.117  -1.079  -1.041  -1.003  -0.964  -0.926  -0.888&lt;br /&gt;
 11 -1.046  -1.010  -0.975  -0.939  -0.903  -0.867  -0.831  -0.795&lt;br /&gt;
 12 -0.781  -0.750  -0.719  -0.688  -0.657  -0.625  -0.594  -0.562&lt;br /&gt;
 13 -1.163  -1.123  -1.082  -1.042  -1.001  -0.960  -0.919  -0.879&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/13 || 13:48:39 ||  2136+006  || || 0 ||  || 5~23 || [http://ovsa.njit.edu/refcal/20170413_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170413_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/11 || 12:56:22 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170611_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170611_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 02:33:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 8 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 13:01:19 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/30 || 02:47:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170630_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170630_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/01 || 02:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170701_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170701_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/02 || 03:01:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170702_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170702_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/03 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170703_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170703_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/04 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170704_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170704_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/05 || 02:55:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170705_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170705_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 13:16:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/10 || 13:14:17 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170710_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170710_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/11 || 13:14:18 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170711_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170711_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/12 || 13:14:24 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170712_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170712_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/13 || 13:14:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170713_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170713_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/14 || 13:15:35 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170714_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170714_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 02:48:33 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 13:16:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/17 || 13:14:54 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170717_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170717_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/18 || 13:15:31 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170718_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170718_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/19 || 13:16:16 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170719_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170719_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/20 || 13:16:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170720_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170720_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/21 || 13:20:57 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170721_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170721_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/22 || 13:21:36 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170722_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170722_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/23 || 13:34:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170723_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170723_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/24 || 13:22:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170724_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170724_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/25 || 13:23:38 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170725_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170725_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/26 || 18:00:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170726_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170726_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/28 || 02:42:36 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170728_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170728_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/29 || 13:37:40 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170729_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170729_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/31 || 13:27:05 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170731_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170731_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/01 || 13:28:30 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170801_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170801_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/02 || 13:29:13 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170802_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170802_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/03 || 13:29:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170803_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170803_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 02:35:58 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 13:31:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/06 || 13:32:06 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170806_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170806_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/07 || 13:32:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170807_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170807_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/08 || 13:33:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170808_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170808_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/11 || 12:47:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170811_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170811_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/12 || 12:43:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170812_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170812_refcal_amp.png Amp] || No calibration for: Ant 9&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/13 || 12:39:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170813_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170813_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/14 || 12:34:19 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170814_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170814_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/15 || 12:31:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170815_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170815_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/16 || 12:27:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170816_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170816_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/17 || 12:23:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170817_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170817_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/18 || 12:19:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170818_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170818_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/19 || 12:15:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170819_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170819_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/21 || 12:07:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170821_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170821_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/22 || 12:03:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170822_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170822_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/23 || 12:14:51 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170823_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170823_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/24 || 11:55:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170824_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170824_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/25 || 14:01:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170825_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170825_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/26 || 13:57:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170826_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170826_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/28 || 01:03:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170828_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170828_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 00:59:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/30 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170830_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170830_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/31 || 13:50:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170831_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170831_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/01 || 13:51:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170901_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170901_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/02 || 13:52:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170902_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170902_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/03 || 13:53:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170903_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170903_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/04 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170904_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170904_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/05 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170905_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170905_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/06 || 13:55:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170906_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170906_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/07 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170907_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170907_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/08 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170908_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170908_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 00:01:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 13:57:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/11 || 13:58:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170911_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170911_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/12 || 14:00:11 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170912_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170912_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 04:15:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||Refcal at around 14 UT is also good. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 14:01:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/15 || 14:39:27 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170915_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170915_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/16 || 13:46:56 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170916_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170916_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/17 || 13:47:46 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170917_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170917_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/18 || 14:05:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170918_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170918_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/19 || 14:06:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170919_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170919_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/22 || 14:08:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170922_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170922_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/23 || 14:09:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170923_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170923_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/24 || 14:10:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170924_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170924_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/25 || 14:17:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170925_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170925_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/26 || 14:10:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170926_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170926_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/27 || 14:06:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170927_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170927_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/28 || 14:02:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170928_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170928_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/29 || 14:01:20 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170929_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170929_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/30 || 13:54:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170930_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170930_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/01 || 13:50:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171001_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171001_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/02 || 13:47:28 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171002_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171002_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/03 || 13:43:25 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171003_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171003_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/04 || 13:40:52 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171004_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171004_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/06 || 02:42:39 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171006_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171006_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/06 || 13:32:53 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171006_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171006_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/07 || 13:30:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171007_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171007_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/08 || 13:26:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171008_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171008_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/10 || 02:31:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171010_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171010_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/11 || 02:23:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171011_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171011_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/12 || 02:19:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171012_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171012_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/13 || 02:15:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171013_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171013_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/13 || 12:54:23 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171013_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171013_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/14 || 12:50:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171014_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171014_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/16 || 02:07:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171016_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171016_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/18 || 01:59:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171018_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171018_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/19 || 12:30:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171019_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171019_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/20 || 12:22:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171021_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171021_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/21 || 12:22:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171021_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171021_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/22 || 12:18:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171022_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171022_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/24 || 12:10:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171024_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171024_refcal_amp.png Amp] || Few frequencies have unusually high amplitudes. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/24 || 01:35:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171024_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171024_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/25 || 01:31:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171025_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171025_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/26 || 12:02:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171026_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171026_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/27 || 11:58:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171027_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171027_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/28 || 11:54:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171028_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171028_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/29 || 11:50:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171029_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171029_refcal_amp.png Amp] || Ant 8 was down.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/02 || 14:50:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171102_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171102_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/03 || 14:52:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171103_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171103_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/04 || 14:53:51 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171104_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171104_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/05 || 14:54:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171105_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171105_refcal_amp.png Amp] || Ant 3 was down. No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/07 || 00:39:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171107_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171107_00_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/07 || 14:56:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171107_14_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171107_14_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/08 || 14:57:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171108_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171108_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/09 || 14:58:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171109_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171109_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/10 || 15:00:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171110_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171110_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/12 || 00:22:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171112_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171112_00_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/12 || 15:02:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171112_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171112_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/15 || 00:12:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171115_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171115_00_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/15 || 15:07:00 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171115_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171115_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/16 || 15:08:14 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171116_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171116_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/17 || 15:09:29 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171117_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171117_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/19 || 00:13:26 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171119_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171119_00_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/19 || 15:11:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171119_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171119_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/21 || 00:11:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171121_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171121_00_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/22 || 00:10:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171122_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171122_00_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/22 || 15:15:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171122_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171122_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/23 || 15:16:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171123_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171123_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/24 || 15:18:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171124_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171124_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/25 || 15:19:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171125_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171125_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/26 || 15:20:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171126_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171126_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/03 || 00:05:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171203_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171203_00_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/04 || 15:29:13 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171204_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171204_15_refcal_amp.png Amp] || No calibration on Ant 3 and 6&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/06 || 00:05:14 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171206_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171206_00_refcal_amp.png Amp] || First refcal on 2017-12-05 is bad. No Ant3 calibration.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/07 || 00:05:06 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171207_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171207_00_refcal_amp.png Amp] || First refcal on 2017-12-06 had Windscram. No Ant3 calibration.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/07 || 15:32:07 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171207_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171207_15_refcal_amp.png Amp] || No Ant 3 calibration.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/08 || 15:33:05 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171208_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171208_15_refcal_amp.png Amp] || No Ant3 calibration.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/13 || 15:37:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171213_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171213_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/18 || 00:06:26 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171218_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171218_00_refcal_amp.png Amp] || No calibration for: Ant 4&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/18 || 15:40:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171218_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171218_15_refcal_amp.png Amp] || No calibration for: Ant 4 Ant 6&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/19 || 23:57:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171219_23_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171219_23_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/22 || 15:27:55 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171222_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171222_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/23 || 15:43:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171223_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171223_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/24 || 15:42:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171224_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171224_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/25 || 15:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171225_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171225_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/27 || 00:10:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171227_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171227_00_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/27 || 15:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171227_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171227_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/28 || 15:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171228_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171228_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/29 || 15:45:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171229_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171229_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/30 || 15:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171230_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171230_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/31 || 15:45:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171231_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171231_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/01 || 15:45:32 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180101_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180101_15_refcal_amp.png Amp] || No calibration on Ant 6&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/02 || 15:45:32 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180102_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180102_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/04 || 00:17:48 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180104_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180104_00_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/04 || 15:45:31 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180104_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180104_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/06 || 00:19:45 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180106_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180106_00_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/07 || 15:45:08 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180107_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180107_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/08 || 15:44:57 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180108_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180108_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/10 || 00:23:57 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180110_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180110_00_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/15 || 15:42:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180115_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180115_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/16 || 15:41:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180116_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180116_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=2304</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=2304"/>
		<updated>2018-01-16T01:48:34Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Procedure for Analysis ==&lt;br /&gt;
Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. The routines (on pipeline machine) to retrieve and analyze the data are in the module refcal_anal.py. Start from a time range during which the reference calibration observation occurred (check the [http://ovsa.njit.edu/phasecal/ phasecal results] to see which 1-hr scan had stable phases)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
#example time range of the refcal scan that took place BEFORE the observation&lt;br /&gt;
trange=Time(['2017-04-08T14:00','2017-04-08T15:00'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now read the data from that timerange&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that there are optional arguments that can be given, such as projid='PHASECAL' (the default) and srcid='1229+060', but these are generally not needed.&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters (better to check more bands).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS: From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Observations within this time range will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0. We can further determine a finer selection of time range within this scan that has clean and stable phases if needed, by setting the new timerange in &amp;quot;trange&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=trange,scanidx=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== Getting Band 4 Phase (2017-Dec-24) ==&lt;br /&gt;
[[File: Band4_phase_diff.png | thumb | 600px | '''Figure 1:''' LoRX - HiRX phase differences 2017-12-24.  The blue points are the phase differences for common frequencies between pcal_lo_all.fsq and pcal_hi_all.fsq, for parallel feeds (XX and YY), and the orange points are the same for the crossed feeds (XY and YX).  Note that the XX and XY points are identical (except at high frequencies where noise is greater), while the YY and YX points differ by what looks like a frequency-independent constant.  The green curves are quadratic fits to the blue points.  The phase differences, and their fits, are nearly identical on each of the 13 antennas, which was not necessarily expected.  Most of the slope here is a delay difference of about 5.9 ns.]]&lt;br /&gt;
&lt;br /&gt;
Because the refcals have up to now been done with the high-frequency receiver (HiRX) on Antenna 14, we are only measuring the reference phase on bands 5-34, even though band 4 has been present in the solar data.  However, the shape of the phase vs. frequency is very regular, suggesting that if we know this shape (which could change over time, so it should be remeasured from time to time) then we can predict the Band 4 phase based on the phases of the higher bands.&lt;br /&gt;
&lt;br /&gt;
To do this, we measure the phase differences between the low-frequency receiver (LoRX) and HiRx for those frequencies that are in common.  It happens that there are many frequencies in common, since the LoRX covers 1-6 GHz and the HiRX covers 3-18 GHz.  In fact, the pcal_lo_all.fsq frequency sequence measures bands 1-12 (1-7 GHz) and the phases seem to be coherent from 6-7 GHz. This provides 38 frequencies in common between LoRX and HiRX, from which to determine the phase differences.&lt;br /&gt;
&lt;br /&gt;
The procedure, then, is to measure the LoRX and HiRX phases near the meridian passage of a strong calibrator (so that all of the feeds are approximately parallel and no feed-rotation-correction is needed).  We first observe the source with the LoRX receiver using pcal_lo_all.fsq, and then observe the source with the HiRX receiver using pcal_hi_all.fsq.  This is part of another procedure where we then rotate the Ant 14 feed by 90 degrees so that it is crossed with respect to the others.  It seems that the XX and YY phases of the parallel feeds should be the same as the XY and YX phases of the crossed feeds, and therefore we should get the same phase differences in the two cases. &lt;br /&gt;
Here is an example of obtaining the phases of such observations and plotting the phase differences, with corresponding parabolic fits:&lt;br /&gt;
&lt;br /&gt;
 npzfiles = ['/common/webplots/phasecal/20171224131548_1229+020.npz','/common/webplots/phasecal/20171224135049_1229+020.npz',&lt;br /&gt;
             '/common/webplots/phasecal/20171224142048_1229+020.npz','/common/webplots/phasecal/20171224145148_1229+020.npz']  # LoRX, HiRX, HiRX, LoRX&lt;br /&gt;
 import read_idb as ri&lt;br /&gt;
 import numpy as np&lt;br /&gt;
 import matplotlib.pylab as plt&lt;br /&gt;
 from util import common_val_idx, lobe&lt;br /&gt;
 outlo1 = ri.read_npz([npzfiles[0]])  # Parallel feed LoRX&lt;br /&gt;
 outhi1 = ri.read_npz([npzfiles[1]])  # Parallel feed HiRX&lt;br /&gt;
 outhi2 = ri.read_npz([npzfiles[2]])  # Crossed feed HiRX&lt;br /&gt;
 outlo2 = ri.read_npz([npzfiles[3]])  # Crossed feed LoRX&lt;br /&gt;
 phlo1 = np.angle(np.sum(outlo1['x'][ri.bl2ord[13,0:13]],3)) # Parallel LoRX phases averaged over time&lt;br /&gt;
 phhi1 = np.angle(np.sum(outhi1['x'][ri.bl2ord[13,0:13]],3)) # Parallel HiRx phases averaged over time&lt;br /&gt;
 phlo2 = np.angle(np.sum(outlo2['x'][ri.bl2ord[13,0:13]],3)) # Crossed LoRX phases averaged over time&lt;br /&gt;
 phhi2 = np.angle(np.sum(outhi2['x'][ri.bl2ord[13,0:13]],3)) # Crossed HiRx phases averaged over time&lt;br /&gt;
 idx1,idx2 = common_val_idx(outlo1['fghz'],outhi1['fghz'])  # Find common frequency indexes&lt;br /&gt;
 pdif1 = np.unwrap(lobe(phlo1[:,:,idx1] - phhi1[:,:,idx2]))  # Parallel phase differences at common frequencies&lt;br /&gt;
 pdif2 = np.unwrap(lobe(phlo2[:,:,idx1] - phhi2[:,:,idx2]))  # Crossed phase differences&lt;br /&gt;
 fcom = outlo1['fghz'][idx1]          # Common frequencies&lt;br /&gt;
 band4_fghz = outlo1['fghz'][23:31]   # Band 4 frequencies&lt;br /&gt;
 ps = []&lt;br /&gt;
 f, ax = plt.subplots(2,13)&lt;br /&gt;
 for i in range(13):&lt;br /&gt;
     for j in range(2):&lt;br /&gt;
         ax[j,i].cla()&lt;br /&gt;
         ax[j,i].plot(fcom,pdif1[i,j],'.')     # Plot parallel XX, YY phase differences&lt;br /&gt;
         ax[j,i].plot(fcom,pdif2[i,j+2],'.')   # Plot crossed XY, YX phase differences&lt;br /&gt;
         ax[j,i].set_ylim(-1,11)&lt;br /&gt;
         ps.append(np.polyfit(fcom,pdif1[i,j],2))&lt;br /&gt;
         ax[j,i].plot(fcom,np.polyval(ps[-1],fcom),'-')&lt;br /&gt;
&lt;br /&gt;
The resulting plot is shown in '''Figure 1''' above.  Curiously, the XX and YY phase differences (blue points) differ by about -0.5 radians, while the XX and YX phase differences (blue in top row vs. orange in bottom row) differ by +0.5 radians.  Meanwhile, the XX and XY phase differences are essentially identical.  This relates to the X vs. Y delays in some manner that has yet to be understood. &lt;br /&gt;
&lt;br /&gt;
The phase differences can be extrapolated to the band4 phases by&lt;br /&gt;
 for p in np.array(ps)[::2]:&lt;br /&gt;
     print ('{:8.2f}'*8).format(*np.polyval(p,band4_fghz))&lt;br /&gt;
&lt;br /&gt;
 for p in np.array(ps)[1::2]:&lt;br /&gt;
     print ('{:8.2f}'*8).format(*np.polyval(p,band4_fghz))&lt;br /&gt;
which results in the following tables (I put the headings in by hand):&lt;br /&gt;
&lt;br /&gt;
  XX Phase Differences for Band 4&lt;br /&gt;
     2.87    2.89    2.90    2.92    2.94    2.96    2.97    3.00&lt;br /&gt;
    ------  ------  ------  ------  ------  ------  ------  ------&lt;br /&gt;
 1  -0.596  -0.562  -0.528  -0.494  -0.460  -0.426  -0.392  -0.358&lt;br /&gt;
 2  -0.574  -0.541  -0.508  -0.475  -0.442  -0.408  -0.375  -0.341&lt;br /&gt;
 3  -0.567  -0.535  -0.502  -0.469  -0.436  -0.403  -0.370  -0.337&lt;br /&gt;
 4  -0.617  -0.583  -0.549  -0.514  -0.479  -0.444  -0.409  -0.374&lt;br /&gt;
 5  -0.664  -0.629  -0.594  -0.559  -0.523  -0.488  -0.452  -0.416&lt;br /&gt;
 6  -0.653  -0.619  -0.584  -0.549  -0.514  -0.479  -0.444  -0.409&lt;br /&gt;
 7  -0.593  -0.558  -0.524  -0.489  -0.454  -0.419  -0.384  -0.349&lt;br /&gt;
 8  -0.565  -0.532  -0.499  -0.466  -0.433  -0.399  -0.366  -0.332&lt;br /&gt;
 9  -0.720  -0.686  -0.651  -0.617  -0.582  -0.548  -0.513  -0.478&lt;br /&gt;
 10 -0.542  -0.510  -0.478  -0.446  -0.413  -0.381  -0.348  -0.315&lt;br /&gt;
 11 -0.660  -0.626  -0.591  -0.557  -0.522  -0.487  -0.452  -0.417&lt;br /&gt;
 12 -0.521  -0.490  -0.460  -0.429  -0.397  -0.366  -0.335  -0.303&lt;br /&gt;
 13 -0.793  -0.753  -0.714  -0.674  -0.634  -0.595  -0.555  -0.515&lt;br /&gt;
&lt;br /&gt;
  YY Phase Differences for Band 4&lt;br /&gt;
     2.87    2.89    2.90    2.92    2.94    2.96    2.97    3.00&lt;br /&gt;
    ------  ------  ------  ------  ------  ------  ------  ------&lt;br /&gt;
 1  -1.016  -0.980  -0.944  -0.909  -0.873  -0.837  -0.801  -0.765&lt;br /&gt;
 2  -0.988  -0.952  -0.916  -0.880  -0.844  -0.808  -0.772  -0.736&lt;br /&gt;
 3  -1.012  -0.977  -0.942  -0.906  -0.871  -0.836  -0.800  -0.765&lt;br /&gt;
 4  -1.008  -0.973  -0.939  -0.904  -0.869  -0.834  -0.799  -0.764&lt;br /&gt;
 5  -1.065  -1.027  -0.990  -0.953  -0.916  -0.878  -0.841  -0.803&lt;br /&gt;
 6  -0.924  -0.890  -0.856  -0.823  -0.789  -0.755  -0.721  -0.687&lt;br /&gt;
 7  -0.584  -0.561  -0.538  -0.515  -0.492  -0.468  -0.444  -0.420&lt;br /&gt;
 8  -1.038  -1.003  -0.967  -0.931  -0.895  -0.859  -0.823  -0.787&lt;br /&gt;
 9  -1.079  -1.045  -1.010  -0.975  -0.939  -0.904  -0.869  -0.834&lt;br /&gt;
 10 -1.155  -1.117  -1.079  -1.041  -1.003  -0.964  -0.926  -0.888&lt;br /&gt;
 11 -1.046  -1.010  -0.975  -0.939  -0.903  -0.867  -0.831  -0.795&lt;br /&gt;
 12 -0.781  -0.750  -0.719  -0.688  -0.657  -0.625  -0.594  -0.562&lt;br /&gt;
 13 -1.163  -1.123  -1.082  -1.042  -1.001  -0.960  -0.919  -0.879&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/13 || 13:48:39 ||  2136+006  || || 0 ||  || 5~23 || [http://ovsa.njit.edu/refcal/20170413_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170413_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/11 || 12:56:22 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170611_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170611_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 02:33:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 8 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 13:01:19 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/30 || 02:47:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170630_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170630_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/01 || 02:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170701_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170701_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/02 || 03:01:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170702_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170702_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/03 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170703_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170703_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/04 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170704_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170704_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/05 || 02:55:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170705_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170705_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 13:16:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/10 || 13:14:17 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170710_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170710_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/11 || 13:14:18 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170711_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170711_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/12 || 13:14:24 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170712_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170712_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/13 || 13:14:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170713_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170713_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/14 || 13:15:35 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170714_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170714_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 02:48:33 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 13:16:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/17 || 13:14:54 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170717_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170717_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/18 || 13:15:31 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170718_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170718_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/19 || 13:16:16 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170719_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170719_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/20 || 13:16:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170720_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170720_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/21 || 13:20:57 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170721_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170721_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/22 || 13:21:36 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170722_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170722_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/23 || 13:34:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170723_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170723_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/24 || 13:22:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170724_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170724_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/25 || 13:23:38 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170725_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170725_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/26 || 18:00:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170726_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170726_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/28 || 02:42:36 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170728_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170728_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/29 || 13:37:40 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170729_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170729_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/31 || 13:27:05 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170731_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170731_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/01 || 13:28:30 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170801_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170801_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/02 || 13:29:13 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170802_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170802_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/03 || 13:29:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170803_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170803_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 02:35:58 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 13:31:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/06 || 13:32:06 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170806_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170806_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/07 || 13:32:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170807_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170807_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/08 || 13:33:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170808_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170808_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/11 || 12:47:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170811_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170811_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/12 || 12:43:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170812_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170812_refcal_amp.png Amp] || No calibration for: Ant 9&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/13 || 12:39:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170813_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170813_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/14 || 12:34:19 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170814_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170814_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/15 || 12:31:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170815_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170815_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/16 || 12:27:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170816_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170816_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/17 || 12:23:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170817_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170817_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/18 || 12:19:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170818_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170818_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/19 || 12:15:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170819_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170819_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/21 || 12:07:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170821_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170821_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/22 || 12:03:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170822_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170822_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/23 || 12:14:51 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170823_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170823_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/24 || 11:55:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170824_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170824_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/25 || 14:01:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170825_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170825_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/26 || 13:57:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170826_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170826_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/28 || 01:03:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170828_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170828_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 00:59:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/30 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170830_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170830_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/31 || 13:50:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170831_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170831_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/01 || 13:51:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170901_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170901_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/02 || 13:52:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170902_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170902_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/03 || 13:53:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170903_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170903_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/04 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170904_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170904_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/05 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170905_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170905_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/06 || 13:55:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170906_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170906_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/07 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170907_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170907_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/08 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170908_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170908_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 00:01:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 13:57:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/11 || 13:58:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170911_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170911_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/12 || 14:00:11 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170912_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170912_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 04:15:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||Refcal at around 14 UT is also good. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 14:01:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/15 || 14:39:27 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170915_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170915_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/16 || 13:46:56 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170916_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170916_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/17 || 13:47:46 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170917_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170917_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/18 || 14:05:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170918_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170918_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/19 || 14:06:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170919_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170919_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/22 || 14:08:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170922_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170922_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/23 || 14:09:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170923_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170923_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/24 || 14:10:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170924_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170924_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/25 || 14:17:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170925_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170925_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/26 || 14:10:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170926_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170926_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/27 || 14:06:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170927_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170927_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/28 || 14:02:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170928_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170928_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/29 || 14:01:20 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170929_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170929_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/30 || 13:54:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170930_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170930_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/01 || 13:50:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171001_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171001_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/02 || 13:47:28 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171002_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171002_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/03 || 13:43:25 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171003_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171003_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/04 || 13:40:52 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171004_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171004_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/06 || 02:42:39 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171006_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171006_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/06 || 13:32:53 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171006_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171006_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/07 || 13:30:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171007_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171007_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/08 || 13:26:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171008_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171008_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/10 || 02:31:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171010_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171010_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/11 || 02:23:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171011_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171011_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/12 || 02:19:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171012_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171012_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/13 || 02:15:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171013_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171013_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/13 || 12:54:23 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171013_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171013_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/14 || 12:50:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171014_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171014_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/16 || 02:07:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171016_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171016_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/18 || 01:59:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171018_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171018_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/19 || 12:30:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171019_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171019_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/20 || 12:22:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171021_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171021_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/21 || 12:22:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171021_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171021_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/22 || 12:18:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171022_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171022_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/24 || 12:10:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171024_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171024_refcal_amp.png Amp] || Few frequencies have unusually high amplitudes. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/24 || 01:35:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171024_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171024_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/25 || 01:31:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171025_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171025_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/26 || 12:02:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171026_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171026_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/27 || 11:58:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171027_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171027_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/28 || 11:54:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171028_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171028_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/29 || 11:50:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171029_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171029_refcal_amp.png Amp] || Ant 8 was down.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/02 || 14:50:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171102_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171102_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/03 || 14:52:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171103_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171103_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/04 || 14:53:51 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171104_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171104_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/05 || 14:54:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171105_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171105_refcal_amp.png Amp] || Ant 3 was down. No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/07 || 00:39:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171107_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171107_00_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/07 || 14:56:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171107_14_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171107_14_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/08 || 14:57:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171108_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171108_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/09 || 14:58:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171109_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171109_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/10 || 15:00:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171110_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171110_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/12 || 00:22:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171112_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171112_00_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/12 || 15:02:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171112_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171112_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/15 || 00:12:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171115_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171115_00_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/15 || 15:07:00 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171115_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171115_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/16 || 15:08:14 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171116_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171116_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/17 || 15:09:29 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171117_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171117_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/19 || 00:13:26 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171119_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171119_00_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/19 || 15:11:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171119_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171119_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/21 || 00:11:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171121_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171121_00_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/22 || 00:10:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171122_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171122_00_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/22 || 15:15:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171122_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171122_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/23 || 15:16:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171123_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171123_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/24 || 15:18:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171124_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171124_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/25 || 15:19:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171125_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171125_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/26 || 15:20:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171126_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171126_15_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/03 || 00:05:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171203_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171203_00_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/04 || 15:29:13 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171204_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171204_15_refcal_amp.png Amp] || No calibration on Ant 3 and 6&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/06 || 00:05:14 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171206_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171206_00_refcal_amp.png Amp] || First refcal on 2017-12-05 is bad. No Ant3 calibration.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/07 || 00:05:06 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171207_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171207_00_refcal_amp.png Amp] || First refcal on 2017-12-06 had Windscram. No Ant3 calibration.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/07 || 15:32:07 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171207_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171207_15_refcal_amp.png Amp] || No Ant 3 calibration.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/08 || 15:33:05 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171208_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171208_15_refcal_amp.png Amp] || No Ant3 calibration.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/13 || 15:37:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171213_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171213_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/18 || 00:06:26 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171218_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171218_00_refcal_amp.png Amp] || No calibration for: Ant 4&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/18 || 15:40:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171218_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171218_15_refcal_amp.png Amp] || No calibration for: Ant 4 Ant 6&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/19 || 23:57:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171219_23_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171219_23_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/22 || 15:27:55 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171222_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171222_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/23 || 15:43:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171223_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171223_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/24 || 15:42:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171224_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171224_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/25 || 15:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171225_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171225_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/27 || 00:10:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171227_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171227_00_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/27 || 15:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171227_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171227_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/28 || 15:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171228_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171228_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/29 || 15:45:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171229_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171229_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/30 || 15:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171230_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171230_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/12/31 || 15:45:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171231_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171231_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/01 || 15:45:32 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180101_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180101_15_refcal_amp.png Amp] || No calibration on Ant 6&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/02 || 15:45:32 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180102_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180102_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/04 || 00:17:48 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180104_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180104_00_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/04 || 15:45:31 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180104_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180104_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/06 || 00:19:45 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180106_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180106_00_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/07 || 15:45:08 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180107_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180107_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/08 || 15:44:57 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180108_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180108_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/10 || 00:23:57 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180110_00_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180110_00_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2018/01/15 || 15:42:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20180115_15_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20180115_15_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Trouble_Shooting_Guide&amp;diff=2124</id>
		<title>Trouble Shooting Guide</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Trouble_Shooting_Guide&amp;diff=2124"/>
		<updated>2017-12-14T18:09:29Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a trouble shooting guide for tohbans monitoring EOVSA remotely using MobaXterm and VNC Viewer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font size=&amp;quot;5&amp;quot;&amp;gt;'''&amp;lt;General checklist for solar observation&amp;gt;'''&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1. Check [http://ovsa.njit.edu/EOVSA/ant_status.php Antenna Status Page] to see if any antenna is under work.&lt;br /&gt;
&lt;br /&gt;
2. In Schedule window, click &amp;quot;Today&amp;quot;, &amp;quot;File&amp;quot;, choose &amp;quot;Save&amp;quot; (overwrite if prompted), and &amp;quot;Go&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;'''Since Feb. 2017, the schedule setup is slightly different.''' Do the following:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.1. Load 'solar.scd' and hit Today. Save it (overwrite if prompted).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.2. Open 'solar_plus3c84_Feb2017.scd' in Texteditor (in ~/Dropbox/PythonCode/Current folder).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.3. Update the sunrise and the sunset time according to the solar.scd file that you just updated.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.4. Update the PHASECAL (and refcal, which is 1-hr PHASECAL, if necessary) times by '''subtracting''' 4 minutes from each scan (to account for the day-to-day sidereal time shift of each calibrator source). Shift the times of previous and next lines (usually ACQUIRE and SUN) accordingly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.5. Save the updated 'solar_plus3c84_Feb2017.scd'. Don't forget to update the DATE as well.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.6. Load the updated 'solar_plus3c84_Feb2017.scd' and hit Go.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. '''Antenna Tracking''' - are all antenna tracking (in white color)?&lt;br /&gt;
&lt;br /&gt;
4. '''Frequency Tuning''' - LO1A Sweep Status = &amp;quot;Sweeping&amp;quot;, FSeqFile = FSEQ-FILE on the schedule, ErrorMsg = &amp;quot;No error&amp;quot;&lt;br /&gt;
&lt;br /&gt;
5. '''Phase Tracking''' - &amp;quot;ON&amp;quot;&lt;br /&gt;
&lt;br /&gt;
6. '''Power and Attenuation''' - Are all dBm on both H- and V- Channels within the second and third numbers shown in &amp;quot;AGC&amp;quot; on the schedule window? You can also see '''SaveList''' hpol and vpol to check this.&lt;br /&gt;
&lt;br /&gt;
7. '''Temps''' - no fluctuation?&lt;br /&gt;
&lt;br /&gt;
8. '''CryoRX''' - this is for antenna 14 control system. If it is down (Eg: FEMA Outlets &amp;amp; Receiver Voltage/Current values are zero and status is OFF), then issue the command 'ctlgo' in the terminal.&lt;br /&gt;
&lt;br /&gt;
9. Make sure that [http://ovsa.njit.edu/EOVSA/status.php EOVSA Observing Status Page] is being updated and that the data is being recorded. You can check if the data is recorded by typing &amp;quot;ls /data1/IDB |tail&amp;quot; in DPP terminal too.&lt;br /&gt;
&lt;br /&gt;
10. STOW antennas at the end of the observation, if needed (see [http://www.ovsa.njit.edu/wiki/index.php/Trouble_Shooting_Guide#Antenna_does_not_stow_.28Ant_10.29 possible problem with Ant 10])&lt;br /&gt;
&lt;br /&gt;
11. Checking the PHASECAL plots [http://ovsa.njit.edu/phasecal/ PHASECAL plot page], if you notice any unusual noisy data on ants 9, 10, 11 or 13, generally it means the antenna did not stow properly on a previous occasion, so you should issue the commands (for example with ant 13): &lt;br /&gt;
step 1: stop ant13&lt;br /&gt;
&lt;br /&gt;
step 2: stow ant13 (wait for it to completely stow--repeat steps 1 and 2 if it seems like it is not stowing after 5 minutes or so)&lt;br /&gt;
&lt;br /&gt;
step 3: track ant13&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt; New! &amp;lt;/span&amp;gt; 12. After the day's observation is over, take a look at the results of all PHASECAL by going to [http://ovsa.njit.edu/phasecal/ PHASECAL plot page]. Note any scan that didn't go well '''without''' the effect of WINDSCRAM (if it was under WINDSCRAM then the data points would appear in red). Record your comments on them in tohban log at [http://ovsa.njit.edu/dev/data-browsing/index.php EOVSA tohban log page]. Log other activities during your duty.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt; New! &amp;lt;/span&amp;gt; 13. Do the reference gain calibration analysis by following the procedures explained in [http://www.ovsa.njit.edu/wiki/index.php/Reference_Gain_Calibration Reference Gain Calibration] '''by 1 pm on the next day'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt; New! &amp;lt;/span&amp;gt; 14. Run the following commands to produce daily spectrogram which will be uploaded to RHESSI browser.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import read_idb as ri&lt;br /&gt;
from util import Time&lt;br /&gt;
#To produce the spectrogram for 2017-08-14 on 2017-08-15&lt;br /&gt;
out = ri.allday_udb(t=Time('2017-08-14'),gain_corr=True,savfig=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule window ==&lt;br /&gt;
&lt;br /&gt;
=== I accidentally closed the schedule ===&lt;br /&gt;
&lt;br /&gt;
1. Click &amp;quot;Schedule&amp;quot; (on the left task bar) '''just once'''.&lt;br /&gt;
&lt;br /&gt;
2. Click &amp;quot;Today&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== “Error: Could not write stateframe to SQL” ===&lt;br /&gt;
&lt;br /&gt;
1. hit STOP on the schedule&lt;br /&gt;
&lt;br /&gt;
2. type $scan-stop in Raw Command window (to stop the data recording)&lt;br /&gt;
&lt;br /&gt;
3. close the schedule (exit out of it)&lt;br /&gt;
&lt;br /&gt;
4. restart the program (by clicking on the icon at the left)&lt;br /&gt;
&lt;br /&gt;
5. hit GO to start the observation again&lt;br /&gt;
&lt;br /&gt;
== Stateframe ==&lt;br /&gt;
&lt;br /&gt;
=== Stateframe is frozen ===&lt;br /&gt;
&lt;br /&gt;
1. Close the old one using command 'kill -2 #', where # is the number followed by My PID on the right corner of the StateFrame, in the terminal of sched@helios. If you have accidentally closed the StateFrame without noting the PID, you can get it by typing '''ps -elf | grep sf_display''' in sched@helios, and looking at the number indicated in the '''fourth column from the left''' on the line that ends with &amp;quot;python /common/python/current/sf_display.py&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. Open a new Stateframe from the menu on the left ('sf_display')&lt;br /&gt;
&lt;br /&gt;
3. Check the log box of the new stateframe&lt;br /&gt;
&lt;br /&gt;
=== “ACC down?” ===&lt;br /&gt;
&lt;br /&gt;
1. Open pdudigital.solar.pvt on web browser&lt;br /&gt;
&lt;br /&gt;
2. Go to “Actions”&lt;br /&gt;
&lt;br /&gt;
3. Go to “Loads” (on the left)&lt;br /&gt;
&lt;br /&gt;
4. Click item 14 (ACC)&lt;br /&gt;
&lt;br /&gt;
5. Hit “Cycle” and “Ok” when prompted&lt;br /&gt;
&lt;br /&gt;
After rebooting, if Stateframe hangs up &amp;amp; does not respond, open a new Stateframe and give &amp;quot;kill ##&amp;quot; (## = “My PID” on the upper right corner of frozen Stateframe) command to sched@helios.solar.pvt server.&lt;br /&gt;
&lt;br /&gt;
=== CryoRX tab - Status are OFF, all values are zeroes (Checklist #7 is false)===&lt;br /&gt;
&lt;br /&gt;
What you should be seeing is that FEMA Outlets and Receiver Voltages/Currents are all zeroes, and Status are all OFF (except for Noise Diode, and RFSwitch when using low frequency receiver). This means that the control system for receiver has died. You would still see that antennas are tracking fine and data is recorded, and it doesn't mean that these data are &amp;quot;wrong&amp;quot; or &amp;quot;unusable&amp;quot;. They have to be ON and non-zeroes whenever you want to change receiver setting or modify attenuation setting, which sometimes happens during the observation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;del&amp;gt;To reboot, execute &amp;quot;starburstControl start&amp;quot; in antctl@feanta server (ssh connect from helios, if disconnected).&amp;lt;/del&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;12/18/2016&amp;gt; To reboot, just type &amp;quot;ctlgo&amp;quot; in a terminal window on helios in VNC Viewer (you may have to stop the schedule). If for any reason you want to stop the control system, type &amp;quot;ctlstop&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Antenna(s) down ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;'''Don’t forget to check the [http://ovsa.njit.edu/EOVSA/ant_status.php Antenna Status page] before considering to “fix” any of the antennas!!'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Symptoms: Not tracking, showing ‘AT STOW’ or other unwanted coordinates, both AZ and EL permits ON or only EL permit ON, or Axis Lock is ON&lt;br /&gt;
&lt;br /&gt;
Please be noted that the old antennas don't have power controller so $pcycle command won't work on them.&lt;br /&gt;
&lt;br /&gt;
1. Ant 9, 10, 11, 13 could be in this state early in the schedule because they just can't move to commanded position (out of declination limit). In this case, you just have to wait a while (~few hours?)&lt;br /&gt;
&lt;br /&gt;
2. In cold morning, large spike in the current may cause large position error in AT STOW state. &lt;br /&gt;
&lt;br /&gt;
3. Proceed if neither #1 nor #2 is the case. If only AZ permit is ON (the first column), try &amp;quot;reboot 1 ant2&amp;quot; for rebooting ant2, for example.&lt;br /&gt;
&lt;br /&gt;
4. If both AZ and EL permit is ON (the second column) or only EL permit is ON, then give command &amp;quot;$pcycle ant2&amp;quot; for resetting antenna 2. This switches OFF the power to antenna for 15 seconds and switches ON. In Communication tab, Ant 2 line will go red. Wait till it becomes white. If it does not become white, then try &amp;quot;sync ant2&amp;quot;. If cRIO does not respond to this, it may be in “safe mode”, in which case you can type &amp;quot;$pcycle crio ant2&amp;quot; (if on ants 1-8 or 12) and it will cycle the power on the cRIO. &amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;Note that cRIO takes at least 2 minutes to reboot and come back online.&amp;lt;/span&amp;gt; If this sequence does not work, you may try $pcycle again, &amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;but keep in mind that this command in general should only be used when needed (i.e. discouraged if it can be avoided), to save wear and tear on the components.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Give &amp;quot;tracktable [the current tracktable ***.radec] ant2&amp;quot; and &amp;quot;track ant2&amp;quot; to initiate the tracking. If this does not work, look for temperature to raise (if temperature is low).&lt;br /&gt;
&lt;br /&gt;
=== Ant14's cRIO's &amp;quot;Ant&amp;quot; value (last column) is showing negative value ===&lt;br /&gt;
&lt;br /&gt;
What you may see is that ant14's cRIO's &amp;quot;Ant&amp;quot; value (the very last column) showing negative value (not necessarily the extremely large value like you see for some antennas that are down, but some random number with negative sign). When you observe this, go to &amp;quot;ant14.solar.pvt&amp;quot; on web browser and see if it says in red &amp;quot;Slot1 - Maths error&amp;quot; on the left side. It is believed to occur when the controller is interpolating coordinates for the last-entered track table, and the calculation blows up (i.e. pcal_tab.radec file would have had a day change in it when it was not supposed to).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;This should not happen beyond 12/18/2016, but if you observe it beyond this date, '''report to Dr. Gary''', and proceed to do the followings:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1. In &amp;quot;ant14.solar.pvt&amp;quot;, go to &amp;quot;Log-in&amp;quot; and log-in (if you need ID/PW, ask Dr. Gary or Natsuha.)&lt;br /&gt;
&lt;br /&gt;
2. Click &amp;quot;Parameters&amp;quot;, then select &amp;quot;#10 - Status And Trips&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
3. Choose &amp;quot;#1 - 10.00&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
4. Enter &amp;quot;1070&amp;quot; to &amp;quot;Update values&amp;quot;, and hit &amp;quot;change&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
5. Go to &amp;quot;Parameters&amp;quot; again, and choose &amp;quot;#38 - User Trip&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
6. Enter &amp;quot;100&amp;quot; to &amp;quot;Update values&amp;quot;, and hit &amp;quot;change&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This is supposed to reset the controller. Watch for cRIO's Ant value changes to positive values. &amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;Take note on the time you did this procedure, and report it to Dr. Gary.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== BRIGHTSCRAM ===&lt;br /&gt;
&lt;br /&gt;
Find out which antenna is experiencing this by looking at [http://ovsa.njit.edu/fits/images/ FITS image files]. BRIGHTSCRAM should appear as data-gap like features on the dynamics spectra. &amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;If more than two antennas are having BRIGHTSCRAM, then ALL antennas show BRIGHTSCRAM.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Wait for a while (~10 min) to see if it automatically goes away. After it goes away, give &amp;quot;tracktable [the current tracktable ***.radec] ant#&amp;quot; and &amp;quot;track ant#&amp;quot; to initiate the tracking.&lt;br /&gt;
&lt;br /&gt;
=== Frequency Tuning's Sweep Status is “stopped” or &amp;quot;Queue overflow&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
1. Try &amp;quot;Stop&amp;quot; and &amp;quot;Go&amp;quot; the schedule.&lt;br /&gt;
&lt;br /&gt;
2. If #1 does not work, try &amp;quot;lo1a-reboot&amp;quot; in Raw command window&lt;br /&gt;
&lt;br /&gt;
3. If #2 does not work, try the following raw commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fseq-off&lt;br /&gt;
fseq-init&lt;br /&gt;
fseq-file [the current frequency receiver setting ***.fsq] (should be in the right side of the schedule window, like solarhi.fsq)&lt;br /&gt;
fseq-on&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Temperature is fluctuating too much ===&lt;br /&gt;
&lt;br /&gt;
Try rebooting the temperature controller by typing &amp;quot;tec$bc ant2&amp;quot; for ant2, for example (tec =&amp;gt; Thermo-Electric Controller).&lt;br /&gt;
&lt;br /&gt;
=== nd-on is on (Attenuation) ===&lt;br /&gt;
&lt;br /&gt;
Send &amp;quot;nd-off ant#&amp;quot; raw command to turn off the local noise diode. &lt;br /&gt;
 &lt;br /&gt;
[[File:2016-04-13_hpol.png|thumb|upright=2.0|'''Figure 1:''' Example of the oscillation from unbalanced attenuation for ant 12 (orange).]]&lt;br /&gt;
&lt;br /&gt;
[[File:2016-04-15_hpol.png|thumb|upright=2.0|'''Figure 2:''' Example of the oscillation from unbalanced attenuation for ant 2 (red) and 5 (cyan).]]&lt;br /&gt;
&lt;br /&gt;
=== hpol/vpol plot (Savelist) is showing unusual oscillating behavior ===&lt;br /&gt;
&lt;br /&gt;
What you should see is the dBm values of the antenna fluctuating very violently like in '''Figure 1''' and '''2'''. Notice that the amplitude of the fluctuation is ~3 dB, which was one FEMATTN step (at this date). This happens when hattn/vattn settings of the antenna get changed somehow and two polarizations get very unbalanced. The result is that the automatic gain control is not being able to find a happy level for both at the same time, and went into an oscillation. To calm it down, first issue the commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;femauto-off ant#&lt;br /&gt;
hattn 0 0 ant#&lt;br /&gt;
vattn 0 0 ant#&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which turns off the automatic gain control. '''If the antenna is on the Sun, temporarily move it off the Sun using''' &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
radecoff 0 10 ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
With the antenna off the Sun, set the hattn and vattn settings until both power levels are around 3 dB, i.e.:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hattn 0 12 ant#&lt;br /&gt;
vattn 0 11 ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where the choice of attenuations (12 and 11 in this example) are those that set the power level close to 3 dB. Finally, turn the gain control back on, with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
femauto-on ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you issued the radecoff command, be sure to remove it with'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
radecoff 0 0 ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;If the fluctuation is within one FEMATTN step (2 dB as of 12/12/16, check [http://www.ovsa.njit.edu/wiki/index.php/Schedule_Commands#FEMATTN_level_.5Bantennalist.5D Schedule Command - FEMATTN level]), the cause might be just interference. In this case, leave it for a while and see if the oscillation goes away.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Antenna does not stow (Ant 10) ===&lt;br /&gt;
&lt;br /&gt;
This mostly seems to happen on Ant 10 (as of ~July 2017). The symptom is that Ant 10 keeps staying at &amp;quot;TO STOW&amp;quot; status while all other (old) antennas are AT STOW already at the end of the observation. You might have tried the command &amp;quot;stow ant10&amp;quot;, but it did not change the status. If this continues for more than a minute or so, it is likely that the antenna is running into a limit, and cannot be stowed properly with just &amp;quot;stow ant10&amp;quot; command (you also cannot trust if it does go to STOW by itself much later). To properly stow the antenna, '''issue &amp;quot;stop ant10&amp;quot; first''', then do &amp;quot;stow ant10&amp;quot;. You may need to do this multiple times. If you don't properly stow the antenna this way, it may not start tracking automatically next morning, and you will miss the data from this antenna.&lt;br /&gt;
&lt;br /&gt;
=== Antenna tab is blank and an attempt to switch to it causes the Stateframe to freeze ===&lt;br /&gt;
&lt;br /&gt;
This occurred around early June of 2017. The cause turned out to be a change in numpy behavior. Dr. Gary updated the numpy at some point and a subtle difference caused it. This means that we should think about software upgrade as one of the causes of malfunctions of our system sometimes.&lt;br /&gt;
&lt;br /&gt;
== Data recording (DPP) ==&lt;br /&gt;
&lt;br /&gt;
=== Data recording has stopped (ls /data1/IDB |tail does not return the most recent file) ===&lt;br /&gt;
&lt;br /&gt;
You need to delete dpplock.txt file. Follow these steps:&lt;br /&gt;
&lt;br /&gt;
1. Enter &amp;quot;top&amp;quot; into user@dpp.solar.pvt command line (if user@dpp.solar.pvt is not there, open a new terminal/terminal tab in VNC viewer &amp;amp; type “ssh -X user@dpp.solar.pvt).&lt;br /&gt;
&lt;br /&gt;
2. Look for &amp;quot;dppxmp” under “command” column. &amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;'''If it is there, do NOT delete dpplock.txt.'''&amp;lt;/span&amp;gt; If it’s not there, then quit top by hitting “q” and proceed.&lt;br /&gt;
&lt;br /&gt;
3. Type “rmlock&amp;quot; on DPP terminal. Check if the data recording has recovered by sending &amp;quot;ls /data1/IDB |tail&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Network ==&lt;br /&gt;
&lt;br /&gt;
=== Cannot open VNC Viewer, or VNC Viewer's response is too slow ===&lt;br /&gt;
&lt;br /&gt;
Open the “local” raw command window and Stateframe window by following these steps:&lt;br /&gt;
&lt;br /&gt;
1. Type &amp;quot;cd /common/python/current&amp;quot; in helios.solar.pvt terminal of MobaXterm&lt;br /&gt;
&lt;br /&gt;
2. Type &amp;quot;./sched_commands.py&amp;quot; for raw command window&lt;br /&gt;
&lt;br /&gt;
3. Type &amp;quot;./sf_display.py&amp;quot; for Stateframe window (add “ &amp;amp;” in the end if you want to keep typing the command in the same helios window) -- note that this Stateframe window may take a while (~5 min or more) to load.&lt;br /&gt;
&lt;br /&gt;
== Others ==&lt;br /&gt;
&lt;br /&gt;
[[File:FLM20151005.png|thumb|upright=2.0|'''Figure 3:''' Geosynchronous satellite signals seen in flare monitor.]]&lt;br /&gt;
&lt;br /&gt;
=== Strong interference in flare monitor ===&lt;br /&gt;
&lt;br /&gt;
Twice per year (for 1-2 weeks centered around Mar. 5 and Oct. 5), the Sun enters in geosynchronous satellite belt. In this case, we see strong signals on flare monitor, like in '''Figure 3''' (blue line). These are radio signals from man-made satellites, which will not harm the system and cannot be avoided, so don't be alarmed.&lt;br /&gt;
&lt;br /&gt;
=== The “streak” in the lowest frequency of the dynamic spectrum ===&lt;br /&gt;
&lt;br /&gt;
If you are seeing this at the beginning or at the end of the day, this is the Sun! See '''Figure 4''' and '''Figure 5''' for sample images. When the baseline is foreshortened (as in near sunrise or sunset), the response is quite strong to the solar disk.  As the Sun rises, the intensity goes down because the baselines start to get longer.  You will actually see the reverse trend in the afternoon, although often the RFI is stronger so the color scale is more blue than in the morning.&lt;br /&gt;
&lt;br /&gt;
[[File:XSP20151202160136.png|thumb|upright=2.0|'''Figure 4:''' The solar signal at the beginning of 2015-12-02 observation period. Notice that the low frequency intensity is decreasing as the Sun rises.]]&lt;br /&gt;
&lt;br /&gt;
[[File:XSP20151202213507.png|thumb|upright=2.0|'''Figure 5:''' The solar signal at the end of 2015-12-02 observation period. Notice the reverse effect compared to '''Figure 4'''.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=2026</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=2026"/>
		<updated>2017-11-06T05:50:23Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. The routines (on pipeline machine) to retrieve and analyze the data are in the module refcal_anal.py. Start from a time range during which the reference calibration observation occurred (check the [http://ovsa.njit.edu/phasecal/ phasecal results] to see which 1-hr scan had stable phases)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
#example time range of the refcal scan that took place BEFORE the observation&lt;br /&gt;
trange=Time(['2017-04-08T14:00','2017-04-08T15:00'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now read the data from that timerange&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that there are optional arguments that can be given, such as projid='PHASECAL' (the default) and srcid='1229+060', but these are generally not needed.&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters (better to check more bands).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS: From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Observations within this time range will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0. We can further determine a finer selection of time range within this scan that has clean and stable phases if needed, by setting the new timerange in &amp;quot;trange&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=trange,scanidx=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/13 || 13:48:39 ||  2136+006  || || 0 ||  || 5~23 || [http://ovsa.njit.edu/refcal/20170413_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170413_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/11 || 12:56:22 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170611_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170611_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 02:33:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 8 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 13:01:19 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/30 || 02:47:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170630_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170630_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/01 || 02:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170701_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170701_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/02 || 03:01:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170702_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170702_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/03 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170703_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170703_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/04 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170704_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170704_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/05 || 02:55:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170705_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170705_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 13:16:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/10 || 13:14:17 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170710_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170710_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/11 || 13:14:18 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170711_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170711_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/12 || 13:14:24 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170712_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170712_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/13 || 13:14:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170713_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170713_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/14 || 13:15:35 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170714_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170714_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 02:48:33 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 13:16:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/17 || 13:14:54 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170717_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170717_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/18 || 13:15:31 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170718_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170718_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/19 || 13:16:16 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170719_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170719_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/20 || 13:16:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170720_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170720_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/21 || 13:20:57 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170721_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170721_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/22 || 13:21:36 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170722_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170722_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/23 || 13:34:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170723_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170723_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/24 || 13:22:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170724_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170724_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/25 || 13:23:38 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170725_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170725_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/26 || 18:00:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170726_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170726_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/28 || 02:42:36 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170728_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170728_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/29 || 13:37:40 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170729_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170729_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/31 || 13:27:05 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170731_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170731_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/01 || 13:28:30 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170801_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170801_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/02 || 13:29:13 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170802_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170802_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/03 || 13:29:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170803_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170803_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 02:35:58 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 13:31:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/06 || 13:32:06 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170806_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170806_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/07 || 13:32:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170807_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170807_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/08 || 13:33:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170808_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170808_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/11 || 12:47:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170811_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170811_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/12 || 12:43:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170812_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170812_refcal_amp.png Amp] || No calibration for: Ant 9&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/13 || 12:39:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170813_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170813_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/14 || 12:34:19 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170814_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170814_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/15 || 12:31:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170815_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170815_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/16 || 12:27:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170816_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170816_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/17 || 12:23:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170817_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170817_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/18 || 12:19:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170818_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170818_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/19 || 12:15:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170819_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170819_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/21 || 12:07:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170821_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170821_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/22 || 12:03:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170822_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170822_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/23 || 12:14:51 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170823_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170823_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/24 || 11:55:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170824_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170824_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/25 || 14:01:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170825_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170825_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/26 || 13:57:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170826_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170826_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/28 || 01:03:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170828_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170828_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 00:59:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/30 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170830_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170830_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/31 || 13:50:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170831_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170831_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/01 || 13:51:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170901_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170901_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/02 || 13:52:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170902_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170902_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/03 || 13:53:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170903_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170903_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/04 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170904_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170904_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/05 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170905_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170905_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/06 || 13:55:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170906_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170906_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/07 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170907_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170907_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/08 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170908_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170908_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 00:01:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 13:57:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/11 || 13:58:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170911_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170911_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/12 || 14:00:11 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170912_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170912_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 04:15:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||Refcal at around 14 UT is also good. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 14:01:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/15 || 14:39:27 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170915_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170915_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/16 || 13:46:56 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170916_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170916_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/17 || 13:47:46 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170917_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170917_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/18 || 14:05:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170918_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170918_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/19 || 14:06:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170919_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170919_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/22 || 14:08:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170922_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170922_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/23 || 14:09:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170923_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170923_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/24 || 14:10:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170924_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170924_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/25 || 14:17:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170925_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170925_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/26 || 14:10:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170926_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170926_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/27 || 14:06:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170927_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170927_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/28 || 14:02:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170928_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170928_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/29 || 14:01:20 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170929_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170929_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/30 || 13:54:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170930_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170930_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/01 || 13:50:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171001_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171001_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/02 || 13:47:28 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171002_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171002_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/03 || 13:43:25 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171003_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171003_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/04 || 13:40:52 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171004_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171004_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/06 || 02:42:39 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171006_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171006_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/06 || 13:32:53 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171006_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171006_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/07 || 13:30:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171007_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171007_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/08 || 13:26:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171008_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171008_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/10 || 02:31:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171010_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171010_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/11 || 02:23:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171011_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171011_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/12 || 02:19:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171012_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171012_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/13 || 02:15:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171013_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171013_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/13 || 12:54:23 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171013_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171013_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/14 || 12:50:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171014_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171014_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/16 || 02:07:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171016_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171016_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/18 || 01:59:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171018_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171018_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/19 || 12:30:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171019_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171019_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/20 || 12:22:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171021_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171021_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/21 || 12:22:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171021_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171021_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/22 || 12:18:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171022_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171022_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/24 || 12:10:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171024_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171024_refcal_amp.png Amp] || Few frequencies have unusually high amplitudes. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/24 || 01:35:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171024_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171024_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/25 || 01:31:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171025_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171025_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/26 || 12:02:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171026_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171026_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/27 || 11:58:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171027_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171027_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/28 || 11:54:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171028_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171028_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/29 || 11:50:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171029_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171029_refcal_amp.png Amp] || Ant 8 was down.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/02 || 14:50:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171102_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171102_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/03 || 14:52:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171103_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171103_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/04 || 14:53:51 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171104_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171104_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/05 || 14:54:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171105_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171105_refcal_amp.png Amp] || Ant 3 was down. No calibration for: Ant 3&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=2025</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=2025"/>
		<updated>2017-11-06T05:02:17Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. The routines (on pipeline machine) to retrieve and analyze the data are in the module refcal_anal.py. Start from a time range during which the reference calibration observation occurred (check the [http://ovsa.njit.edu/phasecal/ phasecal results] to see which 1-hr scan had stable phases)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
#example time range of the refcal scan that took place BEFORE the observation&lt;br /&gt;
trange=Time(['2017-04-08T14:00','2017-04-08T15:00'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now read the data from that timerange&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that there are optional arguments that can be given, such as projid='PHASECAL' (the default) and srcid='1229+060', but these are generally not needed.&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters (better to check more bands).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS: From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Observations within this time range will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0. We can further determine a finer selection of time range within this scan that has clean and stable phases if needed, by setting the new timerange in &amp;quot;trange&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=trange,scanidx=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/13 || 13:48:39 ||  2136+006  || || 0 ||  || 5~23 || [http://ovsa.njit.edu/refcal/20170413_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170413_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/11 || 12:56:22 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170611_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170611_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 02:33:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 8 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 13:01:19 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/30 || 02:47:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170630_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170630_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/01 || 02:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170701_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170701_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/02 || 03:01:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170702_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170702_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/03 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170703_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170703_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/04 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170704_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170704_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/05 || 02:55:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170705_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170705_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 13:16:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/10 || 13:14:17 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170710_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170710_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/11 || 13:14:18 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170711_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170711_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/12 || 13:14:24 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170712_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170712_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/13 || 13:14:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170713_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170713_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/14 || 13:15:35 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170714_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170714_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 02:48:33 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 13:16:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/17 || 13:14:54 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170717_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170717_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/18 || 13:15:31 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170718_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170718_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/19 || 13:16:16 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170719_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170719_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/20 || 13:16:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170720_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170720_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/21 || 13:20:57 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170721_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170721_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/22 || 13:21:36 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170722_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170722_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/23 || 13:34:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170723_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170723_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/24 || 13:22:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170724_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170724_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/25 || 13:23:38 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170725_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170725_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/26 || 18:00:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170726_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170726_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/28 || 02:42:36 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170728_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170728_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/29 || 13:37:40 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170729_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170729_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/31 || 13:27:05 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170731_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170731_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/01 || 13:28:30 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170801_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170801_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/02 || 13:29:13 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170802_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170802_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/03 || 13:29:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170803_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170803_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 02:35:58 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 13:31:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/06 || 13:32:06 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170806_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170806_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/07 || 13:32:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170807_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170807_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/08 || 13:33:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170808_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170808_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/11 || 12:47:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170811_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170811_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/12 || 12:43:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170812_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170812_refcal_amp.png Amp] || No calibration for: Ant 9&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/13 || 12:39:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170813_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170813_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/14 || 12:34:19 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170814_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170814_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/15 || 12:31:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170815_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170815_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/16 || 12:27:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170816_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170816_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/17 || 12:23:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170817_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170817_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/18 || 12:19:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170818_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170818_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/19 || 12:15:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170819_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170819_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/21 || 12:07:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170821_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170821_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/22 || 12:03:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170822_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170822_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/23 || 12:14:51 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170823_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170823_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/24 || 11:55:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170824_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170824_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/25 || 14:01:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170825_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170825_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/26 || 13:57:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170826_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170826_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/28 || 01:03:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170828_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170828_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 00:59:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/30 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170830_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170830_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/31 || 13:50:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170831_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170831_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/01 || 13:51:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170901_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170901_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/02 || 13:52:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170902_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170902_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/03 || 13:53:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170903_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170903_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/04 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170904_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170904_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/05 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170905_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170905_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/06 || 13:55:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170906_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170906_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/07 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170907_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170907_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/08 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170908_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170908_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 00:01:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 13:57:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/11 || 13:58:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170911_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170911_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/12 || 14:00:11 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170912_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170912_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 04:15:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||Refcal at around 14 UT is also good. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 14:01:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/15 || 14:39:27 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170915_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170915_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/16 || 13:46:56 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170916_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170916_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/17 || 13:47:46 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170917_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170917_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/18 || 14:05:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170918_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170918_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/19 || 14:06:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170919_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170919_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/22 || 14:08:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170922_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170922_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/23 || 14:09:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170923_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170923_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/24 || 14:10:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170924_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170924_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/25 || 14:17:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170925_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170925_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/26 || 14:10:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170926_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170926_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/27 || 14:06:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170927_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170927_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/28 || 14:02:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170928_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170928_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/29 || 14:01:20 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170929_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170929_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/30 || 13:54:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170930_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170930_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/01 || 13:50:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171001_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171001_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/02 || 13:47:28 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171002_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171002_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/03 || 13:43:25 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171003_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171003_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/04 || 13:40:52 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171004_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171004_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/06 || 02:42:39 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171006_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171006_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/06 || 13:32:53 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171006_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171006_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/07 || 13:30:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171007_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171007_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/08 || 13:26:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171008_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171008_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/10 || 02:31:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171010_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171010_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/11 || 02:23:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171011_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171011_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/12 || 02:19:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171012_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171012_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/13 || 02:15:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171013_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171013_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/13 || 12:54:23 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171013_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171013_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/14 || 12:50:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171014_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171014_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/16 || 02:07:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171016_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171016_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/18 || 01:59:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171018_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171018_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/19 || 12:30:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171019_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171019_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/20 || 12:22:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171021_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171021_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/21 || 12:22:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171021_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171021_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/22 || 12:18:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171022_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171022_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/24 || 12:10:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171024_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171024_refcal_amp.png Amp] || Few frequencies have unusually high amplitudes. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/24 || 01:35:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171024_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171024_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/25 || 01:31:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171025_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171025_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/26 || 12:02:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171026_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171026_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/27 || 11:58:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171027_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171027_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/28 || 11:54:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171028_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171028_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/29 || 11:50:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171029_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171029_refcal_amp.png Amp] || Ant 8 was down.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/03 || 14:52:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171103_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171103_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/04 || 14:53:51 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171104_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171104_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/05 || 14:54:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171105_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171105_refcal_amp.png Amp] || Ant 3 was down. No calibration for: Ant 3&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=2024</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=2024"/>
		<updated>2017-11-06T04:55:12Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. The routines (on pipeline machine) to retrieve and analyze the data are in the module refcal_anal.py. Start from a time range during which the reference calibration observation occurred (check the [http://ovsa.njit.edu/phasecal/ phasecal results] to see which 1-hr scan had stable phases)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
#example time range of the refcal scan that took place BEFORE the observation&lt;br /&gt;
trange=Time(['2017-04-08T14:00','2017-04-08T15:00'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now read the data from that timerange&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that there are optional arguments that can be given, such as projid='PHASECAL' (the default) and srcid='1229+060', but these are generally not needed.&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters (better to check more bands).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS: From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Observations within this time range will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0. We can further determine a finer selection of time range within this scan that has clean and stable phases if needed, by setting the new timerange in &amp;quot;trange&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=trange,scanidx=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/13 || 13:48:39 ||  2136+006  || || 0 ||  || 5~23 || [http://ovsa.njit.edu/refcal/20170413_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170413_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/11 || 12:56:22 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170611_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170611_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 02:33:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 8 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 13:01:19 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/30 || 02:47:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170630_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170630_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/01 || 02:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170701_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170701_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/02 || 03:01:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170702_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170702_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/03 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170703_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170703_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/04 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170704_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170704_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/05 || 02:55:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170705_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170705_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 13:16:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/10 || 13:14:17 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170710_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170710_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/11 || 13:14:18 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170711_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170711_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/12 || 13:14:24 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170712_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170712_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/13 || 13:14:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170713_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170713_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/14 || 13:15:35 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170714_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170714_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 02:48:33 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 13:16:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/17 || 13:14:54 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170717_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170717_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/18 || 13:15:31 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170718_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170718_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/19 || 13:16:16 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170719_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170719_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/20 || 13:16:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170720_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170720_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/21 || 13:20:57 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170721_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170721_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/22 || 13:21:36 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170722_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170722_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/23 || 13:34:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170723_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170723_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/24 || 13:22:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170724_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170724_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/25 || 13:23:38 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170725_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170725_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/26 || 18:00:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170726_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170726_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/28 || 02:42:36 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170728_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170728_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/29 || 13:37:40 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170729_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170729_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/31 || 13:27:05 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170731_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170731_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/01 || 13:28:30 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170801_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170801_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/02 || 13:29:13 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170802_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170802_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/03 || 13:29:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170803_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170803_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 02:35:58 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 13:31:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/06 || 13:32:06 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170806_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170806_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/07 || 13:32:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170807_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170807_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/08 || 13:33:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170808_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170808_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/11 || 12:47:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170811_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170811_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/12 || 12:43:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170812_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170812_refcal_amp.png Amp] || No calibration for: Ant 9&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/13 || 12:39:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170813_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170813_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/14 || 12:34:19 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170814_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170814_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/15 || 12:31:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170815_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170815_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/16 || 12:27:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170816_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170816_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/17 || 12:23:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170817_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170817_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/18 || 12:19:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170818_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170818_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/19 || 12:15:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170819_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170819_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/21 || 12:07:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170821_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170821_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/22 || 12:03:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170822_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170822_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/23 || 12:14:51 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170823_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170823_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/24 || 11:55:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170824_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170824_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/25 || 14:01:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170825_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170825_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/26 || 13:57:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170826_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170826_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/28 || 01:03:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170828_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170828_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 00:59:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/30 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170830_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170830_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/31 || 13:50:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170831_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170831_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/01 || 13:51:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170901_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170901_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/02 || 13:52:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170902_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170902_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/03 || 13:53:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170903_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170903_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/04 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170904_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170904_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/05 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170905_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170905_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/06 || 13:55:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170906_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170906_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/07 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170907_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170907_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/08 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170908_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170908_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 00:01:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 13:57:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/11 || 13:58:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170911_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170911_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/12 || 14:00:11 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170912_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170912_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 04:15:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||Refcal at around 14 UT is also good. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 14:01:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/15 || 14:39:27 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170915_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170915_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/16 || 13:46:56 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170916_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170916_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/17 || 13:47:46 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170917_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170917_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/18 || 14:05:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170918_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170918_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/19 || 14:06:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170919_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170919_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/22 || 14:08:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170922_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170922_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/23 || 14:09:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170923_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170923_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/24 || 14:10:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170924_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170924_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/25 || 14:17:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170925_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170925_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/26 || 14:10:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170926_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170926_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/27 || 14:06:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170927_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170927_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/28 || 14:02:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170928_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170928_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/29 || 14:01:20 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170929_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170929_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/30 || 13:54:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170930_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170930_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/01 || 13:50:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171001_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171001_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/02 || 13:47:28 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171002_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171002_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/03 || 13:43:25 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171003_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171003_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/04 || 13:40:52 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171004_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171004_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/06 || 02:42:39 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171006_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171006_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/06 || 13:32:53 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171006_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171006_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/07 || 13:30:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171007_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171007_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/08 || 13:26:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171008_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171008_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/10 || 02:31:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171010_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171010_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/11 || 02:23:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171011_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171011_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/12 || 02:19:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171012_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171012_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/13 || 02:15:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171013_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171013_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/13 || 12:54:23 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171013_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171013_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/14 || 12:50:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171014_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171014_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/16 || 02:07:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171016_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171016_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/18 || 01:59:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171018_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171018_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/19 || 12:30:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171019_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171019_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/20 || 12:22:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171021_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171021_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/21 || 12:22:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171021_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171021_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/22 || 12:18:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171022_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171022_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/24 || 12:10:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171024_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171024_refcal_amp.png Amp] || Few frequencies have unusually high amplitudes. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/24 || 01:35:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171024_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171024_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/25 || 01:31:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171025_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171025_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/26 || 12:02:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171026_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171026_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/27 || 11:58:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171027_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171027_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/28 || 11:54:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171028_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171028_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/29 || 11:50:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171029_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171029_refcal_amp.png Amp] || Ant 8 was down.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/04 || 14:53:51 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171104_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171104_refcal_amp.png Amp] || No calibration for: Ant 3&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/05 || 14:54:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171105_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171105_refcal_amp.png Amp] || Ant 3 was down. No calibration for: Ant 3&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=2023</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=2023"/>
		<updated>2017-11-06T04:17:05Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. The routines (on pipeline machine) to retrieve and analyze the data are in the module refcal_anal.py. Start from a time range during which the reference calibration observation occurred (check the [http://ovsa.njit.edu/phasecal/ phasecal results] to see which 1-hr scan had stable phases)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
#example time range of the refcal scan that took place BEFORE the observation&lt;br /&gt;
trange=Time(['2017-04-08T14:00','2017-04-08T15:00'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now read the data from that timerange&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that there are optional arguments that can be given, such as projid='PHASECAL' (the default) and srcid='1229+060', but these are generally not needed.&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters (better to check more bands).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS: From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Observations within this time range will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0. We can further determine a finer selection of time range within this scan that has clean and stable phases if needed, by setting the new timerange in &amp;quot;trange&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=trange,scanidx=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/13 || 13:48:39 ||  2136+006  || || 0 ||  || 5~23 || [http://ovsa.njit.edu/refcal/20170413_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170413_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/11 || 12:56:22 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170611_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170611_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 02:33:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 8 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 13:01:19 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/30 || 02:47:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170630_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170630_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/01 || 02:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170701_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170701_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/02 || 03:01:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170702_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170702_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/03 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170703_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170703_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/04 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170704_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170704_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/05 || 02:55:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170705_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170705_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 13:16:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/10 || 13:14:17 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170710_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170710_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/11 || 13:14:18 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170711_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170711_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/12 || 13:14:24 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170712_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170712_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/13 || 13:14:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170713_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170713_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/14 || 13:15:35 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170714_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170714_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 02:48:33 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 13:16:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/17 || 13:14:54 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170717_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170717_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/18 || 13:15:31 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170718_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170718_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/19 || 13:16:16 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170719_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170719_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/20 || 13:16:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170720_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170720_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/21 || 13:20:57 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170721_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170721_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/22 || 13:21:36 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170722_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170722_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/23 || 13:34:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170723_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170723_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/24 || 13:22:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170724_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170724_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/25 || 13:23:38 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170725_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170725_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/26 || 18:00:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170726_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170726_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/28 || 02:42:36 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170728_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170728_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/29 || 13:37:40 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170729_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170729_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/31 || 13:27:05 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170731_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170731_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/01 || 13:28:30 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170801_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170801_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/02 || 13:29:13 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170802_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170802_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/03 || 13:29:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170803_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170803_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 02:35:58 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 13:31:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/06 || 13:32:06 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170806_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170806_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/07 || 13:32:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170807_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170807_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/08 || 13:33:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170808_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170808_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/11 || 12:47:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170811_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170811_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/12 || 12:43:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170812_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170812_refcal_amp.png Amp] || No calibration for: Ant 9&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/13 || 12:39:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170813_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170813_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/14 || 12:34:19 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170814_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170814_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/15 || 12:31:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170815_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170815_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/16 || 12:27:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170816_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170816_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/17 || 12:23:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170817_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170817_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/18 || 12:19:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170818_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170818_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/19 || 12:15:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170819_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170819_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/21 || 12:07:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170821_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170821_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/22 || 12:03:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170822_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170822_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/23 || 12:14:51 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170823_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170823_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/24 || 11:55:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170824_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170824_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/25 || 14:01:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170825_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170825_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/26 || 13:57:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170826_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170826_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/28 || 01:03:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170828_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170828_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 00:59:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/30 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170830_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170830_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/31 || 13:50:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170831_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170831_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/01 || 13:51:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170901_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170901_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/02 || 13:52:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170902_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170902_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/03 || 13:53:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170903_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170903_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/04 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170904_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170904_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/05 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170905_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170905_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/06 || 13:55:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170906_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170906_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/07 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170907_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170907_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/08 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170908_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170908_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 00:01:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 13:57:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/11 || 13:58:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170911_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170911_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/12 || 14:00:11 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170912_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170912_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 04:15:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||Refcal at around 14 UT is also good. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 14:01:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/15 || 14:39:27 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170915_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170915_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/16 || 13:46:56 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170916_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170916_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/17 || 13:47:46 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170917_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170917_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/18 || 14:05:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170918_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170918_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/19 || 14:06:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170919_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170919_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/22 || 14:08:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170922_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170922_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/23 || 14:09:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170923_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170923_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/24 || 14:10:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170924_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170924_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/25 || 14:17:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170925_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170925_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/26 || 14:10:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170926_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170926_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/27 || 14:06:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170927_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170927_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/28 || 14:02:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170928_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170928_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/29 || 14:01:20 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170929_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170929_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/30 || 13:54:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170930_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170930_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/01 || 13:50:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171001_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171001_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/02 || 13:47:28 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171002_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171002_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/03 || 13:43:25 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171003_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171003_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/04 || 13:40:52 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171004_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171004_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/06 || 02:42:39 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171006_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171006_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/06 || 13:32:53 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171006_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171006_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/07 || 13:30:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171007_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171007_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/08 || 13:26:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171008_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171008_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/10 || 02:31:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171010_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171010_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/11 || 02:23:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171011_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171011_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/12 || 02:19:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171012_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171012_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/13 || 02:15:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171013_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171013_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/13 || 12:54:23 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171013_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171013_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/14 || 12:50:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171014_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171014_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/16 || 02:07:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171016_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171016_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/18 || 01:59:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171018_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171018_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/19 || 12:30:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171019_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171019_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/20 || 12:22:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171021_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171021_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/21 || 12:22:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171021_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171021_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/22 || 12:18:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171022_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171022_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/24 || 12:10:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171024_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171024_refcal_amp.png Amp] || Few frequencies have unusually high amplitudes. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/24 || 01:35:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171024_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171024_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/25 || 01:31:50 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171025_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171025_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/26 || 12:02:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171026_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171026_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/27 || 11:58:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171027_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171027_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/28 || 11:54:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171028_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171028_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/10/29 || 11:50:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171029_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171029_refcal_amp.png Amp] || Ant 8 was down.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/11/05 || 14:54:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20171105_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20171105_refcal_amp.png Amp] || Ant 3 was down. No calibration for: Ant 3&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Trouble_Shooting_Guide&amp;diff=2022</id>
		<title>Trouble Shooting Guide</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Trouble_Shooting_Guide&amp;diff=2022"/>
		<updated>2017-11-01T15:03:11Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a trouble shooting guide for tohbans monitoring EOVSA remotely using MobaXterm and VNC Viewer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font size=&amp;quot;5&amp;quot;&amp;gt;'''&amp;lt;General checklist for solar observation&amp;gt;'''&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1. Check [http://ovsa.njit.edu/EOVSA/ant_status.php Antenna Status Page] to see if any antenna is under work.&lt;br /&gt;
&lt;br /&gt;
2. In Schedule window, click &amp;quot;Today&amp;quot;, &amp;quot;File&amp;quot;, choose &amp;quot;Save&amp;quot; (overwrite if prompted), and &amp;quot;Go&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;'''Since Feb. 2017, the schedule setup is slightly different.''' Do the following:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.1. Load 'solar.scd' and hit Today. Save it (overwrite if prompted).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.2. Open 'solar_plus3c84_Feb2017.scd' in Texteditor (in ~/Dropbox/PythonCode/Current folder).&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.3. Update the sunrise and the sunset time according to the solar.scd file that you just updated.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.4. Update the PHASECAL (and refcal, which is 1-hr PHASECAL, if necessary) times by '''subtracting''' 4 minutes from each scan (to account for the day-to-day sidereal time shift of each calibrator source). Shift the times of previous and next lines (usually ACQUIRE and SUN) accordingly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.5. Save the updated 'solar_plus3c84_Feb2017.scd'. Don't forget to update the DATE as well.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;2.6. Load the updated 'solar_plus3c84_Feb2017.scd' and hit Go.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. '''Antenna Tracking''' - are all antenna tracking (in white color)?&lt;br /&gt;
&lt;br /&gt;
4. '''Frequency Tuning''' - LO1A Sweep Status = &amp;quot;Sweeping&amp;quot;, FSeqFile = FSEQ-FILE on the schedule, ErrorMsg = &amp;quot;No error&amp;quot;&lt;br /&gt;
&lt;br /&gt;
5. '''Phase Tracking''' - &amp;quot;ON&amp;quot;&lt;br /&gt;
&lt;br /&gt;
6. '''Power and Attenuation''' - Are all dBm on both H- and V- Channels within the second and third numbers shown in &amp;quot;AGC&amp;quot; on the schedule window? You can also see '''SaveList''' hpol and vpol to check this.&lt;br /&gt;
&lt;br /&gt;
7. '''Temps''' - no fluctuation?&lt;br /&gt;
&lt;br /&gt;
8. '''CryoRX''' - this is for antenna 14 control system. If it is down (Eg: FEMA Outlets &amp;amp; Receiver Voltage/Current values are zero and status is OFF), then issue the command 'ctlgo' in the terminal.&lt;br /&gt;
&lt;br /&gt;
9. Make sure that [http://ovsa.njit.edu/EOVSA/status.php EOVSA Observing Status Page] is being updated and that the data is being recorded. You can check if the data is recorded by typing &amp;quot;ls /data1/IDB |tail&amp;quot; in DPP terminal too.&lt;br /&gt;
&lt;br /&gt;
10. STOW antennas at the end of the observation, if needed (see [http://www.ovsa.njit.edu/wiki/index.php/Trouble_Shooting_Guide#Antenna_does_not_stow_.28Ant_10.29 possible problem with Ant 10])&lt;br /&gt;
&lt;br /&gt;
11. Checking the PHASECAL plots [http://ovsa.njit.edu/phasecal/ PHASECAL plot page], if you notice any unusual noisy data on ants 9, 10, 11 or 13, generally it means the antenna did not stow properly on a previous occasion, so you should issue the commands (for example with ant 13): &lt;br /&gt;
step 1: stop ant13&lt;br /&gt;
&lt;br /&gt;
step 2: stow ant13 (wait for it to completely stow--repeat steps 1 and 2 if it seems like it is not stowing after 5 minutes or so)&lt;br /&gt;
&lt;br /&gt;
step 3: track ant13&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt; New! &amp;lt;/span&amp;gt; 12. After the day's observation is over, take a look at the results of all PHASECAL by going to [http://ovsa.njit.edu/phasecal/ PHASECAL plot page]. Note any scan that didn't go well '''without''' the effect of WINDSCRAM (if it was under WINDSCRAM then the data points would appear in red). Record your comments on them in tohban log at [http://ovsa.njit.edu/dev/data-browsing/index.php EOVSA tohban log page]. Log other activities during your duty.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt; New! &amp;lt;/span&amp;gt; 13. Do the reference gain calibration analysis by following the procedures explained in [http://www.ovsa.njit.edu/wiki/index.php/Reference_Gain_Calibration Reference Gain Calibration] '''by 1 pm on the next day'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt; New! &amp;lt;/span&amp;gt; 14. Run the following commands to produce daily spectrogram which will be uploaded to RHESSI browser.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import read_idb as ri&lt;br /&gt;
from util import Time&lt;br /&gt;
#To produce the spectrogram for 2017-08-14 on 2017-08-15&lt;br /&gt;
out = ri.allday_udb(t=Time('2017-08-14'),gain_corr=True,savfig=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schedule window ==&lt;br /&gt;
&lt;br /&gt;
=== I accidentally closed the schedule ===&lt;br /&gt;
&lt;br /&gt;
1. Click &amp;quot;Schedule&amp;quot; (on the left task bar) '''just once'''.&lt;br /&gt;
&lt;br /&gt;
2. Click &amp;quot;Today&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== “Error: Could not write stateframe to SQL” ===&lt;br /&gt;
&lt;br /&gt;
1. hit STOP on the schedule&lt;br /&gt;
&lt;br /&gt;
2. type $scan-stop in Raw Command window (to stop the data recording)&lt;br /&gt;
&lt;br /&gt;
3. close the schedule (exit out of it)&lt;br /&gt;
&lt;br /&gt;
4. restart the program (by clicking on the icon at the left)&lt;br /&gt;
&lt;br /&gt;
5. hit GO to start the observation again&lt;br /&gt;
&lt;br /&gt;
== Stateframe ==&lt;br /&gt;
&lt;br /&gt;
=== Stateframe is frozen ===&lt;br /&gt;
&lt;br /&gt;
1. Close the old one using command 'kill #' where # is the number followed by My PID in the terminal of sched@helios&lt;br /&gt;
&lt;br /&gt;
2. Open a new Stateframe from the menu on the left ('sf_display')&lt;br /&gt;
&lt;br /&gt;
3. Check the log box of the new stateframe&lt;br /&gt;
&lt;br /&gt;
=== “ACC down?” ===&lt;br /&gt;
&lt;br /&gt;
1. Open pdudigital.solar.pvt on web browser&lt;br /&gt;
&lt;br /&gt;
2. Go to “Actions”&lt;br /&gt;
&lt;br /&gt;
3. Go to “Loads” (on the left)&lt;br /&gt;
&lt;br /&gt;
4. Click item 14 (ACC)&lt;br /&gt;
&lt;br /&gt;
5. Hit “Cycle” and “Ok” when prompted&lt;br /&gt;
&lt;br /&gt;
After rebooting, if Stateframe hangs up &amp;amp; does not respond, open a new Stateframe and give &amp;quot;kill ##&amp;quot; (## = “My PID” on the upper right corner of frozen Stateframe) command to sched@helios.solar.pvt server.&lt;br /&gt;
&lt;br /&gt;
=== CryoRX tab - Status are OFF, all values are zeroes (Checklist #7 is false)===&lt;br /&gt;
&lt;br /&gt;
What you should be seeing is that FEMA Outlets and Receiver Voltages/Currents are all zeroes, and Status are all OFF (except for Noise Diode, and RFSwitch when using low frequency receiver). This means that the control system for receiver has died. You would still see that antennas are tracking fine and data is recorded, and it doesn't mean that these data are &amp;quot;wrong&amp;quot; or &amp;quot;unusable&amp;quot;. They have to be ON and non-zeroes whenever you want to change receiver setting or modify attenuation setting, which sometimes happens during the observation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;del&amp;gt;To reboot, execute &amp;quot;starburstControl start&amp;quot; in antctl@feanta server (ssh connect from helios, if disconnected).&amp;lt;/del&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;12/18/2016&amp;gt; To reboot, just type &amp;quot;ctlgo&amp;quot; in a terminal window on helios in VNC Viewer (you may have to stop the schedule). If for any reason you want to stop the control system, type &amp;quot;ctlstop&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Antenna(s) down ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;'''Don’t forget to check the [http://ovsa.njit.edu/EOVSA/ant_status.php Antenna Status page] before considering to “fix” any of the antennas!!'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Symptoms: Not tracking, showing ‘AT STOW’ or other unwanted coordinates, both AZ and EL permits ON or only EL permit ON, or Axis Lock is ON&lt;br /&gt;
&lt;br /&gt;
1. Ant 9, 10, 11, 13 could be in this state early in the schedule because they just can't move to commanded position (out of declination limit). In this case, you just have to wait a while (~few hours?)&lt;br /&gt;
&lt;br /&gt;
2. In cold morning, large spike in the current may cause large position error in AT STOW state. &lt;br /&gt;
&lt;br /&gt;
3. Proceed if neither #1 nor #2 is the case. If only AZ permit is ON (the first column), try &amp;quot;reboot 1 ant2&amp;quot; for rebooting ant2, for example.&lt;br /&gt;
&lt;br /&gt;
4. If both AZ and EL permit is ON (the second column) or only EL permit is ON, then give command &amp;quot;$pcycle ant2&amp;quot; for resetting antenna 2. This switches OFF the power to antenna for 15 seconds and switches ON. In Communication tab, Ant 2 line will go red. Wait till it becomes white. If it does not become white, then try &amp;quot;sync ant2&amp;quot;. If cRIO does not respond to this, it may be in “safe mode”, in which case you can type &amp;quot;$pcycle crio ant2&amp;quot; (if on ants 1-8 or 12) and it will cycle the power on the cRIO. &amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;Note that cRIO takes at least 2 minutes to reboot and come back online.&amp;lt;/span&amp;gt; If this sequence does not work, you may try $pcycle again, &amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;but keep in mind that this command in general should only be used when needed (i.e. discouraged if it can be avoided), to save wear and tear on the components.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Give &amp;quot;tracktable [the current tracktable ***.radec] ant2&amp;quot; and &amp;quot;track ant2&amp;quot; to initiate the tracking. If this does not work, look for temperature to raise (if temperature is low).&lt;br /&gt;
&lt;br /&gt;
=== Ant14's cRIO's &amp;quot;Ant&amp;quot; value (last column) is showing negative value ===&lt;br /&gt;
&lt;br /&gt;
What you may see is that ant14's cRIO's &amp;quot;Ant&amp;quot; value (the very last column) showing negative value (not necessarily the extremely large value like you see for some antennas that are down, but some random number with negative sign). When you observe this, go to &amp;quot;ant14.solar.pvt&amp;quot; on web browser and see if it says in red &amp;quot;Slot1 - Maths error&amp;quot; on the left side. It is believed to occur when the controller is interpolating coordinates for the last-entered track table, and the calculation blows up (i.e. pcal_tab.radec file would have had a day change in it when it was not supposed to).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;This should not happen beyond 12/18/2016, but if you observe it beyond this date, '''report to Dr. Gary''', and proceed to do the followings:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1. In &amp;quot;ant14.solar.pvt&amp;quot;, go to &amp;quot;Log-in&amp;quot; and log-in (if you need ID/PW, ask Dr. Gary or Natsuha.)&lt;br /&gt;
&lt;br /&gt;
2. Click &amp;quot;Parameters&amp;quot;, then select &amp;quot;#10 - Status And Trips&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
3. Choose &amp;quot;#1 - 10.00&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
4. Enter &amp;quot;1070&amp;quot; to &amp;quot;Update values&amp;quot;, and hit &amp;quot;change&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
5. Go to &amp;quot;Parameters&amp;quot; again, and choose &amp;quot;#38 - User Trip&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
6. Enter &amp;quot;100&amp;quot; to &amp;quot;Update values&amp;quot;, and hit &amp;quot;change&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This is supposed to reset the controller. Watch for cRIO's Ant value changes to positive values. &amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;Take note on the time you did this procedure, and report it to Dr. Gary.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== BRIGHTSCRAM ===&lt;br /&gt;
&lt;br /&gt;
Find out which antenna is experiencing this by looking at [http://ovsa.njit.edu/fits/images/ FITS image files]. BRIGHTSCRAM should appear as data-gap like features on the dynamics spectra. &amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;If more than two antennas are having BRIGHTSCRAM, then ALL antennas show BRIGHTSCRAM.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Wait for a while (~10 min) to see if it automatically goes away. After it goes away, give &amp;quot;tracktable [the current tracktable ***.radec] ant#&amp;quot; and &amp;quot;track ant#&amp;quot; to initiate the tracking.&lt;br /&gt;
&lt;br /&gt;
=== Frequency Tuning's Sweep Status is “stopped” or &amp;quot;Queue overflow&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
1. Try &amp;quot;Stop&amp;quot; and &amp;quot;Go&amp;quot; the schedule.&lt;br /&gt;
&lt;br /&gt;
2. If #1 does not work, try &amp;quot;lo1a-reboot&amp;quot; in Raw command window&lt;br /&gt;
&lt;br /&gt;
3. If #2 does not work, try the following raw commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fseq-off&lt;br /&gt;
fseq-init&lt;br /&gt;
fseq-file [the current frequency receiver setting ***.fsq] (should be in the right side of the schedule window, like solarhi.fsq)&lt;br /&gt;
fseq-on&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Temperature is fluctuating too much ===&lt;br /&gt;
&lt;br /&gt;
Try rebooting the temperature controller by typing &amp;quot;tec$bc ant2&amp;quot; for ant2, for example (tec =&amp;gt; Thermo-Electric Controller).&lt;br /&gt;
&lt;br /&gt;
=== nd-on is on (Attenuation) ===&lt;br /&gt;
&lt;br /&gt;
Send &amp;quot;nd-off ant#&amp;quot; raw command to turn off the local noise diode. &lt;br /&gt;
 &lt;br /&gt;
[[File:2016-04-13_hpol.png|thumb|upright=2.0|'''Figure 1:''' Example of the oscillation from unbalanced attenuation for ant 12 (orange).]]&lt;br /&gt;
&lt;br /&gt;
[[File:2016-04-15_hpol.png|thumb|upright=2.0|'''Figure 2:''' Example of the oscillation from unbalanced attenuation for ant 2 (red) and 5 (cyan).]]&lt;br /&gt;
&lt;br /&gt;
=== hpol/vpol plot (Savelist) is showing unusual oscillating behavior ===&lt;br /&gt;
&lt;br /&gt;
What you should see is the dBm values of the antenna fluctuating very violently like in '''Figure 1''' and '''2'''. Notice that the amplitude of the fluctuation is ~3 dB, which was one FEMATTN step (at this date). This happens when hattn/vattn settings of the antenna get changed somehow and two polarizations get very unbalanced. The result is that the automatic gain control is not being able to find a happy level for both at the same time, and went into an oscillation. To calm it down, first issue the commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;femauto-off ant#&lt;br /&gt;
hattn 0 0 ant#&lt;br /&gt;
vattn 0 0 ant#&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which turns off the automatic gain control. '''If the antenna is on the Sun, temporarily move it off the Sun using''' &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
radecoff 0 10 ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
With the antenna off the Sun, set the hattn and vattn settings until both power levels are around 3 dB, i.e.:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hattn 0 12 ant#&lt;br /&gt;
vattn 0 11 ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where the choice of attenuations (12 and 11 in this example) are those that set the power level close to 3 dB. Finally, turn the gain control back on, with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
femauto-on ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''If you issued the radecoff command, be sure to remove it with'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
radecoff 0 0 ant#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;If the fluctuation is within one FEMATTN step (2 dB as of 12/12/16, check [http://www.ovsa.njit.edu/wiki/index.php/Schedule_Commands#FEMATTN_level_.5Bantennalist.5D Schedule Command - FEMATTN level]), the cause might be just interference. In this case, leave it for a while and see if the oscillation goes away.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Antenna does not stow (Ant 10) ===&lt;br /&gt;
&lt;br /&gt;
This mostly seems to happen on Ant 10 (as of ~July 2017). The symptom is that Ant 10 keeps staying at &amp;quot;TO STOW&amp;quot; status while all other (old) antennas are AT STOW already at the end of the observation. You might have tried the command &amp;quot;stow ant10&amp;quot;, but it did not change the status. If this continues for more than a minute or so, it is likely that the antenna is running into a limit, and cannot be stowed properly with just &amp;quot;stow ant10&amp;quot; command (you also cannot trust if it does go to STOW by itself much later). To properly stow the antenna, '''issue &amp;quot;stop ant10&amp;quot; first''', then do &amp;quot;stow ant10&amp;quot;. You may need to do this multiple times. If you don't properly stow the antenna this way, it may not start tracking automatically next morning, and you will miss the data from this antenna.&lt;br /&gt;
&lt;br /&gt;
=== Antenna tab is blank and an attempt to switch to it causes the Stateframe to freeze ===&lt;br /&gt;
&lt;br /&gt;
This occurred around early June of 2017. The cause turned out to be a change in numpy behavior. Dr. Gary updated the numpy at some point and a subtle difference caused it. This means that we should think about software upgrade as one of the causes of malfunctions of our system sometimes.&lt;br /&gt;
&lt;br /&gt;
== Data recording (DPP) ==&lt;br /&gt;
&lt;br /&gt;
=== Data recording has stopped (ls /data1/IDB |tail does not return the most recent file) ===&lt;br /&gt;
&lt;br /&gt;
You need to delete dpplock.txt file. Follow these steps:&lt;br /&gt;
&lt;br /&gt;
1. Enter &amp;quot;top&amp;quot; into user@dpp.solar.pvt command line (if user@dpp.solar.pvt is not there, open a new terminal/terminal tab in VNC viewer &amp;amp; type “ssh -X user@dpp.solar.pvt).&lt;br /&gt;
&lt;br /&gt;
2. Look for &amp;quot;dppxmp” under “command” column. &amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;'''If it is there, do NOT delete dpplock.txt.'''&amp;lt;/span&amp;gt; If it’s not there, then quit top by hitting “q” and proceed.&lt;br /&gt;
&lt;br /&gt;
3. Type “rmlock&amp;quot; on DPP terminal. Check if the data recording has recovered by sending &amp;quot;ls /data1/IDB |tail&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Network ==&lt;br /&gt;
&lt;br /&gt;
=== Cannot open VNC Viewer, or VNC Viewer's response is too slow ===&lt;br /&gt;
&lt;br /&gt;
Open the “local” raw command window and Stateframe window by following these steps:&lt;br /&gt;
&lt;br /&gt;
1. Type &amp;quot;cd /common/python/current&amp;quot; in helios.solar.pvt terminal of MobaXterm&lt;br /&gt;
&lt;br /&gt;
2. Type &amp;quot;./sched_commands.py&amp;quot; for raw command window&lt;br /&gt;
&lt;br /&gt;
3. Type &amp;quot;./sf_display.py&amp;quot; for Stateframe window (add “ &amp;amp;” in the end if you want to keep typing the command in the same helios window) -- note that this Stateframe window may take a while (~5 min or more) to load.&lt;br /&gt;
&lt;br /&gt;
== Others ==&lt;br /&gt;
&lt;br /&gt;
[[File:FLM20151005.png|thumb|upright=2.0|'''Figure 3:''' Geosynchronous satellite signals seen in flare monitor.]]&lt;br /&gt;
&lt;br /&gt;
=== Strong interference in flare monitor ===&lt;br /&gt;
&lt;br /&gt;
Twice per year (for 1-2 weeks centered around Mar. 5 and Oct. 5), the Sun enters in geosynchronous satellite belt. In this case, we see strong signals on flare monitor, like in '''Figure 3''' (blue line). These are radio signals from man-made satellites, which will not harm the system and cannot be avoided, so don't be alarmed.&lt;br /&gt;
&lt;br /&gt;
=== The “streak” in the lowest frequency of the dynamic spectrum ===&lt;br /&gt;
&lt;br /&gt;
If you are seeing this at the beginning or at the end of the day, this is the Sun! See '''Figure 4''' and '''Figure 5''' for sample images. When the baseline is foreshortened (as in near sunrise or sunset), the response is quite strong to the solar disk.  As the Sun rises, the intensity goes down because the baselines start to get longer.  You will actually see the reverse trend in the afternoon, although often the RFI is stronger so the color scale is more blue than in the morning.&lt;br /&gt;
&lt;br /&gt;
[[File:XSP20151202160136.png|thumb|upright=2.0|'''Figure 4:''' The solar signal at the beginning of 2015-12-02 observation period. Notice that the low frequency intensity is decreasing as the Sun rises.]]&lt;br /&gt;
&lt;br /&gt;
[[File:XSP20151202213507.png|thumb|upright=2.0|'''Figure 5:''' The solar signal at the end of 2015-12-02 observation period. Notice the reverse effect compared to '''Figure 4'''.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1921</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1921"/>
		<updated>2017-09-25T00:48:51Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. The routines (on pipeline machine) to retrieve and analyze the data are in the module refcal_anal.py. Start from a time range during which the reference calibration observation occurred (check the [http://ovsa.njit.edu/phasecal/ phasecal results] to see which 1-hr scan had stable phases)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
#example time range of the refcal scan that took place BEFORE the observation&lt;br /&gt;
trange=Time(['2017-04-08T14:00','2017-04-08T15:00'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now read the data from that timerange&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that there are optional arguments that can be given, such as projid='PHASECAL' (the default) and srcid='1229+060', but these are generally not needed.&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters (better to check more bands).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS: From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Observations within this time range will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0. We can further determine a finer selection of time range within this scan that has clean and stable phases if needed, by setting the new timerange in &amp;quot;trange&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=trange,scanidx=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/13 || 13:48:39 ||  2136+006  || || 0 ||  || 5~23 || [http://ovsa.njit.edu/refcal/20170413_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170413_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/11 || 12:56:22 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170611_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170611_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 02:33:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 8 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 13:01:19 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/30 || 02:47:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170630_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170630_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/01 || 02:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170701_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170701_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/02 || 03:01:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170702_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170702_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/03 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170703_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170703_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/04 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170704_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170704_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/05 || 02:55:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170705_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170705_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 13:16:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/10 || 13:14:17 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170710_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170710_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/11 || 13:14:18 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170711_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170711_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/12 || 13:14:24 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170712_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170712_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/13 || 13:14:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170713_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170713_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/14 || 13:15:35 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170714_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170714_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 02:48:33 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 13:16:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/17 || 13:14:54 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170717_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170717_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/18 || 13:15:31 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170718_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170718_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/19 || 13:16:16 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170719_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170719_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/20 || 13:16:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170720_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170720_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/21 || 13:20:57 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170721_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170721_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/22 || 13:21:36 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170722_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170722_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/23 || 13:34:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170723_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170723_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/24 || 13:22:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170724_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170724_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/25 || 13:23:38 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170725_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170725_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/26 || 18:00:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170726_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170726_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/28 || 02:42:36 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170728_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170728_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/29 || 13:37:40 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170729_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170729_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/31 || 13:27:05 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170731_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170731_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/01 || 13:28:30 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170801_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170801_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/02 || 13:29:13 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170802_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170802_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/03 || 13:29:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170803_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170803_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 02:35:58 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 13:31:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/06 || 13:32:06 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170806_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170806_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/07 || 13:32:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170807_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170807_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/08 || 13:33:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170808_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170808_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/11 || 12:47:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170811_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170811_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/12 || 12:43:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170812_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170812_refcal_amp.png Amp] || No calibration for: Ant 9&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/13 || 12:39:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170813_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170813_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/14 || 12:34:19 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170814_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170814_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/15 || 12:31:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170815_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170815_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/16 || 12:27:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170816_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170816_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/17 || 12:23:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170817_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170817_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/18 || 12:19:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170818_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170818_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/19 || 12:15:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170819_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170819_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/21 || 12:07:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170821_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170821_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/22 || 12:03:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170822_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170822_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/23 || 12:14:51 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170823_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170823_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/24 || 11:55:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170824_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170824_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/25 || 14:01:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170825_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170825_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/26 || 13:57:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170826_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170826_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/28 || 01:03:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170828_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170828_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 00:59:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/30 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170830_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170830_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/31 || 13:50:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170831_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170831_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/01 || 13:51:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170901_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170901_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/02 || 13:52:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170902_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170902_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/03 || 13:53:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170903_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170903_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/04 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170904_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170904_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/05 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170905_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170905_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/06 || 13:55:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170906_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170906_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/07 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170907_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170907_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/08 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170908_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170908_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 00:01:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 13:57:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/11 || 13:58:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170911_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170911_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/12 || 14:00:11 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170912_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170912_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 04:15:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||Refcal at around 14 UT is also good. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 14:01:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/15 || 14:39:27 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170915_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170915_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/16 || 13:46:56 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170916_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170916_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/17 || 13:47:46 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170917_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170917_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/18 || 14:05:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170918_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170918_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/19 || 14:06:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170919_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170919_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/22 || 14:08:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170922_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170922_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/23 || 14:09:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170923_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170923_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/24 || 14:10:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170924_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170924_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1920</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1920"/>
		<updated>2017-09-25T00:15:04Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. The routines (on pipeline machine) to retrieve and analyze the data are in the module refcal_anal.py. Start from a time range during which the reference calibration observation occurred (check the [http://ovsa.njit.edu/phasecal/ phasecal results] to see which 1-hr scan had stable phases)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
#example time range of the refcal scan that took place BEFORE the observation&lt;br /&gt;
trange=Time(['2017-04-08T14:00','2017-04-08T15:00'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now read the data from that timerange&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that there are optional arguments that can be given, such as projid='PHASECAL' (the default) and srcid='1229+060', but these are generally not needed.&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters (better to check more bands).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS: From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Observations within this time range will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0. We can further determine a finer selection of time range within this scan that has clean and stable phases if needed, by setting the new timerange in &amp;quot;trange&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=trange,scanidx=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/13 || 13:48:39 ||  2136+006  || || 0 ||  || 5~23 || [http://ovsa.njit.edu/refcal/20170413_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170413_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/11 || 12:56:22 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170611_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170611_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 02:33:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 8 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 13:01:19 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/30 || 02:47:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170630_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170630_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/01 || 02:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170701_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170701_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/02 || 03:01:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170702_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170702_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/03 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170703_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170703_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/04 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170704_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170704_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/05 || 02:55:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170705_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170705_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 13:16:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/10 || 13:14:17 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170710_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170710_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/11 || 13:14:18 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170711_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170711_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/12 || 13:14:24 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170712_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170712_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/13 || 13:14:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170713_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170713_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/14 || 13:15:35 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170714_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170714_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 02:48:33 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 13:16:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/17 || 13:14:54 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170717_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170717_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/18 || 13:15:31 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170718_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170718_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/19 || 13:16:16 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170719_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170719_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/20 || 13:16:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170720_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170720_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/21 || 13:20:57 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170721_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170721_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/22 || 13:21:36 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170722_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170722_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/23 || 13:34:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170723_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170723_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/24 || 13:22:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170724_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170724_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/25 || 13:23:38 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170725_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170725_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/26 || 18:00:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170726_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170726_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/28 || 02:42:36 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170728_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170728_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/29 || 13:37:40 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170729_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170729_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/31 || 13:27:05 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170731_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170731_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/01 || 13:28:30 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170801_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170801_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/02 || 13:29:13 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170802_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170802_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/03 || 13:29:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170803_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170803_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 02:35:58 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 13:31:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/06 || 13:32:06 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170806_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170806_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/07 || 13:32:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170807_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170807_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/08 || 13:33:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170808_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170808_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/11 || 12:47:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170811_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170811_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/12 || 12:43:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170812_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170812_refcal_amp.png Amp] || No calibration for: Ant 9&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/13 || 12:39:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170813_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170813_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/14 || 12:34:19 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170814_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170814_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/15 || 12:31:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170815_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170815_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/16 || 12:27:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170816_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170816_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/17 || 12:23:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170817_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170817_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/18 || 12:19:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170818_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170818_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/19 || 12:15:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170819_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170819_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/21 || 12:07:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170821_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170821_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/22 || 12:03:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170822_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170822_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/23 || 12:14:51 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170823_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170823_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/24 || 11:55:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170824_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170824_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/25 || 14:01:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170825_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170825_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/26 || 13:57:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170826_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170826_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/28 || 01:03:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170828_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170828_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 00:59:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/30 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170830_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170830_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/31 || 13:50:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170831_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170831_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/01 || 13:51:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170901_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170901_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/02 || 13:52:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170902_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170902_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/03 || 13:53:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170903_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170903_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/04 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170904_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170904_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/05 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170905_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170905_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/06 || 13:55:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170906_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170906_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/07 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170907_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170907_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/08 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170908_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170908_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 00:01:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 13:57:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/11 || 13:58:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170911_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170911_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/12 || 14:00:11 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170912_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170912_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 04:15:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||Refcal at around 14 UT is also good. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 14:01:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/15 || 14:39:27 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170915_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170915_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/16 || 13:46:56 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170916_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170916_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/17 || 13:47:46 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170917_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170917_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/18 || 14:05:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170918_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170918_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/19 || 14:06:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170919_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170919_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/22 || 14:08:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170922_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170922_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/23 || 14:09:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170923_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170923_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1919</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1919"/>
		<updated>2017-09-23T04:47:10Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. The routines (on pipeline machine) to retrieve and analyze the data are in the module refcal_anal.py. Start from a time range during which the reference calibration observation occurred (check the [http://ovsa.njit.edu/phasecal/ phasecal results] to see which 1-hr scan had stable phases)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
#example time range of the refcal scan that took place BEFORE the observation&lt;br /&gt;
trange=Time(['2017-04-08T14:00','2017-04-08T15:00'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now read the data from that timerange&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that there are optional arguments that can be given, such as projid='PHASECAL' (the default) and srcid='1229+060', but these are generally not needed.&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters (better to check more bands).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS: From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Observations within this time range will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0. We can further determine a finer selection of time range within this scan that has clean and stable phases if needed, by setting the new timerange in &amp;quot;trange&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=trange,scanidx=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/13 || 13:48:39 ||  2136+006  || || 0 ||  || 5~23 || [http://ovsa.njit.edu/refcal/20170413_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170413_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/11 || 12:56:22 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170611_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170611_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 02:33:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 8 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 13:01:19 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/30 || 02:47:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170630_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170630_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/01 || 02:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170701_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170701_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/02 || 03:01:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170702_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170702_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/03 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170703_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170703_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/04 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170704_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170704_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/05 || 02:55:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170705_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170705_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 13:16:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/10 || 13:14:17 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170710_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170710_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/11 || 13:14:18 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170711_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170711_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/12 || 13:14:24 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170712_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170712_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/13 || 13:14:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170713_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170713_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/14 || 13:15:35 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170714_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170714_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 02:48:33 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 13:16:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/17 || 13:14:54 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170717_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170717_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/18 || 13:15:31 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170718_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170718_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/19 || 13:16:16 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170719_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170719_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/20 || 13:16:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170720_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170720_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/21 || 13:20:57 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170721_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170721_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/22 || 13:21:36 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170722_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170722_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/23 || 13:34:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170723_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170723_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/24 || 13:22:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170724_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170724_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/25 || 13:23:38 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170725_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170725_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/26 || 18:00:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170726_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170726_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/28 || 02:42:36 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170728_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170728_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/29 || 13:37:40 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170729_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170729_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/31 || 13:27:05 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170731_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170731_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/01 || 13:28:30 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170801_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170801_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/02 || 13:29:13 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170802_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170802_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/03 || 13:29:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170803_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170803_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 02:35:58 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 13:31:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/06 || 13:32:06 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170806_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170806_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/07 || 13:32:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170807_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170807_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/08 || 13:33:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170808_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170808_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/11 || 12:47:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170811_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170811_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/12 || 12:43:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170812_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170812_refcal_amp.png Amp] || No calibration for: Ant 9&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/13 || 12:39:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170813_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170813_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/14 || 12:34:19 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170814_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170814_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/15 || 12:31:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170815_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170815_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/16 || 12:27:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170816_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170816_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/17 || 12:23:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170817_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170817_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/18 || 12:19:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170818_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170818_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/19 || 12:15:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170819_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170819_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/21 || 12:07:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170821_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170821_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/22 || 12:03:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170822_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170822_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/23 || 12:14:51 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170823_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170823_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/24 || 11:55:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170824_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170824_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/25 || 14:01:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170825_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170825_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/26 || 13:57:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170826_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170826_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/28 || 01:03:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170828_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170828_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 00:59:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/30 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170830_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170830_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/31 || 13:50:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170831_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170831_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/01 || 13:51:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170901_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170901_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/02 || 13:52:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170902_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170902_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/03 || 13:53:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170903_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170903_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/04 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170904_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170904_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/05 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170905_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170905_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/06 || 13:55:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170906_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170906_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/07 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170907_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170907_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/08 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170908_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170908_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 00:01:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 13:57:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/11 || 13:58:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170911_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170911_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/12 || 14:00:11 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170912_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170912_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 04:15:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||Refcal at around 14 UT is also good. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 14:01:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/15 || 14:39:27 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170915_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170915_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/16 || 13:46:56 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170916_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170916_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/17 || 13:47:46 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170917_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170917_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/18 || 14:05:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170918_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170918_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/19 || 14:06:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170919_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170919_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/22 || 14:08:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170922_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170922_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1880</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1880"/>
		<updated>2017-09-20T23:54:45Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. The routines (on pipeline machine) to retrieve and analyze the data are in the module refcal_anal.py. Start from a time range during which the reference calibration observation occurred (check the [http://ovsa.njit.edu/phasecal/ phasecal results] to see which 1-hr scan had stable phases)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
#example time range of the refcal scan that took place BEFORE the observation&lt;br /&gt;
trange=Time(['2017-04-08T14:00','2017-04-08T15:00'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now read the data from that timerange&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that there are optional arguments that can be given, such as projid='PHASECAL' (the default) and srcid='1229+060', but these are generally not needed.&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters (better to check more bands).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS: From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Observations within this time range will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0. We can further determine a finer selection of time range within this scan that has clean and stable phases if needed, by setting the new timerange in &amp;quot;trange&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=trange,scanidx=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/13 || 13:48:39 ||  2136+006  || || 0 ||  || 5~23 || [http://ovsa.njit.edu/refcal/20170413_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170413_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/11 || 12:56:22 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170611_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170611_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 02:33:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 8 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 13:01:19 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/30 || 02:47:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170630_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170630_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/01 || 02:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170701_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170701_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/02 || 03:01:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170702_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170702_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/03 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170703_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170703_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/04 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170704_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170704_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/05 || 02:55:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170705_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170705_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 13:16:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/10 || 13:14:17 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170710_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170710_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/11 || 13:14:18 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170711_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170711_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/12 || 13:14:24 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170712_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170712_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/13 || 13:14:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170713_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170713_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/14 || 13:15:35 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170714_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170714_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 02:48:33 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 13:16:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/17 || 13:14:54 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170717_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170717_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/18 || 13:15:31 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170718_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170718_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/19 || 13:16:16 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170719_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170719_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/20 || 13:16:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170720_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170720_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/21 || 13:20:57 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170721_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170721_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/22 || 13:21:36 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170722_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170722_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/23 || 13:34:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170723_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170723_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/24 || 13:22:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170724_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170724_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/25 || 13:23:38 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170725_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170725_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/26 || 18:00:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170726_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170726_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/28 || 02:42:36 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170728_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170728_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/29 || 13:37:40 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170729_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170729_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/31 || 13:27:05 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170731_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170731_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/01 || 13:28:30 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170801_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170801_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/02 || 13:29:13 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170802_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170802_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/03 || 13:29:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170803_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170803_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 02:35:58 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 13:31:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/06 || 13:32:06 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170806_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170806_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/07 || 13:32:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170807_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170807_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/08 || 13:33:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170808_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170808_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/11 || 12:47:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170811_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170811_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/12 || 12:43:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170812_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170812_refcal_amp.png Amp] || No calibration for: Ant 9&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/13 || 12:39:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170813_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170813_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/14 || 12:34:19 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170814_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170814_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/15 || 12:31:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170815_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170815_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/16 || 12:27:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170816_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170816_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/17 || 12:23:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170817_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170817_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/18 || 12:19:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170818_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170818_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/19 || 12:15:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170819_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170819_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/21 || 12:07:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170821_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170821_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/22 || 12:03:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170822_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170822_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/23 || 12:14:51 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170823_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170823_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/24 || 11:55:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170824_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170824_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/25 || 14:01:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170825_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170825_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/26 || 13:57:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170826_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170826_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/28 || 01:03:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170828_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170828_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 00:59:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/30 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170830_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170830_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/31 || 13:50:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170831_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170831_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/01 || 13:51:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170901_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170901_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/02 || 13:52:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170902_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170902_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/03 || 13:53:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170903_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170903_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/04 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170904_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170904_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/05 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170905_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170905_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/06 || 13:55:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170906_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170906_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/07 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170907_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170907_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/08 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170908_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170908_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 00:01:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 13:57:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/11 || 13:58:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170911_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170911_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/12 || 14:00:11 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170912_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170912_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 04:15:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||Refcal at around 14 UT is also good. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 14:01:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/15 || 14:39:27 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170915_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170915_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/16 || 13:46:56 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170916_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170916_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/17 || 13:47:46 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170917_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170917_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/18 || 14:05:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170918_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170918_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/19 || 14:06:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170919_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170919_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1857</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1857"/>
		<updated>2017-09-20T00:04:01Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. The routines (on pipeline machine) to retrieve and analyze the data are in the module refcal_anal.py. Start from a time range during which the reference calibration observation occurred (check the [http://ovsa.njit.edu/phasecal/ phasecal results] to see which 1-hr scan had stable phases)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
#example time range of the refcal scan that took place BEFORE the observation&lt;br /&gt;
trange=Time(['2017-04-08T14:00','2017-04-08T15:00'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now read the data from that timerange&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that there are optional arguments that can be given, such as projid='PHASECAL' (the default) and srcid='1229+060', but these are generally not needed.&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters (better to check more bands).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS: From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Observations within this time range will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0. We can further determine a finer selection of time range within this scan that has clean and stable phases if needed, by setting the new timerange in &amp;quot;trange&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=trange,scanidx=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/13 || 13:48:39 ||  2136+006  || || 0 ||  || 5~23 || [http://ovsa.njit.edu/refcal/20170413_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170413_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/11 || 12:56:22 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170611_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170611_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 02:33:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 8 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 13:01:19 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/30 || 02:47:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170630_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170630_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/01 || 02:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170701_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170701_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/02 || 03:01:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170702_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170702_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/03 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170703_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170703_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/04 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170704_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170704_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/05 || 02:55:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170705_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170705_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 13:16:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/10 || 13:14:17 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170710_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170710_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/11 || 13:14:18 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170711_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170711_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/12 || 13:14:24 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170712_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170712_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/13 || 13:14:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170713_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170713_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/14 || 13:15:35 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170714_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170714_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 02:48:33 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 13:16:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/17 || 13:14:54 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170717_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170717_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/18 || 13:15:31 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170718_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170718_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/19 || 13:16:16 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170719_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170719_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/20 || 13:16:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170720_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170720_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/21 || 13:20:57 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170721_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170721_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/22 || 13:21:36 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170722_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170722_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/23 || 13:34:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170723_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170723_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/24 || 13:22:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170724_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170724_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/25 || 13:23:38 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170725_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170725_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/26 || 18:00:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170726_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170726_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/28 || 02:42:36 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170728_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170728_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/29 || 13:37:40 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170729_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170729_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/31 || 13:27:05 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170731_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170731_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/01 || 13:28:30 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170801_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170801_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/02 || 13:29:13 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170802_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170802_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/03 || 13:29:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170803_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170803_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 02:35:58 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 13:31:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/06 || 13:32:06 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170806_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170806_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/07 || 13:32:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170807_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170807_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/08 || 13:33:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170808_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170808_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/11 || 12:47:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170811_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170811_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/12 || 12:43:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170812_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170812_refcal_amp.png Amp] || No calibration for: Ant 9&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/13 || 12:39:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170813_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170813_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/14 || 12:34:19 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170814_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170814_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/15 || 12:31:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170815_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170815_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/16 || 12:27:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170816_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170816_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/17 || 12:23:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170817_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170817_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/18 || 12:19:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170818_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170818_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/19 || 12:15:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170819_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170819_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/21 || 12:07:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170821_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170821_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/22 || 12:03:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170822_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170822_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/23 || 12:14:51 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170823_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170823_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/24 || 11:55:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170824_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170824_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/25 || 14:01:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170825_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170825_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/26 || 13:57:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170826_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170826_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/28 || 01:03:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170828_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170828_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 00:59:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/29 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170829_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170829_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/30 || 13:49:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170830_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170830_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/31 || 13:50:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170831_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170831_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/01 || 13:51:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170901_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170901_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/02 || 13:52:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170902_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170902_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/03 || 13:53:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170903_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170903_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/04 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170904_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170904_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/05 || 13:54:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170905_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170905_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/06 || 13:55:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170906_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170906_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/07 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170907_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170907_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/08 || 13:56:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170908_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170908_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 00:01:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/10 || 13:57:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170910_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170910_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/11 || 13:58:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170911_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170911_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/12 || 14:00:11 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170912_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170912_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 04:15:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||Refcal at around 14 UT is also good. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/14 || 14:01:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170914_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170914_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/15 || 14:39:27 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170915_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170915_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/16 || 13:46:56 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170916_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170916_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/17 || 13:47:46 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170917_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170917_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/09/18 || 14:05:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170918_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170918_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1811</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1811"/>
		<updated>2017-08-27T03:22:04Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. The routines (on pipeline machine) to retrieve and analyze the data are in the module refcal_anal.py. Start from a time range during which the reference calibration observation occurred (check the [http://ovsa.njit.edu/phasecal/ phasecal results] to see which 1-hr scan had stable phases)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
#example time range of the refcal scan that took place BEFORE the observation&lt;br /&gt;
trange=Time(['2017-04-08T14:00','2017-04-08T15:00'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now read the data from that timerange&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that there are optional arguments that can be given, such as projid='PHASECAL' (the default) and srcid='1229+060', but these are generally not needed.&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters (better to check more bands).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS: From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Observations within this time range will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0. We can further determine a finer selection of time range within this scan that has clean and stable phases if needed, by setting the new timerange in &amp;quot;trange&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=trange,scanidx=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/13 || 13:48:39 ||  2136+006  || || 0 ||  || 5~23 || [http://ovsa.njit.edu/refcal/20170413_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170413_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/11 || 12:56:22 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170611_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170611_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 02:33:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 8 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 13:01:19 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/30 || 02:47:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170630_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170630_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/01 || 02:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170701_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170701_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/02 || 03:01:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170702_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170702_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/03 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170703_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170703_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/04 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170704_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170704_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/05 || 02:55:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170705_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170705_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 13:16:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/10 || 13:14:17 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170710_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170710_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/11 || 13:14:18 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170711_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170711_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/12 || 13:14:24 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170712_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170712_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/13 || 13:14:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170713_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170713_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/14 || 13:15:35 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170714_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170714_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 02:48:33 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 13:16:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/17 || 13:14:54 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170717_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170717_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/18 || 13:15:31 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170718_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170718_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/19 || 13:16:16 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170719_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170719_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/20 || 13:16:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170720_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170720_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/21 || 13:20:57 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170721_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170721_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/22 || 13:21:36 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170722_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170722_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/23 || 13:34:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170723_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170723_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/24 || 13:22:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170724_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170724_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/25 || 13:23:38 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170725_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170725_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/26 || 18:00:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170726_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170726_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/28 || 02:42:36 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170728_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170728_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/29 || 13:37:40 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170729_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170729_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/31 || 13:27:05 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170731_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170731_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/01 || 13:28:30 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170801_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170801_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/02 || 13:29:13 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170802_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170802_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/03 || 13:29:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170803_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170803_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 02:35:58 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 13:31:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/06 || 13:32:06 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170806_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170806_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/07 || 13:32:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170807_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170807_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/08 || 13:33:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170808_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170808_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/11 || 12:47:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170811_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170811_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/12 || 12:43:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170812_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170812_refcal_amp.png Amp] || No calibration for: Ant 9&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/13 || 12:39:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170813_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170813_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/14 || 12:34:19 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170814_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170814_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/15 || 12:31:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170815_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170815_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/16 || 12:27:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170816_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170816_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/17 || 12:23:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170817_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170817_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/18 || 12:19:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170818_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170818_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/19 || 12:15:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170819_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170819_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/21 || 12:07:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170821_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170821_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/22 || 12:03:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170822_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170822_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/23 || 12:14:51 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170823_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170823_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/24 || 11:55:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170824_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170824_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/25 || 14:01:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170825_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170825_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/26 || 13:57:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170826_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170826_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1810</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1810"/>
		<updated>2017-08-26T12:18:14Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. The routines (on pipeline machine) to retrieve and analyze the data are in the module refcal_anal.py. Start from a time range during which the reference calibration observation occurred (check the [http://ovsa.njit.edu/phasecal/ phasecal results] to see which 1-hr scan had stable phases)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
#example time range of the refcal scan that took place BEFORE the observation&lt;br /&gt;
trange=Time(['2017-04-08T14:00','2017-04-08T15:00'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now read the data from that timerange&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that there are optional arguments that can be given, such as projid='PHASECAL' (the default) and srcid='1229+060', but these are generally not needed.&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters (better to check more bands).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS: From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Observations within this time range will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0. We can further determine a finer selection of time range within this scan that has clean and stable phases if needed, by setting the new timerange in &amp;quot;trange&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=trange,scanidx=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/13 || 13:48:39 ||  2136+006  || || 0 ||  || 5~23 || [http://ovsa.njit.edu/refcal/20170413_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170413_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/11 || 12:56:22 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170611_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170611_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 02:33:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 8 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 13:01:19 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/30 || 02:47:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170630_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170630_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/01 || 02:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170701_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170701_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/02 || 03:01:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170702_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170702_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/03 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170703_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170703_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/04 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170704_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170704_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/05 || 02:55:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170705_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170705_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 13:16:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/10 || 13:14:17 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170710_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170710_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/11 || 13:14:18 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170711_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170711_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/12 || 13:14:24 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170712_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170712_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/13 || 13:14:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170713_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170713_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/14 || 13:15:35 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170714_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170714_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 02:48:33 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 13:16:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/17 || 13:14:54 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170717_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170717_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/18 || 13:15:31 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170718_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170718_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/19 || 13:16:16 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170719_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170719_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/20 || 13:16:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170720_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170720_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/21 || 13:20:57 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170721_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170721_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/22 || 13:21:36 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170722_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170722_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/23 || 13:34:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170723_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170723_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/24 || 13:22:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170724_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170724_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/25 || 13:23:38 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170725_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170725_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/26 || 18:00:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170726_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170726_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/28 || 02:42:36 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170728_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170728_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/29 || 13:37:40 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170729_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170729_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/31 || 13:27:05 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170731_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170731_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/01 || 13:28:30 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170801_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170801_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/02 || 13:29:13 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170802_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170802_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/03 || 13:29:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170803_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170803_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 02:35:58 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 13:31:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/06 || 13:32:06 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170806_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170806_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/07 || 13:32:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170807_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170807_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/08 || 13:33:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170808_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170808_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/11 || 12:47:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170811_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170811_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/12 || 12:43:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170812_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170812_refcal_amp.png Amp] || No calibration for: Ant 9&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/13 || 12:39:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170813_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170813_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/14 || 12:34:19 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170814_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170814_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/15 || 12:31:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170815_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170815_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/16 || 12:27:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170816_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170816_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/17 || 12:23:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170817_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170817_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/18 || 12:19:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170818_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170818_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/19 || 12:15:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170819_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170819_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/21 || 12:07:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170821_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170821_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/22 || 12:03:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170822_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170822_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/23 || 12:14:51 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170823_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170823_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/24 || 11:55:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170824_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170824_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| 2017/08/25 || 14:01:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170825_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170825_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1808</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1808"/>
		<updated>2017-08-24T15:11:30Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. The routines (on pipeline machine) to retrieve and analyze the data are in the module refcal_anal.py. Start from a time range during which the reference calibration observation occurred (check the [http://ovsa.njit.edu/phasecal/ phasecal results] to see which 1-hr scan had stable phases)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
#example time range of the refcal scan that took place BEFORE the observation&lt;br /&gt;
trange=Time(['2017-04-08T14:00','2017-04-08T15:00'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now read the data from that timerange&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that there are optional arguments that can be given, such as projid='PHASECAL' (the default) and srcid='1229+060', but these are generally not needed.&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters (better to check more bands).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS: From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Observations within this time range will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0. We can further determine a finer selection of time range within this scan that has clean and stable phases if needed, by setting the new timerange in &amp;quot;trange&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=trange,scanidx=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/11 || 12:56:22 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170611_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170611_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 02:33:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 8 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 13:01:19 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/30 || 02:47:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170630_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170630_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/01 || 02:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170701_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170701_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/02 || 03:01:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170702_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170702_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/03 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170703_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170703_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/04 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170704_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170704_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/05 || 02:55:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170705_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170705_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 13:16:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/10 || 13:14:17 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170710_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170710_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/11 || 13:14:18 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170711_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170711_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/12 || 13:14:24 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170712_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170712_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/13 || 13:14:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170713_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170713_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/14 || 13:15:35 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170714_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170714_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 02:48:33 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 13:16:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/17 || 13:14:54 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170717_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170717_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/18 || 13:15:31 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170718_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170718_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/19 || 13:16:16 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170719_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170719_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/20 || 13:16:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170720_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170720_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/21 || 13:20:57 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170721_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170721_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/22 || 13:21:36 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170722_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170722_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/23 || 13:34:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170723_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170723_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/24 || 13:22:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170724_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170724_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/25 || 13:23:38 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170725_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170725_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/26 || 18:00:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170726_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170726_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/28 || 02:42:36 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170728_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170728_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/29 || 13:37:40 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170729_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170729_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/31 || 13:27:05 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170731_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170731_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/01 || 13:28:30 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170801_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170801_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/02 || 13:29:13 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170802_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170802_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/03 || 13:29:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170803_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170803_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 02:35:58 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 13:31:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/06 || 13:32:06 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170806_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170806_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/07 || 13:32:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170807_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170807_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/08 || 13:33:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170808_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170808_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/11 || 12:47:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170811_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170811_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/12 || 12:43:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170812_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170812_refcal_amp.png Amp] || No calibration for: Ant 9&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/13 || 12:39:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170813_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170813_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/14 || 12:34:19 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170814_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170814_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/15 || 12:31:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170815_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170815_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/16 || 12:27:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170816_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170816_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/17 || 12:23:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170817_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170817_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/18 || 12:19:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170818_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170818_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/19 || 12:15:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170819_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170819_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/21 || 12:07:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170821_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170821_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/22 || 12:03:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170822_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170822_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/23 || 12:14:51 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170823_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170823_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/24 || 11:55:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170824_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170824_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1807</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1807"/>
		<updated>2017-08-24T03:07:19Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. The routines (on pipeline machine) to retrieve and analyze the data are in the module refcal_anal.py. Start from a time range during which the reference calibration observation occurred (check the [http://ovsa.njit.edu/phasecal/ phasecal results] to see which 1-hr scan had stable phases)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
#example time range of the refcal scan that took place BEFORE the observation&lt;br /&gt;
trange=Time(['2017-04-08T14:00','2017-04-08T15:00'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now read the data from that timerange&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that there are optional arguments that can be given, such as projid='PHASECAL' (the default) and srcid='1229+060', but these are generally not needed.&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters (better to check more bands).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS: From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Observations within this time range will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0. We can further determine a finer selection of time range within this scan that has clean and stable phases if needed, by setting the new timerange in &amp;quot;trange&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=trange,scanidx=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/11 || 12:56:22 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170611_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170611_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 02:33:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 8 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 13:01:19 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/30 || 02:47:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170630_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170630_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/01 || 02:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170701_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170701_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/02 || 03:01:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170702_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170702_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/03 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170703_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170703_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/04 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170704_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170704_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/05 || 02:55:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170705_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170705_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 13:16:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/10 || 13:14:17 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170710_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170710_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/11 || 13:14:18 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170711_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170711_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/12 || 13:14:24 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170712_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170712_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/13 || 13:14:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170713_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170713_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/14 || 13:15:35 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170714_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170714_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 02:48:33 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 13:16:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/17 || 13:14:54 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170717_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170717_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/18 || 13:15:31 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170718_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170718_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/19 || 13:16:16 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170719_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170719_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/20 || 13:16:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170720_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170720_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/21 || 13:20:57 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170721_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170721_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/22 || 13:21:36 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170722_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170722_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/23 || 13:34:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170723_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170723_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/24 || 13:22:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170724_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170724_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/25 || 13:23:38 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170725_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170725_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/26 || 18:00:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170726_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170726_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/28 || 02:42:36 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170728_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170728_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/29 || 13:37:40 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170729_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170729_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/31 || 13:27:05 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170731_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170731_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/01 || 13:28:30 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170801_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170801_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/02 || 13:29:13 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170802_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170802_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/03 || 13:29:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170803_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170803_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 02:35:58 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 13:31:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/06 || 13:32:06 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170806_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170806_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/07 || 13:32:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170807_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170807_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/08 || 13:33:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170808_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170808_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/11 || 12:47:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170811_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170811_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/12 || 12:43:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170812_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170812_refcal_amp.png Amp] || No calibration for: Ant 9&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/13 || 12:39:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170813_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170813_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/14 || 12:34:19 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170814_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170814_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/15 || 12:31:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170815_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170815_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/16 || 12:27:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170816_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170816_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/17 || 12:23:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170817_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170817_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/18 || 12:19:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170818_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170818_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/19 || 12:15:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170819_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170819_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/21 || 12:07:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170821_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170821_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/22 || 12:03:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170822_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170822_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/23 || 12:14:51 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170823_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170823_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1806</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1806"/>
		<updated>2017-08-23T02:17:57Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. The routines (on pipeline machine) to retrieve and analyze the data are in the module refcal_anal.py. Start from a time range during which the reference calibration observation occurred (check the [http://ovsa.njit.edu/phasecal/ phasecal results] to see which 1-hr scan had stable phases)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
#example time range of the refcal scan that took place BEFORE the observation&lt;br /&gt;
trange=Time(['2017-04-08T14:00','2017-04-08T15:00'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now read the data from that timerange&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that there are optional arguments that can be given, such as projid='PHASECAL' (the default) and srcid='1229+060', but these are generally not needed.&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters (better to check more bands).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS: From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Observations within this time range will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0. We can further determine a finer selection of time range within this scan that has clean and stable phases if needed, by setting the new timerange in &amp;quot;trange&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=trange,scanidx=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/11 || 12:56:22 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170611_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170611_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 02:33:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 8 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 13:01:19 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/30 || 02:47:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170630_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170630_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/01 || 02:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170701_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170701_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/02 || 03:01:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170702_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170702_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/03 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170703_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170703_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/04 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170704_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170704_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/05 || 02:55:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170705_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170705_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 13:16:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/10 || 13:14:17 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170710_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170710_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/11 || 13:14:18 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170711_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170711_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/12 || 13:14:24 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170712_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170712_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/13 || 13:14:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170713_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170713_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/14 || 13:15:35 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170714_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170714_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 02:48:33 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 13:16:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/17 || 13:14:54 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170717_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170717_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/18 || 13:15:31 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170718_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170718_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/19 || 13:16:16 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170719_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170719_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/20 || 13:16:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170720_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170720_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/21 || 13:20:57 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170721_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170721_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/22 || 13:21:36 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170722_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170722_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/23 || 13:34:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170723_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170723_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/24 || 13:22:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170724_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170724_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/25 || 13:23:38 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170725_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170725_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/26 || 18:00:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170726_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170726_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/28 || 02:42:36 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170728_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170728_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/29 || 13:37:40 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170729_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170729_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/31 || 13:27:05 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170731_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170731_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/01 || 13:28:30 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170801_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170801_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/02 || 13:29:13 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170802_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170802_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/03 || 13:29:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170803_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170803_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 02:35:58 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 13:31:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/06 || 13:32:06 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170806_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170806_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/07 || 13:32:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170807_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170807_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/08 || 13:33:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170808_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170808_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/11 || 12:47:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170811_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170811_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/12 || 12:43:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170812_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170812_refcal_amp.png Amp] || No calibration for: Ant 9&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/13 || 12:39:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170813_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170813_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/14 || 12:34:19 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170814_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170814_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/15 || 12:31:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170815_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170815_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/16 || 12:27:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170816_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170816_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/17 || 12:23:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170817_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170817_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/18 || 12:19:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170818_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170818_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/19 || 12:15:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170819_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170819_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/21 || 12:07:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170821_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170821_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/22 || 12:03:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170822_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170822_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1805</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1805"/>
		<updated>2017-08-23T02:17:05Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. The routines (on pipeline machine) to retrieve and analyze the data are in the module refcal_anal.py. Start from a time range during which the reference calibration observation occurred (check the [http://ovsa.njit.edu/phasecal/ phasecal results] to see which 1-hr scan had stable phases)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
#example time range of the refcal scan that took place BEFORE the observation&lt;br /&gt;
trange=Time(['2017-04-08T14:00','2017-04-08T15:00'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now read the data from that timerange&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that there are optional arguments that can be given, such as projid='PHASECAL' (the default) and srcid='1229+060', but these are generally not needed.&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters (better to check more bands).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS: From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Observations within this time range will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0. We can further determine a finer selection of time range within this scan that has clean and stable phases if needed, by setting the new timerange in &amp;quot;trange&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=trange,scanidx=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/11 || 12:56:22 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170611_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170611_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 02:33:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 8 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 13:01:19 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/30 || 02:47:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170630_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170630_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/01 || 02:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170701_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170701_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/02 || 03:01:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170702_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170702_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/03 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170703_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170703_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/04 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170704_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170704_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/05 || 02:55:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170705_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170705_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 13:16:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/10 || 13:14:17 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170710_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170710_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/11 || 13:14:18 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170711_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170711_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/12 || 13:14:24 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170712_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170712_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/13 || 13:14:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170713_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170713_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/14 || 13:15:35 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170714_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170714_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 02:48:33 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 13:16:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/17 || 13:14:54 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170717_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170717_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/18 || 13:15:31 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170718_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170718_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/19 || 13:16:16 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170719_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170719_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/20 || 13:16:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170720_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170720_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/21 || 13:20:57 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170721_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170721_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/22 || 13:21:36 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170722_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170722_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/23 || 13:34:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170723_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170723_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/24 || 13:22:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170724_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170724_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/25 || 13:23:38 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170725_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170725_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/26 || 18:00:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170726_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170726_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/28 || 02:42:36 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170728_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170728_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/29 || 13:37:40 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170729_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170729_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/31 || 13:27:05 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170731_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170731_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/01 || 13:28:30 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170801_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170801_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/02 || 13:29:13 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170802_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170802_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/03 || 13:29:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170803_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170803_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 02:35:58 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 13:31:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/06 || 13:32:06 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170806_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170806_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/07 || 13:32:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170807_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170807_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/08 || 13:33:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170808_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170808_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/11 || 12:47:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170811_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170811_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/12 || 12:43:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170812_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170812_refcal_amp.png Amp] || No calibration for: Ant 9&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/13 || 12:39:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170813_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170813_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/14 || 12:34:19 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170814_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170814_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/15 || 12:31:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170815_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170815_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/16 || 12:27:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170816_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170816_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/17 || 12:23:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170817_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170817_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/18 || 12:19:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170818_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170818_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/19 || 12:15:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170819_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170819_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/21 || 12:07:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170821_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170821_refcal_amp.png Amp] ||&lt;br /&gt;
|-| 2017/08/22 || 12:03:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170822_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170822_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1804</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1804"/>
		<updated>2017-08-21T13:20:44Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. The routines (on pipeline machine) to retrieve and analyze the data are in the module refcal_anal.py. Start from a time range during which the reference calibration observation occurred (check the [http://ovsa.njit.edu/phasecal/ phasecal results] to see which 1-hr scan had stable phases)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
#example time range of the refcal scan that took place BEFORE the observation&lt;br /&gt;
trange=Time(['2017-04-08T14:00','2017-04-08T15:00'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now read the data from that timerange&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that there are optional arguments that can be given, such as projid='PHASECAL' (the default) and srcid='1229+060', but these are generally not needed.&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters (better to check more bands).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--BIN'S PREVIOUS TEXTS: From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Observations within this time range will be used for averaging to get the reference phases/amplitudes. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0. We can further determine a finer selection of time range within this scan that has clean and stable phases if needed, by setting the new timerange in &amp;quot;trange&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=trange,scanidx=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/11 || 12:56:22 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170611_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170611_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 02:33:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 8 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/14 || 13:01:19 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170614_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170614_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/30 || 02:47:50 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170630_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170630_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/01 || 02:44:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170701_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170701_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/02 || 03:01:20 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170702_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170702_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/03 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170703_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170703_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/04 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170704_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170704_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/05 || 02:55:19 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170705_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170705_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 13:16:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/10 || 13:14:17 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170710_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170710_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/11 || 13:14:18 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170711_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170711_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/12 || 13:14:24 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170712_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170712_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/13 || 13:14:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170713_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170713_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/14 || 13:15:35 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170714_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170714_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 02:48:33 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/16 || 13:16:48 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170716_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170716_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/17 || 13:14:54 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170717_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170717_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/18 || 13:15:31 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170718_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170718_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/19 || 13:16:16 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170719_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170719_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/20 || 13:16:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170720_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170720_refcal_amp.png Amp] || No calibration for: Ant 10&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/21 || 13:20:57 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170721_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170721_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/22 || 13:21:36 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170722_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170722_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/23 || 13:34:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170723_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170723_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/24 || 13:22:58 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170724_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170724_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/25 || 13:23:38 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170725_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170725_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/26 || 18:00:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170726_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170726_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/28 || 02:42:36 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170728_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170728_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/29 || 13:37:40 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170729_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170729_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/31 || 13:27:05 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170731_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170731_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/01 || 13:28:30 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170801_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170801_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/02 || 13:29:13 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170802_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170802_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/03 || 13:29:59 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170803_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170803_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 02:35:58 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/05 || 13:31:22 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170805_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170805_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/06 || 13:32:06 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170806_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170806_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/07 || 13:32:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170807_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170807_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/08 || 13:33:33 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170808_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170808_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/11 || 12:47:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170811_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170811_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/12 || 12:43:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170812_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170812_refcal_amp.png Amp] || No calibration for: Ant 9&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/13 || 12:39:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170813_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170813_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/14 || 12:34:19 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170814_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170814_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/15 || 12:31:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170815_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170815_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/16 || 12:27:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170816_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170816_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/17 || 12:23:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170817_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170817_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/18 || 12:19:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170818_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170818_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/19 || 12:15:49 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170819_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170819_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/08/21 || 12:07:50 ||  0319+415  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170821_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170821_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1611</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1611"/>
		<updated>2017-07-09T14:58:14Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* List of Analyzed Reference Calibrations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. I have a routine to retrieve and analyze the data, named refcal_anal.py. Start from a time range during which reference calibration observation occurred&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ideally, we would like all reference calibrations to have a designated PROJECTID &amp;quot;REFCAL&amp;quot;. For all data before May 2017, however, all reference calibrations had PROJECTID of &amp;quot;PHASECAL&amp;quot;, but most of them were on 3C273 (1229+020). So I am using:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange, projid='PHASECAL', srcid='1229+020')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amps. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/09 || 02:35:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170709_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170709_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1591</id>
		<title>Reference Gain Calibration</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Reference_Gain_Calibration&amp;diff=1591"/>
		<updated>2017-07-08T13:48:33Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* List of Analyzed Reference Calibrations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Reference complex gain calibration refers to determining the &amp;quot;system&amp;quot; amplitude and phase with high precision as a function of IF band (i.e. integrated over each 500 MHz IF band). A typical reference calibration would cover 34 bands, 2 polarizations, and 13 antennas. I have a routine to retrieve and analyze the data, named refcal_anal.py. Start from a time range during which reference calibration observation occurred&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import refcal_anal as ra&lt;br /&gt;
from util import Time&lt;br /&gt;
trange=Time(['2017-04-08T05:00','2017-04-08T15:30'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ideally, we would like all reference calibrations to have a designated PROJECTID &amp;quot;REFCAL&amp;quot;. For all data before May 2017, however, all reference calibrations had PROJECTID of &amp;quot;PHASECAL&amp;quot;, but most of them were on 3C273 (1229+020). So I am using:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out=ra.rd_refcal(trange, projid='PHASECAL', srcid='1229+020')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To correct for differential feed rotation (for refcal data after 05:00 UT on 2017-Jul-01), you can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out_corr = ra.unrot_refcal(out)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take a look at the phases (averaged over each band): &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
By default it displays only bands 5, 11, 17, 23 and polarization XX. To change the bands and polarization to display, use the &amp;quot;bandplt&amp;quot; and 'pol' parameters.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ra.graph(out_corr, bandplt=[5,13,19,25], pol=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the plot, one can determine which scans are the good ones to use and record the indices of useful scans as &amp;quot;scanidx&amp;quot;. In this example, we were alternating between the low- and high-frequency receivers. The low-frequency receiver observations did not have delays adjusted. So we use scans with indices 1, 3, 5, 7, 9, 11, 13 which are associated with the high-frequency receiver scans. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scanidx=[1, 3, 5, 7, 9, 11, 13]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, we can further determine a finer selection of time range which has clean and stable phases (better to check more bands using ra.graph()). Observations within this time range (after the scanidx selection, if provided) will be used for averaging to get the reference phases/amps. Data will be flagged if the SNR is less than minsnr, which can be supplied. The default minsnr is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timerange=Time(['2017-04-08T05:00','2017-04-08T07:00'])&lt;br /&gt;
&lt;br /&gt;
refcal=ra.refcal_anal(out_corr,timerange=timerange,scanidx=scanidx)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will generate four plots. First and second are phases and amplitudes of the data similar as those produced by ra.graph(), but with the selected time range for averaging highlighted (one can use &amp;quot;bandplt&amp;quot; and &amp;quot;pol&amp;quot; to choose bands and polarization to display as well). The 3rd plot is the averaged phase vs. frequency and the 4th is the averaged amplitude vs. frequency. Those data will be our &amp;quot;analyzed&amp;quot; reference calibration data saved in the returned dictionary (named &amp;quot;refcal&amp;quot; here). The dictionary contains the actual complex values (refcal['refcal']), a flag array with the same shape (refcal['flag']), and some timestamps, e.g., refcal['t_mid'] is the middle of the time range used for averaging. Both refcal['refcal'] and refcal['flag'] have a shape of (15, 2, 34) -- which corresponds to # of antennas, # of polarizations, and # of bands.&lt;br /&gt;
&lt;br /&gt;
If you determine some antenna, band, polarization need to be flagged/unflagged, they have to be manually changed in the returned refcal['flag'] array. In this example, Antenna 12 was not tracking, and the algorithm did not pick up all of them, so we have to do this manually -- setting refcal['flag'][11, :, :]=1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
refcal['flag'][11]=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If satisfied with the results (by looking at the plots), we can go ahead and send them to the SQL database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import cal_header as ch&lt;br /&gt;
ch.refcal2sql(refcal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To retrieve the refcal data back from SQL database based on, e.g., a solar data one wish to calibrate. We can provide a time: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-04-07T19:40')&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The resulted refcal have three keys: 'amp' (15 x 2 x 34 array), 'pha' (15 x 2 x 34 array), and 'timestamp' (in jd). The refcal data found will be the closest one PRIOR to the supplied observation time.&lt;br /&gt;
&lt;br /&gt;
== Updating the Reference Calibrations Table ==&lt;br /&gt;
The table below lists the known good reference calibrations.  To facilitate adding entries to this table, do the following, where the time is after the desired refcal, but before any later refcal:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
t=Time('2017-06-23T19:40')  # retrieves the refcal at 13:07 UT on that day&lt;br /&gt;
refcal=ra.sql2refcal(t)&lt;br /&gt;
ra.graph_results(refcal, savefigs=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will create summary plots of the amplitude and phase, will write the two corresponding *.png files into the /common/webplots/refcal folder, and will print as a text string the lines needed to add an entry. Just cut from the terminal and paste into the wiki editor at the appropriate place to preserve time order.&lt;br /&gt;
&lt;br /&gt;
== List of Analyzed Reference Calibrations ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 800px; height: 200px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Date || Timestamp || Source || Obs Trange || Scan Idx || Avg Trange || Bands || Phase Plot || Amp Plot || Comments&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/02  || 06:36:50 || 3c273 || 04:20~11:00 || All || 05:47~07:26 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170402_refcal_pha.png|Phase]] || [[:File:20170402_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 11:38:17.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/04  || 09:32:50 || 3c273 || 04:43~10:57 || All || 08:46~10:19 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170404_refcal_pha.png|Phase]] || [[:File:20170404_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 16:43:51.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/05  ||06:44:10 || 3c273 || 04:17~10:30 || All || 04:27~09:34 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170405_refcal_pha.png|Phase]] || [[:File:20170405_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/06  || 09:54:50|| 3c273 || 04:14~10:49 || All || 05:39~08:11 || 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 || [[:File:20170406_refcal_pha.png|Phase]] || [[:File:20170406_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/07  || 08:30:51|| 3c273 || 04:00~10:30 || 1, 3, 5, 7, 9, 11, 13, 15, 17 || 07:53~09:10 || 5~34 || [[:File:20170407_refcal_pha.png|Phase]] || [[:File:20170407_refcal_amp.png|Amp]] || Ant 12 was not tracking.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/08  || 06:14:51 || 3c273 || 05:00~10:30 || 1, 3, 5, 7, 9, 11, 13 || 05:00~07:00 || 5~34 || [[:File:20170408_refcal_pha.png|Phase]] || [[:File:20170408_refcal_amp.png|Amp]] || Ant 12 was not tracking. Ant 13 not working. Delay center change at 2017-04-08T03:12:26. Another refcal record is added at 2017-04-09T06:14:45.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/10  || 06:57:10 || 3c273 || 04:30~10:30 || 2, 6, 8 ||  || 5~34 || [[:File:20170410_refcal_pha.png|Phase]] || [[:File:20170410_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 2017-04-08 13:20:39. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/16  || 06:36:48 || 3c273 || 03:00~11:00 ||  || 05:55~07:20 || 5~34 || [[:File:20170416_refcal_pha.png|Phase]] || [[:File:20170416_refcal_amp.png|Amp]] || Ant 12 was not tracking. &lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/17  || 06:41:51 || 3c273 || 03:29~10:07 || All || 05:55~07:29 || 5~34 || [[:File:20170417_refcal_pha.png|Phase]] || [[:File:20170417_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 19:12:58.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/04/26  ||  08:06:52 || 3c273 || 02:50~09:28 || All || 07:21~08:57 || 5~34 || [[:File:20170426_refcal_pha.png|Phase]] || [[:File:20170426_refcal_amp.png|Amp]] || Ant 12 was not tracking. Delay center change at 04:37:28 and 11:51:26.&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/15 || 13:05:48 ||  ||   || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170615_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170615_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/16 || 13:05:48 ||  ||  || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170616_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170616_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/20 || 13:06:26 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170620_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170620_refcal_amp.png Amp] || No calibration for: Ant 1 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/21 || 13:06:38 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170621_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170621_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/22 || 13:06:53 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170622_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170622_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/23 || 13:07:09 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170623_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170623_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 02:25:49 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/24 || 13:07:25 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170624_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170624_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/25 || 13:07:43 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170625_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170625_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/26 || 13:15:47 ||  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170626_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170626_refcal_amp.png Amp] || No calibration for: Ant 10 Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/06/27 || 13:02:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170627_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170627_refcal_amp.png Amp] || No calibration for: Ant 12&lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/06 || 02:47:49 ||  1229+020  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170706_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170706_refcal_amp.png Amp] || &lt;br /&gt;
|-&lt;br /&gt;
| 2017/07/07 || 13:12:49 ||  2253+161  || || 0 ||  || 5~34 || [http://ovsa.njit.edu/refcal/20170707_refcal_pha.png Phase] || [http://ovsa.njit.edu/refcal/20170707_refcal_amp.png Amp] ||&lt;br /&gt;
|-&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=292</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=292"/>
		<updated>2016-09-26T13:13:18Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* Digitization and the Third Frequency-Conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|center|800px|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image2.png|thumb|center|800px|Figure 2: Schematic representation of the second EOVSA downconversion, where the high-frequency IF band on the left, whose frequency scale is marked in black (in GHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The effect of the low-frequency (650-1150 MHz passband) IF filter is shown on the right in black.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
[[File:image3.png|thumb|center|800px|Figure 3: Schematic representation of the third EOVSA downconversion by the digitizer.  The filtered second IF band on the left, whose frequency scale is marked in black (in MHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The 600 MHz-wide digitized bandpass is shown in green, while the narrower 500 MHz target bandpass is shown by the inner dashed lines on the right.]]&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
[[File:image4.png|thumb|center|800px|Figure 4: Schematic representation of the third EOVSA downconversion by the digitizer, when the digitizer clock is at the non-ideal frequency of 800 MHz.  The second IF band is shown in black (in MHz), while the mirrored IF band partially overlaps and extends to the left, marked in blue.  The green block indicates the downconverted, digitized bandpass, whose scale is shown in blue (in MHz).  The part of the band contaminated with overlapping is shown as the darker green hatched area.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image5.png|thumb|center|800px]]&lt;br /&gt;
[[File:image6.png|thumb|center|800px|Figure 5: (top) The normalized 3.450-4.050 GHz band spectrum as sampled by the 800 MHz digitizer clock.  The lower 200 MHz of this 600 MHz band is inverted and overlapped on the lower 200 MHz of the plot.  The swept frequency CW signal starts at about 3590 MHz (aliased to 3710 MHz) at the left edge, moves diagonally downward due to aliasing until about t = 2.5 s, then moves diagonally upward until it leaves the top at about t = 21 s.  It reappears immediately at the center of the band as a new sweep starts, and again begins its downward motion.  The line appears “dotted” due simply to the finite resolution of my computer screen from which this was captured.  (bottom) A zoom in to full frequency resolution of the lower left portion of the spectrogram in (top), in order to see the actual CW signal stepping by 1.49 MHz/step every 60 ms (three time samples).]]&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumb|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=291</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=291"/>
		<updated>2016-09-26T13:09:58Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* Tuning and First Frequency-Conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|center|800px|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image2.png|thumb|center|800px|Figure 2: Schematic representation of the second EOVSA downconversion, where the high-frequency IF band on the left, whose frequency scale is marked in black (in GHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The effect of the low-frequency (650-1150 MHz passband) IF filter is shown on the right in black.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image3.png|thumb|left|300px|Figure 3: Schematic representation of the third EOVSA downconversion by the digitizer.  The filtered second IF band on the left, whose frequency scale is marked in black (in MHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The 600 MHz-wide digitized bandpass is shown in green, while the narrower 500 MHz target bandpass is shown by the inner dashed lines on the right.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
[[File:image4.png|thumb|right|300px|Figure 4: Schematic representation of the third EOVSA downconversion by the digitizer, when the digitizer clock is at the non-ideal frequency of 800 MHz.  The second IF band is shown in black (in MHz), while the mirrored IF band partially overlaps and extends to the left, marked in blue.  The green block indicates the downconverted, digitized bandpass, whose scale is shown in blue (in MHz).  The part of the band contaminated with overlapping is shown as the darker green hatched area.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image5.png|thumb|center|800px]]&lt;br /&gt;
[[File:image6.png|thumb|center|800px|Figure 5: (top) The normalized 3.450-4.050 GHz band spectrum as sampled by the 800 MHz digitizer clock.  The lower 200 MHz of this 600 MHz band is inverted and overlapped on the lower 200 MHz of the plot.  The swept frequency CW signal starts at about 3590 MHz (aliased to 3710 MHz) at the left edge, moves diagonally downward due to aliasing until about t = 2.5 s, then moves diagonally upward until it leaves the top at about t = 21 s.  It reappears immediately at the center of the band as a new sweep starts, and again begins its downward motion.  The line appears “dotted” due simply to the finite resolution of my computer screen from which this was captured.  (bottom) A zoom in to full frequency resolution of the lower left portion of the spectrogram in (top), in order to see the actual CW signal stepping by 1.49 MHz/step every 60 ms (three time samples).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumb|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=290</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=290"/>
		<updated>2016-09-26T13:09:13Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|upright=2.0|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image2.png|thumb|center|800px|Figure 2: Schematic representation of the second EOVSA downconversion, where the high-frequency IF band on the left, whose frequency scale is marked in black (in GHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The effect of the low-frequency (650-1150 MHz passband) IF filter is shown on the right in black.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image3.png|thumb|left|300px|Figure 3: Schematic representation of the third EOVSA downconversion by the digitizer.  The filtered second IF band on the left, whose frequency scale is marked in black (in MHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The 600 MHz-wide digitized bandpass is shown in green, while the narrower 500 MHz target bandpass is shown by the inner dashed lines on the right.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
[[File:image4.png|thumb|right|300px|Figure 4: Schematic representation of the third EOVSA downconversion by the digitizer, when the digitizer clock is at the non-ideal frequency of 800 MHz.  The second IF band is shown in black (in MHz), while the mirrored IF band partially overlaps and extends to the left, marked in blue.  The green block indicates the downconverted, digitized bandpass, whose scale is shown in blue (in MHz).  The part of the band contaminated with overlapping is shown as the darker green hatched area.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image5.png|thumb|center|800px]]&lt;br /&gt;
[[File:image6.png|thumb|center|800px|Figure 5: (top) The normalized 3.450-4.050 GHz band spectrum as sampled by the 800 MHz digitizer clock.  The lower 200 MHz of this 600 MHz band is inverted and overlapped on the lower 200 MHz of the plot.  The swept frequency CW signal starts at about 3590 MHz (aliased to 3710 MHz) at the left edge, moves diagonally downward due to aliasing until about t = 2.5 s, then moves diagonally upward until it leaves the top at about t = 21 s.  It reappears immediately at the center of the band as a new sweep starts, and again begins its downward motion.  The line appears “dotted” due simply to the finite resolution of my computer screen from which this was captured.  (bottom) A zoom in to full frequency resolution of the lower left portion of the spectrogram in (top), in order to see the actual CW signal stepping by 1.49 MHz/step every 60 ms (three time samples).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumb|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=287</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=287"/>
		<updated>2016-09-26T12:54:05Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* Digitization and the Third Frequency-Conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|right|200px|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image2.png|thumb|center|800px|Figure 2: Schematic representation of the second EOVSA downconversion, where the high-frequency IF band on the left, whose frequency scale is marked in black (in GHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The effect of the low-frequency (650-1150 MHz passband) IF filter is shown on the right in black.]]&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image3.png|thumb|left|300px|Figure 3: Schematic representation of the third EOVSA downconversion by the digitizer.  The filtered second IF band on the left, whose frequency scale is marked in black (in MHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The 600 MHz-wide digitized bandpass is shown in green, while the narrower 500 MHz target bandpass is shown by the inner dashed lines on the right.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
[[File:image4.png|thumb|right|300px|Figure 4: Schematic representation of the third EOVSA downconversion by the digitizer, when the digitizer clock is at the non-ideal frequency of 800 MHz.  The second IF band is shown in black (in MHz), while the mirrored IF band partially overlaps and extends to the left, marked in blue.  The green block indicates the downconverted, digitized bandpass, whose scale is shown in blue (in MHz).  The part of the band contaminated with overlapping is shown as the darker green hatched area.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image5.png|thumb|center|800px]]&lt;br /&gt;
[[File:image6.png|thumb|center|800px|Figure 5: (top) The normalized 3.450-4.050 GHz band spectrum as sampled by the 800 MHz digitizer clock.  The lower 200 MHz of this 600 MHz band is inverted and overlapped on the lower 200 MHz of the plot.  The swept frequency CW signal starts at about 3590 MHz (aliased to 3710 MHz) at the left edge, moves diagonally downward due to aliasing until about t = 2.5 s, then moves diagonally upward until it leaves the top at about t = 21 s.  It reappears immediately at the center of the band as a new sweep starts, and again begins its downward motion.  The line appears “dotted” due simply to the finite resolution of my computer screen from which this was captured.  (bottom) A zoom in to full frequency resolution of the lower left portion of the spectrogram in (top), in order to see the actual CW signal stepping by 1.49 MHz/step every 60 ms (three time samples).]]&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumb|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=286</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=286"/>
		<updated>2016-09-26T12:51:24Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* Tuning and First Frequency-Conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|right|200px|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image2.png|thumb|center|800px|Figure 2: Schematic representation of the second EOVSA downconversion, where the high-frequency IF band on the left, whose frequency scale is marked in black (in GHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The effect of the low-frequency (650-1150 MHz passband) IF filter is shown on the right in black.]]&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image3.png|thumb|left|400px|Figure 3: Schematic representation of the third EOVSA downconversion by the digitizer.  The filtered second IF band on the left, whose frequency scale is marked in black (in MHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The 600 MHz-wide digitized bandpass is shown in green, while the narrower 500 MHz target bandpass is shown by the inner dashed lines on the right.]]&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
[[File:image4.png|thumb|right|400px|Figure 4: Schematic representation of the third EOVSA downconversion by the digitizer, when the digitizer clock is at the non-ideal frequency of 800 MHz.  The second IF band is shown in black (in MHz), while the mirrored IF band partially overlaps and extends to the left, marked in blue.  The green block indicates the downconverted, digitized bandpass, whose scale is shown in blue (in MHz).  The part of the band contaminated with overlapping is shown as the darker green hatched area.]]&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image5.png|thumb|center|800px]]&lt;br /&gt;
[[File:image6.png|thumb|center|800px|Figure 5: (top) The normalized 3.450-4.050 GHz band spectrum as sampled by the 800 MHz digitizer clock.  The lower 200 MHz of this 600 MHz band is inverted and overlapped on the lower 200 MHz of the plot.  The swept frequency CW signal starts at about 3590 MHz (aliased to 3710 MHz) at the left edge, moves diagonally downward due to aliasing until about t = 2.5 s, then moves diagonally upward until it leaves the top at about t = 21 s.  It reappears immediately at the center of the band as a new sweep starts, and again begins its downward motion.  The line appears “dotted” due simply to the finite resolution of my computer screen from which this was captured.  (bottom) A zoom in to full frequency resolution of the lower left portion of the spectrogram in (top), in order to see the actual CW signal stepping by 1.49 MHz/step every 60 ms (three time samples).]]&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumb|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=285</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=285"/>
		<updated>2016-09-26T12:50:58Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* Tuning and First Frequency-Conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|right|300px|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image2.png|thumb|center|800px|Figure 2: Schematic representation of the second EOVSA downconversion, where the high-frequency IF band on the left, whose frequency scale is marked in black (in GHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The effect of the low-frequency (650-1150 MHz passband) IF filter is shown on the right in black.]]&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image3.png|thumb|left|400px|Figure 3: Schematic representation of the third EOVSA downconversion by the digitizer.  The filtered second IF band on the left, whose frequency scale is marked in black (in MHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The 600 MHz-wide digitized bandpass is shown in green, while the narrower 500 MHz target bandpass is shown by the inner dashed lines on the right.]]&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
[[File:image4.png|thumb|right|400px|Figure 4: Schematic representation of the third EOVSA downconversion by the digitizer, when the digitizer clock is at the non-ideal frequency of 800 MHz.  The second IF band is shown in black (in MHz), while the mirrored IF band partially overlaps and extends to the left, marked in blue.  The green block indicates the downconverted, digitized bandpass, whose scale is shown in blue (in MHz).  The part of the band contaminated with overlapping is shown as the darker green hatched area.]]&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image5.png|thumb|center|800px]]&lt;br /&gt;
[[File:image6.png|thumb|center|800px|Figure 5: (top) The normalized 3.450-4.050 GHz band spectrum as sampled by the 800 MHz digitizer clock.  The lower 200 MHz of this 600 MHz band is inverted and overlapped on the lower 200 MHz of the plot.  The swept frequency CW signal starts at about 3590 MHz (aliased to 3710 MHz) at the left edge, moves diagonally downward due to aliasing until about t = 2.5 s, then moves diagonally upward until it leaves the top at about t = 21 s.  It reappears immediately at the center of the band as a new sweep starts, and again begins its downward motion.  The line appears “dotted” due simply to the finite resolution of my computer screen from which this was captured.  (bottom) A zoom in to full frequency resolution of the lower left portion of the spectrogram in (top), in order to see the actual CW signal stepping by 1.49 MHz/step every 60 ms (three time samples).]]&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumb|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=282</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=282"/>
		<updated>2016-09-25T19:17:06Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* Digitization and the Third Frequency-Conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|right|400px|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image2.png|thumb|center|800px|Figure 2: Schematic representation of the second EOVSA downconversion, where the high-frequency IF band on the left, whose frequency scale is marked in black (in GHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The effect of the low-frequency (650-1150 MHz passband) IF filter is shown on the right in black.]]&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image3.png|thumb|left|400px|Figure 3: Schematic representation of the third EOVSA downconversion by the digitizer.  The filtered second IF band on the left, whose frequency scale is marked in black (in MHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The 600 MHz-wide digitized bandpass is shown in green, while the narrower 500 MHz target bandpass is shown by the inner dashed lines on the right.]]&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
[[File:image4.png|thumb|right|400px|Figure 4: Schematic representation of the third EOVSA downconversion by the digitizer, when the digitizer clock is at the non-ideal frequency of 800 MHz.  The second IF band is shown in black (in MHz), while the mirrored IF band partially overlaps and extends to the left, marked in blue.  The green block indicates the downconverted, digitized bandpass, whose scale is shown in blue (in MHz).  The part of the band contaminated with overlapping is shown as the darker green hatched area.]]&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image5.png|thumb|center|800px]]&lt;br /&gt;
[[File:image6.png|thumb|center|800px|Figure 5: (top) The normalized 3.450-4.050 GHz band spectrum as sampled by the 800 MHz digitizer clock.  The lower 200 MHz of this 600 MHz band is inverted and overlapped on the lower 200 MHz of the plot.  The swept frequency CW signal starts at about 3590 MHz (aliased to 3710 MHz) at the left edge, moves diagonally downward due to aliasing until about t = 2.5 s, then moves diagonally upward until it leaves the top at about t = 21 s.  It reappears immediately at the center of the band as a new sweep starts, and again begins its downward motion.  The line appears “dotted” due simply to the finite resolution of my computer screen from which this was captured.  (bottom) A zoom in to full frequency resolution of the lower left portion of the spectrogram in (top), in order to see the actual CW signal stepping by 1.49 MHz/step every 60 ms (three time samples).]]&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumb|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=281</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=281"/>
		<updated>2016-09-25T19:16:30Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* Digitization and the Third Frequency-Conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|right|400px|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image2.png|thumb|center|800px|Figure 2: Schematic representation of the second EOVSA downconversion, where the high-frequency IF band on the left, whose frequency scale is marked in black (in GHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The effect of the low-frequency (650-1150 MHz passband) IF filter is shown on the right in black.]]&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image3.png|thumb|left|400px|Figure 3: Schematic representation of the third EOVSA downconversion by the digitizer.  The filtered second IF band on the left, whose frequency scale is marked in black (in MHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The 600 MHz-wide digitized bandpass is shown in green, while the narrower 500 MHz target bandpass is shown by the inner dashed lines on the right.]]&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
[[File:image4.png|thumb|right|400px|Figure 4: Schematic representation of the third EOVSA downconversion by the digitizer, when the digitizer clock is at the non-ideal frequency of 800 MHz.  The second IF band is shown in black (in MHz), while the mirrored IF band partially overlaps and extends to the left, marked in blue.  The green block indicates the downconverted, digitized bandpass, whose scale is shown in blue (in MHz).  The part of the band contaminated with overlapping is shown as the darker green hatched area.]]&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image5.png|thumb|center|800px]]&lt;br /&gt;
[[File:image6.png|thumb|center|800px|Figure 5: (top) The normalized 3.450-4.050 GHz band spectrum as sampled by the 800 MHz digitizer clock.  The lower 200 MHz of this 600 MHz band is inverted and overlapped on the lower 200 MHz of the plot.  The swept frequency CW signal starts at about 3590 MHz (aliased to 3710 MHz) at the left edge, moves diagonally downward due to aliasing until about t = 2.5 s, then moves diagonally upward until it leaves the top at about t = 21 s.  It reappears immediately at the center of the band as a new sweep starts, and again begins its downward motion.  The line appears “dotted” due simply to the finite resolution of my computer screen from which this was captured.  (bottom) A zoom in to full frequency resolution of the lower left portion of the spectrogram in (top), in order to see the actual CW signal stepping by 1.49 MHz/step every 60 ms (three time samples).]]&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumb|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=280</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=280"/>
		<updated>2016-09-25T19:15:21Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* Second Frequency-Conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|right|400px|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image2.png|thumb|center|800px|Figure 2: Schematic representation of the second EOVSA downconversion, where the high-frequency IF band on the left, whose frequency scale is marked in black (in GHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The effect of the low-frequency (650-1150 MHz passband) IF filter is shown on the right in black.]]&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image3.png|thumb|left|400px|Figure 3: Schematic representation of the third EOVSA downconversion by the digitizer.  The filtered second IF band on the left, whose frequency scale is marked in black (in MHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The 600 MHz-wide digitized bandpass is shown in green, while the narrower 500 MHz target bandpass is shown by the inner dashed lines on the right.]]&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image4.png|thumb|right|400px|Figure 4: Schematic representation of the third EOVSA downconversion by the digitizer, when the digitizer clock is at the non-ideal frequency of 800 MHz.  The second IF band is shown in black (in MHz), while the mirrored IF band partially overlaps and extends to the left, marked in blue.  The green block indicates the downconverted, digitized bandpass, whose scale is shown in blue (in MHz).  The part of the band contaminated with overlapping is shown as the darker green hatched area.]]&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image5.png|thumb|center|800px]]&lt;br /&gt;
[[File:image6.png|thumb|center|800px|Figure 5: (top) The normalized 3.450-4.050 GHz band spectrum as sampled by the 800 MHz digitizer clock.  The lower 200 MHz of this 600 MHz band is inverted and overlapped on the lower 200 MHz of the plot.  The swept frequency CW signal starts at about 3590 MHz (aliased to 3710 MHz) at the left edge, moves diagonally downward due to aliasing until about t = 2.5 s, then moves diagonally upward until it leaves the top at about t = 21 s.  It reappears immediately at the center of the band as a new sweep starts, and again begins its downward motion.  The line appears “dotted” due simply to the finite resolution of my computer screen from which this was captured.  (bottom) A zoom in to full frequency resolution of the lower left portion of the spectrogram in (top), in order to see the actual CW signal stepping by 1.49 MHz/step every 60 ms (three time samples).]]&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumb|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=279</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=279"/>
		<updated>2016-09-25T19:10:31Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* Linearity and RFI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|right|400px|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
[[File:image2.png|thumb|center|800px|Figure 2: Schematic representation of the second EOVSA downconversion, where the high-frequency IF band on the left, whose frequency scale is marked in black (in GHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The effect of the low-frequency (650-1150 MHz passband) IF filter is shown on the right in black.]]&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image3.png|thumb|left|400px|Figure 3: Schematic representation of the third EOVSA downconversion by the digitizer.  The filtered second IF band on the left, whose frequency scale is marked in black (in MHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The 600 MHz-wide digitized bandpass is shown in green, while the narrower 500 MHz target bandpass is shown by the inner dashed lines on the right.]]&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image4.png|thumb|right|400px|Figure 4: Schematic representation of the third EOVSA downconversion by the digitizer, when the digitizer clock is at the non-ideal frequency of 800 MHz.  The second IF band is shown in black (in MHz), while the mirrored IF band partially overlaps and extends to the left, marked in blue.  The green block indicates the downconverted, digitized bandpass, whose scale is shown in blue (in MHz).  The part of the band contaminated with overlapping is shown as the darker green hatched area.]]&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image5.png|thumb|center|800px]]&lt;br /&gt;
[[File:image6.png|thumb|center|800px|Figure 5: (top) The normalized 3.450-4.050 GHz band spectrum as sampled by the 800 MHz digitizer clock.  The lower 200 MHz of this 600 MHz band is inverted and overlapped on the lower 200 MHz of the plot.  The swept frequency CW signal starts at about 3590 MHz (aliased to 3710 MHz) at the left edge, moves diagonally downward due to aliasing until about t = 2.5 s, then moves diagonally upward until it leaves the top at about t = 21 s.  It reappears immediately at the center of the band as a new sweep starts, and again begins its downward motion.  The line appears “dotted” due simply to the finite resolution of my computer screen from which this was captured.  (bottom) A zoom in to full frequency resolution of the lower left portion of the spectrogram in (top), in order to see the actual CW signal stepping by 1.49 MHz/step every 60 ms (three time samples).]]&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumb|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=278</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=278"/>
		<updated>2016-09-25T19:09:35Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* Digitization and the Third Frequency-Conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|right|400px|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
[[File:image2.png|thumb|center|800px|Figure 2: Schematic representation of the second EOVSA downconversion, where the high-frequency IF band on the left, whose frequency scale is marked in black (in GHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The effect of the low-frequency (650-1150 MHz passband) IF filter is shown on the right in black.]]&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image3.png|thumb|left|400px|Figure 3: Schematic representation of the third EOVSA downconversion by the digitizer.  The filtered second IF band on the left, whose frequency scale is marked in black (in MHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The 600 MHz-wide digitized bandpass is shown in green, while the narrower 500 MHz target bandpass is shown by the inner dashed lines on the right.]]&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image4.png|thumb|right|400px|Figure 4: Schematic representation of the third EOVSA downconversion by the digitizer, when the digitizer clock is at the non-ideal frequency of 800 MHz.  The second IF band is shown in black (in MHz), while the mirrored IF band partially overlaps and extends to the left, marked in blue.  The green block indicates the downconverted, digitized bandpass, whose scale is shown in blue (in MHz).  The part of the band contaminated with overlapping is shown as the darker green hatched area.]]&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image5.png|thumb|center|800px]]&lt;br /&gt;
[[File:image6.png|thumb|center|800px|Figure 5: (top) The normalized 3.450-4.050 GHz band spectrum as sampled by the 800 MHz digitizer clock.  The lower 200 MHz of this 600 MHz band is inverted and overlapped on the lower 200 MHz of the plot.  The swept frequency CW signal starts at about 3590 MHz (aliased to 3710 MHz) at the left edge, moves diagonally downward due to aliasing until about t = 2.5 s, then moves diagonally upward until it leaves the top at about t = 21 s.  It reappears immediately at the center of the band as a new sweep starts, and again begins its downward motion.  The line appears “dotted” due simply to the finite resolution of my computer screen from which this was captured.  (bottom) A zoom in to full frequency resolution of the lower left portion of the spectrogram in (top), in order to see the actual CW signal stepping by 1.49 MHz/step every 60 ms (three time samples).]]&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumb|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=277</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=277"/>
		<updated>2016-09-25T19:02:54Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* Digitization and the Third Frequency-Conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|right|400px|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
[[File:image2.png|thumb|center|800px|Figure 2: Schematic representation of the second EOVSA downconversion, where the high-frequency IF band on the left, whose frequency scale is marked in black (in GHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The effect of the low-frequency (650-1150 MHz passband) IF filter is shown on the right in black.]]&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
[[File:image3.png|thumb|center|800px|Figure 3: Schematic representation of the third EOVSA downconversion by the digitizer.  The filtered second IF band on the left, whose frequency scale is marked in black (in MHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The 600 MHz-wide digitized bandpass is shown in green, while the narrower 500 MHz target bandpass is shown by the inner dashed lines on the right.]]&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
[[File:image4.png|thumb|center|800px|Figure 4: Schematic representation of the third EOVSA downconversion by the digitizer, when the digitizer clock is at the non-ideal frequency of 800 MHz.  The second IF band is shown in black (in MHz), while the mirrored IF band partially overlaps and extends to the left, marked in blue.  The green block indicates the downconverted, digitized bandpass, whose scale is shown in blue (in MHz).  The part of the band contaminated with overlapping is shown as the darker green hatched area.]]&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
[[File:image5.png|thumb|center|800px]]&lt;br /&gt;
[[File:image6.png|thumb|center|800px|Figure 5: (top) The normalized 3.450-4.050 GHz band spectrum as sampled by the 800 MHz digitizer clock.  The lower 200 MHz of this 600 MHz band is inverted and overlapped on the lower 200 MHz of the plot.  The swept frequency CW signal starts at about 3590 MHz (aliased to 3710 MHz) at the left edge, moves diagonally downward due to aliasing until about t = 2.5 s, then moves diagonally upward until it leaves the top at about t = 21 s.  It reappears immediately at the center of the band as a new sweep starts, and again begins its downward motion.  The line appears “dotted” due simply to the finite resolution of my computer screen from which this was captured.  (bottom) A zoom in to full frequency resolution of the lower left portion of the spectrogram in (top), in order to see the actual CW signal stepping by 1.49 MHz/step every 60 ms (three time samples).]]&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumb|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=276</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=276"/>
		<updated>2016-09-25T18:56:28Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* Digitization and the Third Frequency-Conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|right|400px|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
[[File:image2.png|thumb|center|800px|Figure 2: Schematic representation of the second EOVSA downconversion, where the high-frequency IF band on the left, whose frequency scale is marked in black (in GHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The effect of the low-frequency (650-1150 MHz passband) IF filter is shown on the right in black.]]&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image3.png|thumb|center|800px|Figure 3: Schematic representation of the third EOVSA downconversion by the digitizer.  The filtered second IF band on the left, whose frequency scale is marked in black (in MHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The 600 MHz-wide digitized bandpass is shown in green, while the narrower 500 MHz target bandpass is shown by the inner dashed lines on the right.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
[[File:image5.png|thumb|center|800px]]&lt;br /&gt;
[[File:image6.png|thumb|center|800px|Figure 5: (top) The normalized 3.450-4.050 GHz band spectrum as sampled by the 800 MHz digitizer clock.  The lower 200 MHz of this 600 MHz band is inverted and overlapped on the lower 200 MHz of the plot.  The swept frequency CW signal starts at about 3590 MHz (aliased to 3710 MHz) at the left edge, moves diagonally downward due to aliasing until about t = 2.5 s, then moves diagonally upward until it leaves the top at about t = 21 s.  It reappears immediately at the center of the band as a new sweep starts, and again begins its downward motion.  The line appears “dotted” due simply to the finite resolution of my computer screen from which this was captured.  (bottom) A zoom in to full frequency resolution of the lower left portion of the spectrogram in (top), in order to see the actual CW signal stepping by 1.49 MHz/step every 60 ms (three time samples).]]&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumb|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=275</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=275"/>
		<updated>2016-09-25T18:54:37Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* Second Frequency-Conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|right|400px|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
[[File:image2.png|thumb|center|800px|Figure 2: Schematic representation of the second EOVSA downconversion, where the high-frequency IF band on the left, whose frequency scale is marked in black (in GHz), is mirrored and converted to the IF band on the right, marked in blue (in MHz).  The effect of the low-frequency (650-1150 MHz passband) IF filter is shown on the right in black.]]&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
[[File:image5.png|thumb|center|800px]]&lt;br /&gt;
[[File:image6.png|thumb|center|800px|Figure 5: (top) The normalized 3.450-4.050 GHz band spectrum as sampled by the 800 MHz digitizer clock.  The lower 200 MHz of this 600 MHz band is inverted and overlapped on the lower 200 MHz of the plot.  The swept frequency CW signal starts at about 3590 MHz (aliased to 3710 MHz) at the left edge, moves diagonally downward due to aliasing until about t = 2.5 s, then moves diagonally upward until it leaves the top at about t = 21 s.  It reappears immediately at the center of the band as a new sweep starts, and again begins its downward motion.  The line appears “dotted” due simply to the finite resolution of my computer screen from which this was captured.  (bottom) A zoom in to full frequency resolution of the lower left portion of the spectrogram in (top), in order to see the actual CW signal stepping by 1.49 MHz/step every 60 ms (three time samples).]]&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumb|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=File:Image4.png&amp;diff=274</id>
		<title>File:Image4.png</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=File:Image4.png&amp;diff=274"/>
		<updated>2016-09-25T18:53:08Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=File:Image3.png&amp;diff=273</id>
		<title>File:Image3.png</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=File:Image3.png&amp;diff=273"/>
		<updated>2016-09-25T18:52:54Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=File:Image2.png&amp;diff=272</id>
		<title>File:Image2.png</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=File:Image2.png&amp;diff=272"/>
		<updated>2016-09-25T18:52:35Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=271</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=271"/>
		<updated>2016-09-25T18:52:18Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* Digitization and the Third Frequency-Conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|right|400px|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
[[File:image5.png|thumb|center|800px]]&lt;br /&gt;
[[File:image6.png|thumb|center|800px|Figure 5: (top) The normalized 3.450-4.050 GHz band spectrum as sampled by the 800 MHz digitizer clock.  The lower 200 MHz of this 600 MHz band is inverted and overlapped on the lower 200 MHz of the plot.  The swept frequency CW signal starts at about 3590 MHz (aliased to 3710 MHz) at the left edge, moves diagonally downward due to aliasing until about t = 2.5 s, then moves diagonally upward until it leaves the top at about t = 21 s.  It reappears immediately at the center of the band as a new sweep starts, and again begins its downward motion.  The line appears “dotted” due simply to the finite resolution of my computer screen from which this was captured.  (bottom) A zoom in to full frequency resolution of the lower left portion of the spectrogram in (top), in order to see the actual CW signal stepping by 1.49 MHz/step every 60 ms (three time samples).]]&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumb|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=File:Image6.png&amp;diff=270</id>
		<title>File:Image6.png</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=File:Image6.png&amp;diff=270"/>
		<updated>2016-09-25T18:50:16Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=269</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=269"/>
		<updated>2016-09-25T18:50:02Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* Digitization and the Third Frequency-Conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|right|400px|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
[[File:image5.png|thumb|center|800px]]&lt;br /&gt;
[[File:image6.png|thumb|center|800px]]&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumb|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=268</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=268"/>
		<updated>2016-09-25T18:45:10Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* Tuning and First Frequency-Conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|right|400px|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumb|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=File:Image5.png&amp;diff=267</id>
		<title>File:Image5.png</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=File:Image5.png&amp;diff=267"/>
		<updated>2016-09-25T18:43:56Z</updated>

		<summary type="html">&lt;p&gt;Ychai: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=266</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=266"/>
		<updated>2016-09-25T18:43:08Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* Linearity and RFI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|right|500px|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumb|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=265</id>
		<title>Downconversion and Frequency Tuning</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=Downconversion_and_Frequency_Tuning&amp;diff=265"/>
		<updated>2016-09-25T18:42:14Z</updated>

		<summary type="html">&lt;p&gt;Ychai: /* Linearity and RFI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
EOVSA has three consecutive frequency-conversion operations required to tune and isolate a clean 500 MHz IF band from the 1-18 GHz RF band.  The first is a tunable upconversion to a 20-20.5 MHz band, which is filtered but with a rather gentle roll-off due to the high center frequency.  The second is a fixed-frequency downconversion of the 20-20.5 MHz band centered on a sharply filtered IF bandpass from 600-1200 MHz.  The third downconversion is that due to the digitizer, whose nominal clock is 1200 MHz, although for practical reasons during the prototype phase we are operating the digitizer at a sub-optimal 800 MHz clock speed.&lt;br /&gt;
This document describes these frequency conversions and the resultant ordering of frequency channels in the digitized data, both for the production unit with a 1200 MHz digitizer clock, and for this interim period with an 800 MHz clock.  We demonstrate that the system corresponds to our expectations by introducing a frequency-swept CW signal into the IF path and observing its effects.  We also discuss the linearity of the system, which probably belongs in a separate memo.&lt;br /&gt;
&lt;br /&gt;
== Tuning and First Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
[[File:image1.png|thumb|right|500px|Figure1:Schematic representation of frequency tuning for EOVSA, showing tuning to four of the 34 RF bands.  From top to bottom they are: 1.5-2 GHz, 3.5-4 GHz, 7.5-8 GHz, and 17.5-18 GHz.]]&lt;br /&gt;
&lt;br /&gt;
Figure 1 shows the basic tuning operation for four different IF bands.  Each tuning inverts the 1-18 GHz RF by mirroring it around the LO frequency.  To tune to each of the 500 MHz between 1-18 GHz, 34 tunings are required ranging from 21.5 GHz to 38 GHz.  The RF frequency at the low end of the 500 MHz band is related by the LO frequency by &amp;lt;math&amp;gt;\nu_{RF}=\nu_{LO}-&amp;lt;/math&amp;gt;20.5GHz.  In the figure, the RF frequency scale is shown in black, and the IF frequency scale (after the conversion) is shown in blue.  As the LO frequency changes, the mirrored RF band slides to the right with twice the step of the LO frequency change, while the fixed 20-20.5 GHz filter slides to the right with the same step as the LO.  Thus, the mirrored RF slides past the filter window at the same rate as the LO frequency change.  Note that the RF frequencies are inverted due to the mirroring.&lt;br /&gt;
&lt;br /&gt;
== Second Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
In order to digitize the signal, the high-frequency IF must be converted to a lower frequency.  To accomplish this, the EOVSA system mixes the fixed 20-20.5 GHz signal with a fixed 21.15 GHz second LO as shown in Figure 2, whose format is similar to that of Figure 1.  The rather gentle roll-off of the 20-20.5 GHz filter is indicated by the sloping sides of the bandpass.  Again, the original frequency scale is shown in black, and the mirrored copy of the bandpass is shown in blue, labeled with its lower IF frequency scale in MHz, also in blue.  This IF bandpass shape is then filtered with a sharply defined IF filter from 600-1200 MHz (outer dashed lines marked as Digitized Bandpass).  This second mirroring of the band causes the previously inverted RF frequencies to again have a direct ordering.&lt;br /&gt;
&lt;br /&gt;
== Digitization and the Third Frequency-Conversion ==&lt;br /&gt;
&lt;br /&gt;
This second IF band is now at a sufficiently low frequency for digitization.  For the final production system, EOVSA’s correlator will digitize the signal using a 1200 MHz clock.  This action will mirror the IF a third time, as shown in Figure 3.  The clock frequency is 50 MHz above the desired band, and the passband of the filter is 100 MHz narrower than the 600 MHz nyquist bandwidth of the clock, so that the skirt of the filter roll-off, which is aliased back into the passband, is reduced by 63 dB below the desired signal.  The 600 MHz digitized passband is shown in green, but the target passband is the narrower 500 MHz band indicated between 50 and 550 MHz.  Because the correlator F-engine produces 4096 channels over 600 MHz, the actual desired data will be found in channels 341-3755.  For the production system, then, this third mirroring of the RF will result in an inverted order of frequency channels, but with the fortunate advantage that this inversion never changes--it does not depend on the RF band to which the system has been tuned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it has been necessary to temporarily restrict the digitizer clock during the prototype phase to 800 MHz (an FPGA clock speed of 200 MHz), which provides a nyquist bandwidths of only 400 MHz.  Figure 4 shows the impact of this non-ideal clock speed on the digitized band.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clearly the resulting data are compromised, because the lower half of the 400 MHz bandwidth is contaminated due to the 200 MHz range from 600-800 MHz being folded onto the 800-1000 MHz band.  Only the 1000-1200 MHz range of the filtered second IF will be clean, and will be downconverted to the 200-400 MHz IF range.  Note also that the 800-1200 MHz range of the filtered second IF will have direct RF ordering, while the mirrored 600-800 MHz range will have inverted ordering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check that we actually see the above relationships, we have taken data with a frequency-swept CW signal injected into the “noise in” port of the X (HPol) channel of Antenna 1.  The signal is swept in order to 401 frequency points between 600-1200 MHz.  From Figure 4, we can expect the signal to sweep from the center of the band to the left edge (lower channel number) when tuning from 600-800 MHz, and then reverse itself and march across the channels in increasing order until it reaches the highest channel when tuned to 1200 MHz.  This is exactly what is seen in Figure 5, which is a spectrogram of Band 4 that has been “normalized” to its median spectrum to take out f-dependent power variations.&lt;br /&gt;
&lt;br /&gt;
== Linearity and RFI ==&lt;br /&gt;
&lt;br /&gt;
All is not perfect in this spectrogram, however.  In Figure 5(a) it is possible to see a faint trace of an alias of the CW signal, which may just be some 2nd harmonic from the signal generator.  This should be checked by looking at the signal generator output. If not present, then the 2nd harmonic may be generated in the downconverter.&lt;br /&gt;
&lt;br /&gt;
Even more problematic is the RFI seen clearly in the center of the band, centered around 3850 MHz.  This is the 2nd harmonic of the strong 1925 MHz RFI.  Figure 6 shows the 100 MHz around the band center, for the actual (not normalized) spectrum.  However, this spectrogram was taken with the optical fiber well above its linear range (due to excess gain in the frontend).  This has been corrected by inserting a total of 39 dB in the FEM, which puts the detector voltage at the nominal value of 0.1 V, and the result is shown in Figure 7. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image7.png|thumb|center|800px|Figure 6: Direct (not normalized) spectrum for 140 MHz around the strongest RFI in Figure 5(a).  The details of the RFI match the strong Sprint PCS RFI near 1.925 GHz, so that it can confidently be identified as second-harmonic distortion from that source.   This was taken with the optical link well out of its linear range.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is an important lesson.  It is absolutely critical to operate the optical links in their linear range.  Although we knew this, it is nice to see such a clear demonstration of it.  The harmonic distortion is still not entirely eliminated, but we can do tests to see where the best detector voltage settings are for linear operation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:image8.png|thumba|center|800px|Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.]]&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
	<entry>
		<id>http://ovsa.njit.edu//wiki/index.php?title=File:Image8.png&amp;diff=264</id>
		<title>File:Image8.png</title>
		<link rel="alternate" type="text/html" href="http://ovsa.njit.edu//wiki/index.php?title=File:Image8.png&amp;diff=264"/>
		<updated>2016-09-25T18:40:15Z</updated>

		<summary type="html">&lt;p&gt;Ychai: Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Figure 7: Direct (not normalized) spectrum for roughly the same region as in Figure 6, but now with the optical link supposedly centered on its linear range.  The second-harmonic distortion is now much reduced, but certainly not eliminated.  We can do experiments to determine if there is a better set of attenuations to maximize linearity.  Note that some non-linearity may arise in other components.&lt;/div&gt;</summary>
		<author><name>Ychai</name></author>
	</entry>
</feed>