def getCommand(self, config_file): # get the beam name for the stream (host, self.beam_id, self.subband_id) = self.cfg["STREAM_" + self.id].split(":") beam = self.cfg["BEAM_" + str(self.beam_id)] npol = Config.getStreamParam(self.cfg, "NPOL", self.id) cmd = self.cfg["STREAM_BINARY"] + " -k " + self.db_key \ + " -b " + self.cpu_core \ + " -c " + self.ctrl_port \ + " -D " + self.cfg["CLIENT_STATS_DIR"] + "/" + beam \ + " -p " + npol \ + " -s " + str(self.id) \ + " -f dualvdif" \ + " " + config_file #cmd = self.cfg["STREAM_BINARY"] + " -k " + self.db_key \ # + " -b " + self.cpu_core \ # + " -c " + self.ctrl_port \ # + " -f dualvdif" \ # + " " + config_file return cmd
def getStreamConfigFixed(self, id): cfg = Config.getStreamConfigFixed(self, id) cfg["NPOL"] = Config.getStreamParam(self.config, "NPOL", str(id)) (cfg["DATA_HOST"], cfg["DATA_PORT"]) = self.config["STREAM_UDP_" + str(id)].split(":") cfg["UDP_NSAMP"] = "2048" return cfg
def build_cmd (self): # determine the number of channels to be processed by this stream (cfreq, bw, nchan) = self.cfg["SUBBAND_CONFIG_" + stream_id].split(":") # npol may vary from stream to stream npol = Config.getStreamParam (self.cfg, "NPOL", self.id) # this stat command will not change from observation to observation stat_cmd = self.cfg["STREAM_STATS_BINARY"] + \ " -k " + self.db_key + \ " " + self.stream_config_file + \ " -D " + self.stat_dir + \ " -n " + nchan + \ " -p " + npol return stat_cmd
def build_cmd(self): # determine the number of channels to be processed by this stream (cfreq, bw, nchan) = self.cfg["SUBBAND_CONFIG_" + stream_id].split(":") # npol may vary from stream to stream npol = Config.getStreamParam(self.cfg, "NPOL", self.id) # this stat command will not change from observation to observation stat_cmd = self.cfg["STREAM_STATS_BINARY"] + \ " -k " + self.db_key + \ " " + self.stream_config_file + \ " -D " + self.stat_dir + \ " -n " + nchan + \ " -p " + npol return stat_cmd
def getCommand (self, config_file): # get the beam name for the stream (host, self.beam_id, self.subband_id) = self.cfg["STREAM_" + self.id].split(":") beam = self.cfg["BEAM_" + str(self.beam_id)] npol = Config.getStreamParam (self.cfg, "NPOL", self.id) cmd = self.cfg["STREAM_BINARY"] + " -k " + self.db_key \ + " -b " + self.cpu_core \ + " -c " + self.ctrl_port \ + " -D " + self.cfg["CLIENT_STATS_DIR"] + "/" + beam \ + " -p " + npol \ + " -s " + str(self.id) \ + " -f dualvdif" \ + " " + config_file #cmd = self.cfg["STREAM_BINARY"] + " -k " + self.db_key \ # + " -b " + self.cpu_core \ # + " -c " + self.ctrl_port \ # + " -f dualvdif" \ # + " " + config_file return cmd