Created
May 19, 2016 20:11
-
-
Save ipashchenko/ea4b6fe888f58850eaefc6b693a16fda to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
But it is OK with
M5initialization forfname = 'rk12er_tr_no0002'...