blimpy/filterbank.py
def info(self):
        """ Print header information """

        for key, val in self.header.items():
            if key == b'src_raj':
                val = val.to_string(unit=u.hour, sep=':')
            if key == b'src_dej':
                val = val.to_string(unit=u.deg, sep=':')
            if key == b'tsamp':
                val *= u.second
            if key in ('foff', 'fch1'):
                val *= u.MHz
            if key == b'tstart':
                print("%16s : %32s" % ("tstart (ISOT)", Time(val, format='mjd').isot))
                key = "tstart (MJD)"
            print("%16s : %32s" % (key, val))

        print("\n%16s : %32s" % ("Num ints in file", self.n_ints_in_file))
        print("%16s : %32s" % ("Data shape", self.data.shape))
        print("%16s : %32s" % ("Start freq (MHz)", self.freqs[0]))
        print("%16s : %32s" % ("Stop freq (MHz)", self.freqs[-1]))
def info(self):
        """ Print header information """

        for key, val in self.header.items():
            if key == b'src_raj':
                val = val.to_string(unit=u.hour, sep=':')
            if key == b'src_dej':
                val = val.to_string(unit=u.deg, sep=':')
            if key == b'tsamp':
                val *= u.second
            if key in ('foff', 'fch1'):
                val *= u.MHz
            if key == b'tstart':
                print("%16s : %32s" % ("tstart (ISOT)", Time(val, format='mjd').isot))
                key = "tstart (MJD)"
            print("%16s : %32s" % (key, val))

        print("\n%16s : %32s" % ("Num ints in file", self.n_ints_in_file))
        print("%16s : %32s" % ("Data shape", self.data.shape))
        print("%16s : %32s" % ("Start freq (MHz)", self.freqs[0]))
        print("%16s : %32s" % ("Stop freq (MHz)", self.freqs[-1]))
def info ( self ) : for key , val in self . header . items ( ) : if key == b'src_raj' : val = val . to_string ( unit = u . hour , sep = ':' ) if key == b'src_dej' : val = val . to_string ( unit = u . deg , sep = ':' ) if key == b'tsamp' : val *= u . second if key in ( 'foff' , 'fch1' ) : val *= u . MHz if key == b'tstart' : print ( "%16s : %32s" % ( "tstart (ISOT)" , Time ( val , format = 'mjd' ) . isot ) ) key = "tstart (MJD)" print ( "%16s : %32s" % ( key , val ) ) print ( "\n%16s : %32s" % ( "Num ints in file" , self . n_ints_in_file ) ) print ( "%16s : %32s" % ( "Data shape" , self . data . shape ) ) print ( "%16s : %32s" % ( "Start freq (MHz)" , self . freqs [ 0 ] ) ) print ( "%16s : %32s" % ( "Stop freq (MHz)" , self . freqs [ - 1 ] ) )
Print header information
Print header information