/home/astro-util/astridcats/.
Auto... scripts select sources based on two criteria:
AutoProcedure software module of Sparrow's gbt / api / turtle sub-system, effectively adding a new “gold” parameter to all three Auto* scripts, since they all inherit from this module. PointingCatalog software module will be modified to read catalogs files that either have the gold standard "GOLD" column or not, and to provide for the selection of calibration sources from either type of catalog. If the gold_standard parameter is specified by the user for any of AutoPeak, AutoFocus, or AutoPeakFocus scripts in Astrid, then PointingCatalog CalFind() method will return those calibration sources which first have the “gold standard” column value of “P” that also otherwise satisfy the existing selection criteria for flux and proximity.
gbt/api/turtle/src/proc, modify the following modules:
| Module | Method / Data member | Notes |
|---|---|---|
| AutoProcedure.py | DoesSourceSelectionAllowScanToContinue() | Add "gold" parameter value to method invocation |
Execute() | Modify calls to SelectCalibrator() and DescribeCalibrator() methods to pass along "gold" parameter value | |
__init__() | Add "gold" parameter with default value of False |
gbt/api/turtle/src/user, modify the following modules:
| Module | Method / Data member | Notes |
|---|---|---|
| PointingCatalog.py | GOOD_HEAD_GOLD | NEW - Constant set to ['GOLD'] |
CheckKeywordValues() | Check for header that matches either pre-4.1 (without GOLD) or 4.1 (with GOLD column) | |
GenerateDictionary() | Add gold standard field to each calibrator source dictionary entry. If no GOLD column, add empty value | |
SelectCalibrator() | Pass user's "gold" parameter value specification to the selection method, CalFind() | |
CalFind() | Add the "gold" parameter as the first selection criterion to this algorithm | |
IsSource() | Add the "gold" parameter to this method determination of 'source-hood' | |
GetGoldStandard(name) | NEW - Returns "gold" column value for named calibrator | |
DescribeCalibrator(...) | Add description of "gold" status to the description string for the named calibrator |
scripts directory, which is a copy of the catalog default.cat, but with the new "gold" column added and purely notional indicators added for each entry. This new catalog is named defaultWithGoldStandard.cat.
Unit tests that will be modified and supplemented to test this MR's functionality:
| Location | Unit Test | Notes |
|---|---|---|
gbt/api/turtle/test/proc | AutoObsTest.py | Add 18 unit tests corresponding to table in Section 6.1 |
gbt/api/turtle/test/user | PointingCatalogTest.py | Add unit tests to test reading gold standard and non-gold standard sources from catalogs with and without gold standard sources |
| CatalogTest.py | Modify to add name of new catalog in scripts directory |
system.conf (in /home/gbt/etc/config or /home/sim/etc/config/) is where the name of the pointing catalog file is specified. Currently, for release 7.7 of the sparrow software set, the entry in this file reads:
PointingCatalog := "/home/astro-util/astridcats/pointing.cat"
Although it's most likely that the new version of the pointing catalog will keep the same name, and therefore not require a change to the release version of this file, changing this entry will facilitate testing between two different versions of the pointing catalog file co-located in the same folder, before overwriting the pre-4.1 version with the 4.1 version.
| Obs script | gold standard column | no gold standard column |
|---|---|---|
| AutoPeak(gold=True) | Consider only calibrator sources with value of "P" | Consider all calibrator sources |
| AutoPeak(gold=False) | Consider all calibrator sources | Consider all calibrator sources |
| AutoPeak() | Consider all calibrator sources | Consider all calibrator sources |
| AutoFocus(gold=True) | Consider only calibrator sources with value of "P" | Consider all calibrator sources |
| AutoFocus(gold=False) | Consider all calibrator sources | Consider all calibrator sources |
| AutoFocus() | Consider all calibrator sources | Consider all calibrator sources |
| AutoPeakFocus(gold=True) | Consider only calibrator sources with value of "P" | Consider all calibrator sources |
| AutoPeakFocus(gold=False) | Consider all calibrator sources | Consider all calibrator sources |
| AutoPeakFocus() | Consider all calibrator sources | Consider all calibrator sources |
| Written | |
|---|---|
| Checked | |
| Approved by Sponsor | |
| Approved by CCC | |
| Accepted/Delivered by Sponsor | |
%X% if MR is not complete (will display %Y% if MR iscomplete (will display Attachment: ![]() | Action: | Size: | Date: | Who: | Comment: |
|---|---|---|---|---|---|
| | action | 12693 | 21 Dec 2007 - 14:33 | RonGrider |
| Topic ModificationRequest2C807 . { Edit | Attach | Ref-By | Printable | Diffs | r1.16 | > | r1.15 | > | r1.14 | More } |
| Revision r1.16 - 14 Jan 2008 - 01:25 GMT - FrankGhigo |
Content copyright © 1999-2007 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. |