Skip to content

Instantly share code, notes, and snippets.

@ipashchenko
Created May 19, 2016 20:11
Show Gist options
  • Select an option

  • Save ipashchenko/ea4b6fe888f58850eaefc6b693a16fda to your computer and use it in GitHub Desktop.

Select an option

Save ipashchenko/ea4b6fe888f58850eaefc6b693a16fda to your computer and use it in GitHub Desktop.
from cfx import CFX
from utils import find_file
from raw_data import M5
cfx_file = '/home/ilya/code/frb/data/cfx/RADIOASTRON_RAKS12ER_L_20151105T130000_ASC_V1.cfx'
cfx = CFX(cfx_file)
cfx_data = cfx.parse_cfx('raks12er')
fname = 'rk12er_tr_no0001'
params = cfx_data[fname]
data_path = '/home/ilya/code/frb/data/raw_data/'
m5file = find_file(fname, data_path)
m5file = m5file[0]
m5file_fmt = params[2]
cfx_fmt = params[-1]
m5 = M5(m5file, m5file_fmt)
# Warning: data rate disagrees : 128 != 256
@ipashchenko
Copy link
Author

But it is OK with M5 initialization for fname = 'rk12er_tr_no0002'...

@akutkin
Copy link

akutkin commented May 23, 2016

Torun format issue again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment