import scipy.constants as FCNST from astropy.io import fits from astropy.io import ascii from astropy.table import Table import progressbar as PGB import antenna_array as AA import data_interface as DI import geometry as GEOM import sim_observe as SIM import my_DSP_modules as DSP from pycallgraph import PyCallGraph, Config, GlobbingFilter from pycallgraph.output import GraphvizOutput import ipdb as PDB infile = '/data3/t_nithyanandan/project_MOFF/data/samples/lwa_data.CDF.fits' du = DI.DataHandler(indata=infile) max_n_timestamps = 4 config = Config(max_depth=5, groups=True) graphviz = GraphvizOutput( output_file= '/data3/t_nithyanandan/project_MOFF/data/samples/figures/profile_graph_{0:0d}_iterations.png' .format(max_n_timestamps)) config.trace_filter = GlobbingFilter(include=['antenna_array.*']) # exclude=['progressbar.*', 'numpy.*', 'warnings.*', 'matplotlib.*', 'scipy.*', 'weakref.*', 'threading.*', 'six.*', 'Queue.*', 'wx.*', 'abc.*', 'posixpath.*', '_weakref*', 'astropy.*', 'linecache.*', 'multiprocessing.*', 'my_*', 'geometry.*'], lat = du.latitude f0 = du.center_freq nts = du.nchan nchan = nts * 2
import data_interface as DI LWA_reformatted_datafile_prefix = '/data3/t_nithyanandan/project_MOFF/data/samples/lwa_reformatted_data_test' LWA_pol0_reformatted_datafile = LWA_reformatted_datafile_prefix + '.pol-0.fits' LWA_pol1_reformatted_datafile = LWA_reformatted_datafile_prefix + '.pol-1.fits' filelist = [LWA_pol0_reformatted_datafile, LWA_pol1_reformatted_datafile] dataunit = DI.DataHandler(indata=filelist) dataunit.save( '/data3/t_nithyanandan/project_MOFF/data/samples/lwa_data.CDF.fits')