NRAO Home  >  Green Bank  |  Wiki Topic:    GB > Software > ModificationRequest1C706
   Changes | Index | Contents | Search | Statistics | Go

Add Two New Scan Types: "FivePoint" and "Circle"

Modification Request 1C706



1. Introduction

These new scan types are similar to "PointMap" in which tracking is done on a series of positions arranged symmetrically about a central location.

A user requested a "FivePoint" scan type, in which five subscans are done. The user gives a Location and an Offset. The five points are 1) the Location, 2) Location + Offset, 3) Location-Offset, 4) Location+Offset90, 5) Location-Offset90; where "Offset90" is at a 90 degree angle to the given Offset.

"Circle" is a related function in which a central location is tracked, followed by N points on a circle centered on the location.

2. Background

"FivePoint" and "Circle" were written based on "Z17" which does two circles.

3. Requirements

The requirements are written as user instructions.

3.1 FivePoint

FivePoint Syntax:

Parameter Info:

FivePoint does 5 subscans each of duration given by scanDuration. The first scan is at the central position given by "location"; the second is at (location + startOffset); the third at (location - startOffset), the fourth and fifth at 90 degrees to numbers 2 and 3.

If the startOffset is represented as the vector (x, y), then the offsets of the five subscans are given by:

  1. ( 0, 0)
  2. ( x, y)
  3. ( -x, -y)
  4. ( -y, x)
  5. ( y, -x)

3.2 Circle

Circle Syntax:

Parameter Info:

All subscans are of duration given by scanDuration.

Circle does the first subscan at the specified location, the 2nd at (location + startOffset), and the remaining subscans are on a circle of diameter given by startOffset, with (nPoints - 1) at equally spaced angles around the circle.

With nPoints = 5, one observes the same points as in FivePoint, but in a different order. In Circle, the points are at sucessive angles around a circle.

If referenceOffset is given, reference scans are done as described above.

3.3 Error Messages

In the event of an illegal argument to either FivePoint or Circle, a descriptive error message will be displayed to the user in the validation output window on the Edit tab of the Observation Management GUI.

4. Design

The code for these scan types is at present in directory /users/fghigo/GBT/astrid/procs/. The programs were based on Z17 and modified appropriately.

The code can simply be taken from the diretory mentioned above and placed into the sparrow/gbt/api/turtle/src/proc area. Then Observation.py (in sparrow/gbt/api/turtle/src/proc) must also be modified to add FivePoint and Circle as valid ScanTypes.

5. Deployment Checklist

7. Test Plan

7.1 Internal Testing

Both programs have been tested using the astrid "simulate" utility. The correct sequence of positions happened. Once integrated into the Observing Management API, the simulation testing should be repeated using the "simulate" utility. In addition, the new ScanTypes should be tested on the SDD simulator.

7.1.1 FivePoint Tests

Test Case Expected Behavior Pass/Fail
FivePoint("0757+0956", Offset("J2000", 1.0, 5.0), 60.0, "1") Valid - five point about "0757+0956"  
FivePoint("0757+0956", Offset("J2000", 1.0, 5.0), 60.0, 1) Invalid - beamName must be a string. Should see descriptive error message.  
FivePoint("0757+0956", Offset("J2000", 1.0, 5.0), 60.0) Valid - same as above, checking defaulted beamName = "1"  
FivePoint("0757+0956", Offset("J2000", 1.0, 5.0)) Invalid - scanDuration not defaulted. Should see descriptive error message.  
FivePoint("0757+0956", None, 60.0) Invalid - bad startOffset. Should see descriptive error message.  
FivePoint("amy", Offset("J2000", 1.0, 5.0), 60.0) Invalid - bad location. Should see descriptive error message.  
FivePoint("0757+0956", Offset("J2000", 2.0,0.5), 60, "1", Offset("J2000", 5.0,5.0)) Valid - will do two offset scans.  

7.1.1 Circle Tests

Test Case Expected Behavior Pass/Fail
Circle("0757+0956", Offset("J2000", 1.0, 5.0), 60.0, "1", 6) Valid - six subscans  
Circle("0757+0956", Offset("J2000", 1.0, 5.0), 60.0, "1", 3) Valid - three subscans  
Circle("0757+0956", Offset("J2000", 1.0, 5.0), 60.0, "1", 2) Invalid - must be at least nPoints must be at least 3. Should see descriptive error message.  
Circle("0757+0956", Offset("J2000", 1.0, 5.0), 60.0, "1", 3.5) Invalid - must be at least nPoints must be an integer. Should see descriptive error message.  
Circle("0757+0956", Offset("J2000", 1.0, 5.0), 60.0, "1", "3") Invalid - must be at least nPoints must be an integer. Should see descriptive error message.  
Circle("0757+0956", Offset("J2000", 1.0, 5.0), 60.0, "1") Valid - five points about "0757+0956", checking defaulted nPoints = 5  
Circle("0757+0956", Offset("J2000", 1.0, 5.0), 60.0, 1) Invalid - beamName must be a string. Should see descriptive error message.  
Circle("0757+0956", Offset("J2000", 1.0, 5.0), 60.0) Valid - five points about "0757+0956", checking defaulted beamName = "1"  
Circle("0757+0956", Offset("J2000", 1.0, 5.0)) Invalid - scanDuration not defaulted. Should see descriptive error message.  
Circle("0757+0956", None, 60.0) Invalid - bad startOffset  
Circle("amy", Offset("J2000", 1.0, 5.0), 60.0) Invalid - bad location. Should see descriptive error message.  
Circle("0757+0956", Offset("J2000", 1.0, 5.0), 60.0, "1", 8, Offset("J2000", 5,5) ) Valid - eight points about "0757+0956", plus reference positions.  
Circle("0757+0956", Offset("J2000", 1.0, 5.0), 60.0, "1", 8, Offset("J2000", 5,5), 3 ) Valid - eight points about "0757+0956", plus reference positions.  

7.2 Sponsor Testing

The new ScanTypes should be tested on the SDD simulator and verify that they are working correctly.

7.3 Integration/Regression Tests

FivePoint has been used over the last few days by an observer and seems to have worked flawlessly. Additionally right before release into the system, the new ScanTypes should be tested using the GBT and verify that they are working correctly.


Signatures

APPROVED: I acknowledge that my request is fully contained in this MR, and if the SDD delivers exactly what I specified, I will be happy.

ACCEPTED: I acknowledge that I have validated the completed code according to the acceptance tests, and I am happy with the results.

Written DONE - F. Ghigo - 11 Oct 2006
Checked DONE - A. Shelton - 12 Oct 2006
Approved by Sponsor DONE - F. Ghigo - 11 Oct 2006
Approved by CCC symbol - product/version - date
Accepted/Delivered by Sponsor symbol - product/version - date

Symbols:


CCC Discussion Area

Topic ModificationRequest1C706 . { Edit | Attach | Ref-By | Printable | Diffs | r1.3 | > | r1.2 | > | r1.1 | More }
Revision r1.3 - 12 Oct 2006 - 20:10 GMT - FrankGhigo Content copyright © 1999-2007 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.