Example #1
0
    def __init__(self, name):
        TCSInterfaceDaemon.__init__(self, name, "-1")
        ServerBased.__init__(self, self.cfg)

        self.host = sockets.getHostNameShort()
        self.interface_port = int(self.cfg["TCS_INTERFACE_PORT"]) - 1
        self.spip_tcs_port = int(self.cfg["TCS_INTERFACE_PORT"])

        # beam_states maintains info about last observation for beam
        self.beam_cfg = {}
Example #2
0
  def __init__ (self, name):
    TCSDaemon.__init__(self, name, "-1")
    ServerBased.__init__(self, self.cfg)
    self.interface_port = int(self.cfg["TCS_INTERFACE_PORT"])
    self.report_port = int(self.cfg["TCS_REPORT_PORT"])
    self.fold_dir = self.cfg["SERVER_FOLD_DIR"]

    # beam_states maintains info about last observation for beam
    for i in range(int(self.cfg["NUM_BEAM"])):
      b = self.cfg["BEAM_"+str(i)]
      self.beam_states[b] = {}
      self.beam_states[b]["config"] = {}

      self.beam_states[b]["config"]["source_parameters"] = {}
      self.beam_states[b]["config"]["observation_parameters"] = {}
      self.beam_states[b]["config"]["calibration_parameters"] = {}
      self.beam_states[b]["config"]["custom_parameters"] = {}
      self.beam_states[b]["config"]["processing_modes"] = {}
      self.beam_states[b]["config"]["stream_configuration"] = {}

      self.beam_states[b]["config"]["source_parameters"]["name"] = {"@key":"SOURCE", "@epoch":"J2000", "#text":""}
      self.beam_states[b]["config"]["source_parameters"]["ra"] = {"@key":"RA", "@units":"hhmmss", "#text":""}
      self.beam_states[b]["config"]["source_parameters"]["dec"] = {"@key":"DEC", "@units":"ddmmss", "#text":""}
      self.beam_states[b]["config"]["observation_parameters"]["project_id"] = {"@key":"PID", "#text":""}
      self.beam_states[b]["config"]["observation_parameters"]["observer"] = {"@key":"OBSERVER", "#text":""}
      self.beam_states[b]["config"]["observation_parameters"]["utc_start"] = {"@key":"UTC_START", "#text":"None"}
      self.beam_states[b]["config"]["observation_parameters"]["utc_stop"] = {"@key":"UTC_STOP", "#text":"None"}
      self.beam_states[b]["config"]["observation_parameters"]["tobs"] = {"@key":"TOBS", "#text":""}
      self.beam_states[b]["config"]["observation_parameters"]["mode"] = {"@key":"MODE", "#text":""}
      self.beam_states[b]["config"]["observation_parameters"]["calfreq"] = {"@key":"CALFREQ", "#text":""}
      self.beam_states[b]["config"]["calibration_parameters"]["signal"] = {"@key":"CAL_SIGNAL", "#text":""}
      self.beam_states[b]["config"]["calibration_parameters"]["freq"] = {"@key":"CAL_FREQ", "#text":""}
      self.beam_states[b]["config"]["calibration_parameters"]["phase"] = {"@key":"CAL_PHASE", "#text":""}
      self.beam_states[b]["config"]["calibration_parameters"]["duty_cycle"] = {"@key":"CAL_DUTY_CYCLE", "#text":""}
      self.beam_states[b]["config"]["calibration_parameters"]["epoch"] = {"@key":"CAL_EPOCH", "#text":""}
      self.beam_states[b]["config"]["calibration_parameters"]["tsys_avg_time"] = {"@key":"TSYS_AVG_TIME", "#text":""}
      self.beam_states[b]["config"]["calibration_parameters"]["tsys_freq_resolution"] = {"@key":"TSYS_FREQ_RES", "#text":""}
      self.beam_states[b]["config"]["stream_configuration"]["nstream"] = {"@key":"NSTREAM", "#text":"0"}

      self.beam_states[b]["state"] = "Idle"
      self.beam_states[b]["lock"] = threading.Lock()
Example #3
0
    def __init__(self, name):
        TCSDaemon.__init__(self, name, "-1")
        ServerBased.__init__(self, self.cfg)
        self.interface_port = int(self.cfg["TCS_INTERFACE_PORT"])
        self.report_port = int(self.cfg["TCS_REPORT_PORT"])

        # beam_states maintains info about last observation for beam
        for i in range(int(self.cfg["NUM_BEAM"])):
            b = self.cfg["BEAM_" + str(i)]
            self.beam_states[b] = {}
            self.beam_states[b]["source"] = ""
            self.beam_states[b]["ra"] = ""
            self.beam_states[b]["dec"] = ""
            self.beam_states[b]["pid"] = ""
            self.beam_states[b]["observer"] = ""
            self.beam_states[b]["utc_start"] = None
            self.beam_states[b]["utc_stop"] = None
            self.beam_states[b]["tobs"] = ""
            self.beam_states[b]["adc_sync_time"] = ""
            self.beam_states[b]["mode"] = ""
            self.beam_states[b]["state"] = "Idle"
            self.beam_states[b]["lock"] = threading.Lock()
Example #4
0
 def __init__ (self, name):
   ResultsDaemon.__init__(self,name, "-1")
   ServerBased.__init__(self, self.cfg)
Example #5
0
 def __init__(self, name):
     UWBCleanerDaemon.__init__(self, name, "-1")
     ServerBased.__init__(self, self.cfg)
Example #6
0
 def __init__(self, name):
     RepackDaemon.__init__(self, name, "-1")
     ServerBased.__init__(self, self.cfg)
Example #7
0
 def __init__(self, name):
     LogsDaemon.__init__(self, name, "-1")
     ServerBased.__init__(self, self.cfg)
Example #8
0
 def __init__(self, name):
     MeerKATArchiverDaemon.__init__(self, name, "-1")
     ServerBased.__init__(self, self.cfg)
Example #9
0
 def __init__ (self, name):
   MeerKATCleanerDaemon.__init__(self, name, "-1")
   ServerBased.__init__(self, self.cfg)
Example #10
0
 def __init__ (self, name):
   UWBArchiverDaemon.__init__(self, name, "-1")
   ServerBased.__init__(self, self.cfg)
Example #11
0
    def __init__(self, name):
        TCSDaemon.__init__(self, name, "-1")
        ServerBased.__init__(self, self.cfg)
        self.interface_port = int(self.cfg["TCS_INTERFACE_PORT"])
        self.report_port = int(self.cfg["TCS_REPORT_PORT"])
        self.fold_dir = self.cfg["SERVER_FOLD_DIR"]

        # beam_states maintains info about last observation for beam
        for i in range(int(self.cfg["NUM_BEAM"])):
            b = self.cfg["BEAM_" + str(i)]
            self.beam_states[b] = {}
            self.beam_states[b]["config"] = {}

            self.beam_states[b]["config"]["source_parameters"] = {}
            self.beam_states[b]["config"]["observation_parameters"] = {}
            self.beam_states[b]["config"]["calibration_parameters"] = {}
            self.beam_states[b]["config"]["custom_parameters"] = {}
            self.beam_states[b]["config"]["processing_modes"] = {}
            self.beam_states[b]["config"]["stream_configuration"] = {}

            self.beam_states[b]["config"]["source_parameters"]["name"] = {
                "@key": "SOURCE",
                "@epoch": "J2000",
                "#text": ""
            }
            self.beam_states[b]["config"]["source_parameters"]["ra"] = {
                "@key": "RA",
                "@units": "hhmmss",
                "#text": ""
            }
            self.beam_states[b]["config"]["source_parameters"]["dec"] = {
                "@key": "DEC",
                "@units": "ddmmss",
                "#text": ""
            }
            self.beam_states[b]["config"]["observation_parameters"][
                "project_id"] = {
                    "@key": "PID",
                    "#text": ""
                }
            self.beam_states[b]["config"]["observation_parameters"][
                "observer"] = {
                    "@key": "OBSERVER",
                    "#text": ""
                }
            self.beam_states[b]["config"]["observation_parameters"][
                "utc_start"] = {
                    "@key": "UTC_START",
                    "#text": "None"
                }
            self.beam_states[b]["config"]["observation_parameters"][
                "utc_stop"] = {
                    "@key": "UTC_STOP",
                    "#text": "None"
                }
            self.beam_states[b]["config"]["observation_parameters"]["tobs"] = {
                "@key": "TOBS",
                "#text": ""
            }
            self.beam_states[b]["config"]["observation_parameters"]["mode"] = {
                "@key": "MODE",
                "#text": ""
            }
            self.beam_states[b]["config"]["observation_parameters"][
                "calfreq"] = {
                    "@key": "CALFREQ",
                    "#text": ""
                }
            self.beam_states[b]["config"]["calibration_parameters"][
                "signal"] = {
                    "@key": "CAL_SIGNAL",
                    "#text": ""
                }
            self.beam_states[b]["config"]["calibration_parameters"]["freq"] = {
                "@key": "CAL_FREQ",
                "#text": ""
            }
            self.beam_states[b]["config"]["calibration_parameters"][
                "phase"] = {
                    "@key": "CAL_PHASE",
                    "#text": ""
                }
            self.beam_states[b]["config"]["calibration_parameters"][
                "duty_cycle"] = {
                    "@key": "CAL_DUTY_CYCLE",
                    "#text": ""
                }
            self.beam_states[b]["config"]["calibration_parameters"][
                "epoch"] = {
                    "@key": "CAL_EPOCH",
                    "#text": ""
                }
            self.beam_states[b]["config"]["calibration_parameters"][
                "tsys_avg_time"] = {
                    "@key": "TSYS_AVG_TIME",
                    "#text": ""
                }
            self.beam_states[b]["config"]["calibration_parameters"][
                "tsys_freq_resolution"] = {
                    "@key": "TSYS_FREQ_RES",
                    "#text": ""
                }
            self.beam_states[b]["config"]["stream_configuration"][
                "nstream"] = {
                    "@key": "NSTREAM",
                    "#text": "0"
                }

            self.beam_states[b]["state"] = "Idle"
            self.beam_states[b]["lock"] = threading.Lock()