Ejemplo n.º 1
0
    def get_jys(self,t,freqs,Flx=None,DM=None,err=0,srcs=None):
        """Return the list of pulsed and non-pulsed fluxes of all src objects in catalog"""

        if srcs is None: srcs = self.keys()
        a = []
        for s in srcs:
            if type(self[s]).__name__ == 'pulsar':
                a.append(self[s].get_pjys(t,freqs,Flx=Flx,DM=DM,err=err))
            else:
                a.append(self[s].get_jys())
        return np.array(a)
Ejemplo n.º 2
0
    def get_pjys(self,t,freqs,Flx=None,DM=None,err=0,srcs=None):
        """Return the list of (pulsed) fluxes of all src objects in catalog.
           Note, this routine accommodates non-pulsed sources too"""
        if srcs is None: srcs = self.keys()
        a = []
        for s in srcs:
            if type(self[s]).__name__ == 'pulsar':
                a.append(self[s].get_pjys(t,freqs,Flx=Flx,DM=DM,err=err))
            else:
                a.append(self[s].get_jys())

        return np.array(a)