Example #1
0
def flushPrint (tMin, tMax, poldata):
    print 'Start/end times:', util.jdToFull (tMin), ';', util.jdToFull (tMax)
    print 'Duration:', (tMax - tMin) * 24 * 60, 'min'

    pols = sorted (poldata.iterkeys (), key=lambda p: abs (p))

    for pol in pols:
        pname = util.polarizationName (pol)

        mreal, mimag, amp, uamp, phdeg, uphdeg, count = poldata[pol]

        print '%s: real %f, imag %f, amp %f (+- %f), ph %f deg (+- %f) (%d items)' % \
            (pname, mreal, mimag, amp, uamp, phdeg, uphdeg, count)
Example #2
0
def flushPrint(tMin, tMax, poldata):
    print 'Start/end times:', util.jdToFull(tMin), ';', util.jdToFull(tMax)
    print 'Duration:', (tMax - tMin) * 24 * 60, 'min'

    pols = sorted(poldata.iterkeys(), key=lambda p: abs(p))

    for pol in pols:
        pname = util.polarizationName(pol)

        mreal, mimag, amp, uamp, phdeg, uphdeg, count = poldata[pol]

        print '%s: real %f, imag %f, amp %f (+- %f), ph %f deg (+- %f) (%d items)' % \
            (pname, mreal, mimag, amp, uamp, phdeg, uphdeg, count)
Example #3
0
    def plot (self):
        import omega as om

        p = om.RectPlot ()
        dt = (np.asarray (self.times) - self.times[0]) * 24.
        print 'Base time is', util.jdToFull (self.times[0])

        for pol, amps in self.amps.iteritems ():
            us = self.ampus[pol]
            p.addXYErr (dt, amps, us, util.polarizationName (pol), lines=False)

        #p.setBounds (ymin=0)
        p.setLabels ('Relative Time (hr)', 'Flux Density (Jy)')
        return p
Example #4
0
    def plot(self):
        import omega as om

        p = om.RectPlot()
        dt = (np.asarray(self.times) - self.times[0]) * 24.
        print 'Base time is', util.jdToFull(self.times[0])

        for pol, amps in self.amps.iteritems():
            us = self.ampus[pol]
            p.addXYErr(dt, amps, us, util.polarizationName(pol), lines=False)

        #p.setBounds (ymin=0)
        p.setLabels('Relative Time (hr)', 'Flux Density (Jy)')
        return p