Esempio n. 1
0
 def _do_scan(self, _target, _receiver, _frequency):
     _subscans = []
     for element in self.sequence:
         for repetitions in range(element[0]):
             if element[1] == "on": #ON SOURCE
                 ss = subscan.get_sidereal(
                         _target, 
                         Coord(self.offset_frame,
                               VAngle(0.0),
                               VAngle(0.0)),
                         self.duration,
                         is_cal = element[2])
             elif element[1] == "off": #OFF SOURCE
                 ss = subscan.get_sidereal(
                         _target, 
                         Coord(self.offset_frame,
                               self.offset_lon,
                               self.offset_lat),
                         self.duration,
                         is_cal=element[2])
             else:
                 raise ScheduleError("unknown onoff position: %s" % (element[1],))
             #TSYS is calculated at off position
             st = subscan.get_tsys(_target,
                     Coord(self.offset_frame,
                           self.offset_lon,
                           self.offset_lat))
             _subscans.append((ss, st))
     return _subscans
Esempio n. 2
0
 def _do_scan(self, _target, _receiver, _frequency):
     beamsize = VAngle(_receiver.get_beamsize(max(_frequency)))
     _subscans = []
     null_offset = Coord(_target.coord.frame,
                         VAngle(0),
                         VAngle(0))
     _subscans.append((subscan.get_sidereal(_target, 
                                           null_offset,
                                           0,
                                           is_cal = False),
                       subscan.get_tsys(_target,
                                        null_offset)))
     _subscans.append(subscan.get_skydip_tsys(_subscans[0][0].ID,
                                              _target,
                                              self.duration,
                                              self.start,
                                              self.stop,
                                              self.offset))
     return _subscans