https://casaguides.nrao.edu/index.php?title=Modifying_SOURCE_and_FIELD_tables&feed=atom&action=historyModifying SOURCE and FIELD tables - Revision history2024-03-29T15:42:49ZRevision history for this page on the wikiMediaWiki 1.38.6https://casaguides.nrao.edu/index.php?title=Modifying_SOURCE_and_FIELD_tables&diff=15005&oldid=prevMkrauss at 20:23, 29 July 20132013-07-29T20:23:52Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 16:23, 29 July 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l33">Line 33:</td>
<td colspan="2" class="diff-lineno">Line 33:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></source></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></source></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>That's it! Now you can <del style="font-weight: bold; text-decoration: none;">return to </del>the [http://casaguides.nrao.edu/index.php?title=EVLA_3-bit_Tutorial_G192<del style="font-weight: bold; text-decoration: none;">#Setting_the_flux_density_scale </del>G192 3-bit tutorial <del style="font-weight: bold; text-decoration: none;">to set the flux density scale</del>].</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>That's it! Now you can <ins style="font-weight: bold; text-decoration: none;">proceed with </ins>the [http://casaguides.nrao.edu/index.php?title=EVLA_3-bit_Tutorial_G192 G192 3-bit tutorial].</div></td></tr>
</table>Mkrausshttps://casaguides.nrao.edu/index.php?title=Modifying_SOURCE_and_FIELD_tables&diff=15002&oldid=prevMkrauss: Mkrauss moved page Modifying SOURCE FIELD info to Modifying SOURCE and FIELD tables2013-07-29T20:22:12Z<p>Mkrauss moved page <a href="/index.php?title=Modifying_SOURCE_FIELD_info" class="mw-redirect" title="Modifying SOURCE FIELD info">Modifying SOURCE FIELD info</a> to <a href="/index.php?title=Modifying_SOURCE_and_FIELD_tables" title="Modifying SOURCE and FIELD tables">Modifying SOURCE and FIELD tables</a></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 16:22, 29 July 2013</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Mkrausshttps://casaguides.nrao.edu/index.php?title=Modifying_SOURCE_and_FIELD_tables&diff=15001&oldid=prevMkrauss: Created page with "Currenly, {{setjy}} will only recognize particular strings as being associated with known calibration sources. Unfortunately, when the [http://casaguides.nrao.edu/index.php?t..."2013-07-29T20:21:07Z<p>Created page with "Currenly, {{setjy}} will only recognize particular strings as being associated with known calibration sources. Unfortunately, when the [http://casaguides.nrao.edu/index.php?t..."</p>
<p><b>New page</b></p><div>Currenly, {{setjy}} will only recognize particular strings as being associated with known calibration sources. Unfortunately, when the [http://casaguides.nrao.edu/index.php?title=EVLA_3-bit_Tutorial_G192 G192 observation] was set up, the name given to the flux calibrator 3C147 is not recognized by {{setjy}}, so we need to change it in the SOURCE and FIELD tables.<br />
<br />
We will rename the flux calibrator to be "3C147" with a capital rather than a lower-case "c". We can do this with a few [http://casa.nrao.edu/docs/CasaRef/CasaRef.html CASA Toolkit] commands and some Python:<br />
<source lang="python"><br />
# In CASA<br />
tb.open('G192_flagged_6s.ms/SOURCE', nomodify=False)<br />
srcNames = tb.getcol('NAME')<br />
</source><br />
<br />
You can look at the resulting array by typing "srcNames" -- the first 64 entries are '3c147-J0542+49', which we want to modify:<br />
<source lang="python"><br />
# In CASA<br />
for element in range (0,64):<br />
srcNames[element] = '3C147'<br />
<br />
</source><br />
<br />
Now, put the modified values back into the MS table:<br />
<source lang="python"><br />
# In CASA<br />
tb.putcol('NAME', srcNames)<br />
tb.close()<br />
</source><br />
<br />
There's one more place where we need to make this modification -- the "FIELD" table:<br />
<source lang="python"><br />
# In CASA<br />
tb.open('G192_flagged_6s.ms/FIELD', nomodify=False)<br />
fldNames = tb.getcol('NAME')<br />
fldNames[0] = '3C147'<br />
tb.putcol('NAME', fldNames)<br />
tb.close()<br />
</source><br />
<br />
That's it! Now you can return to the [http://casaguides.nrao.edu/index.php?title=EVLA_3-bit_Tutorial_G192#Setting_the_flux_density_scale G192 3-bit tutorial to set the flux density scale].</div>Mkrauss