Пример #1
0
 def __init__(self, 
              start, 
              stop, 
              duration,
              offset = Coord(HOR, 
                             VAngle(1),
                             VAngle(0))):
     """
     @param start: elevation start 
     @type start: VAngle
     @param stop: elevation stop
     @type stop: stop
     @param duration: skydip duration
     @type duration: seconds
     @param offset: skydip offset from specified target
     @type offset: frame.Coord
     """
     ScanMode.__init__(self)
     self.start = start
     self.stop = stop
     self.duration = duration
     self.offset = offset
     # The minimum observation is composed of 2 subscans
     # one sidereal subscan to position the antenna in 
     # proximity of the source, and one OTF subscan to perform
     # the skydip acquisition
     self.unit_subscans = 2
Пример #2
0
 def __init__(self, feeds, duration, sequence):
     ScanMode.__init__(self)
     self.feed_a = feeds[0]
     self.feed_b = feeds[1]
     self.duration = duration
     self.sequence = sequence
     self.unit_subscans = sum(el[0] for el in self.sequence)
     self.frame = frame.NULL
Пример #3
0
 def __init__(self, duration, offset_lon, offset_lat, offset_frame, sequence):
     ScanMode.__init__(self)
     self.offset_lon = offset_lon
     self.offset_lat = offset_lat
     if (not offset_frame) or offset_frame == NULL:
         self.offset_frame = self.frame
     else:
         self.offset_frame = offset_frame
     self.unit_subscans = sum(el[0] for el in sequence) 
     self.sequence = sequence
     self.duration = duration
     self.frame = NULL
Пример #4
0
 def __init__(self, 
              frame, 
              length, 
              speed):
     """
     @param frame: The scan L{frame}
     @type frame: L{frame.Frame}
     @param length: length of each otf subscan in decimal degrees
     @type length: angles.Angle
     @param speed: speed of each otf subscan in degrees per minute
     """
     ScanMode.__init__(self)
     self.length = length
     self.frame = frame
     self.speed = speed
     #duration is expressed in seconds
     self.duration = self.length.deg / self.speed * 60
     logger.debug("scan %d duration: %f" % (self.ID, self.duration))
     #The minimum observation is composed of 4 subscans
     # to form a cross over the source in both directions
     self.unit_subscans = 4
Пример #5
0
 def __init__(self, frame, start_point, scan_axis,
           length_x, length_y, spacing):
     """
     Constructor
     @param frame: scan frame
     @type frame: frame.Frame
     @param start_point: one of TL, TR, BL, BR
     @param scan_axis: one of LON LAT RA DEC AZ EL BOTH, the constant axis of
     each subscan
     @param length_x: map width in degrees
     @type length_x: VAngle
     @param length_y: map height in degrees
     @type length_y: VAngle
     @param spacing: separation between subsequent subscans
     @type spacing: VAngle
     """
     ScanMode.__init__(self)
     self.frame = frame
     self.start_point = start_point
     self.scan_axis = scan_axis
     self.length_x = length_x
     self.length_y = length_y
     self.spacing = spacing