vdif2m5b |
---|
DESCRIPTION |
---|
"vdif2m5b" converts VDIF format data to Mark5B format data.
SYNOPSIS |
---|
vdif2m5b vdif_file [options]
or
k5tom5b --version|--help
where
vdif_file | VDIF data file to be converted | ||||||||
--version | show program version | ||||||||
--help | show how to execute | ||||||||
OPTIONS | |||||||||
-o m5bfile | set Mark5B file name to be created | ||||||||
-d m5dir | set directory for Mark5B file out (default: VDIF directory) | ||||||||
-fsampl fmhz | channel sampling frequency (MHz) to compulsory set | ||||||||
-2bit mode | set 2bit AD decode table
| ||||||||
-s soffset | set offset time from data head (sec) (default: 0.0) | ||||||||
-p period | set data period to convert (sec) (default: all) | ||||||||
-type1 | set output file naming Type 1 (replace file extention by "m5b") (default is Type 0) | ||||||||
-pid thread_id | set pickup thread ID compulsory | ||||||||
-ch1 nn | set VDIF channel # corresponding to Mark5 ch #1 nn is VDIF channel number (1-16) | ||||||||
-ch2 nn | set VDIF channel # corresponding to Mark5 ch #2 | ||||||||
....................... | |||||||||
-ch16 nn | set VDIF channel # corresponding to Mark5 ch #16 | ||||||||
-chall n1:n2:....:nNN | |||||||||
set VDIF channels corresponding to Mark5 all channels
|
Naming rule for Mark5B file created (VDIF.vdif : original VDIF name)
Type 0 -- VDIF.vdif.m5b (default)
Type 1 -- VDIF.m5b
EXAMPLES |
---|
Example 1
use default settings.
~/chkdata/vdif$ vdif2m5b ads_2012300165730.vdif ************************************************************ * VDIF to Mark5B Data Format Converter * * vdif2m5b (Ver 1.00 2016-12-22) by T.KONDO * ************************************************************ ==================== VDIF FILE INFO =========================== File Name : ./ads_2012300165730.vdif Size : 787200000 bytes Start Time : 2012/11/25 16:57:30 Thread ID : 0 Frame# : 0 Pickup Thread ID : 0 Bytes/Frame : 1312 bytes Data type : Real Data AD bits : 2 #Channels : 16 EDV# : 1 Extended header information (NICT's EDV) Sampling Frequency : 64 MHz Sync block : ACABFEED DAS/Station name : ADS2K5 Sampling Frequency Estimated (MHz) : 64.000000 ================================================================ Mark5B Data File will be created : ./ads_2012300165730.vdif.m5b ============================================================================== EXTENDED DATA HH:MM:SS FRAME# I L VER CHS #Bytes C AD TID SID W1 W2 ------------------------------------------------------------------------------ 16:57:30 0 0 0 0 16 1312 0 2 0 00800040 ACABFEED 16:57:31 0 0 0 0 16 1312 0 2 0 00800040 ACABFEED 16:57:32 0 0 0 0 16 1312 0 2 0 00800040 ACABFEED ============================================================================== Mark5B Data File created : ./ads_2012300165730.vdif.m5b (769228800 bytes) Time elapsed (sec) for One obs process is 38.000000 ~/chkdata/vdif$ |
Example 2
change channel allocation of ch#1 and ch#16 and set output file name.
~/chkdata/vdif$ vdif2m5b ads_2012300165730.vdif -ch1 16 -ch16 1 -o test.m5b ************************************************************ * VDIF to Mark5B Data Format Converter * * vdif2m5b (Ver 1.00 2016-12-22) by T.KONDO * ************************************************************ ===================== VDIF FILE INFO =========================== File Name : ./ads_2012300165730.vdif Size : 787200000 bytes Start Time : 2012/11/25 16:57:30 Thread ID : 0 Frame# : 0 Pickup Thread ID : 0 Bytes/Frame : 1312 bytes Data type : Real Data AD bits : 2 #Channels : 16 EDV# : 1 Extended header information (NICT's EDV) Sampling Frequency : 64 MHz Sync block : ACABFEED DAS/Station name : ADS2K5 Sampling Frequency Estimated (MHz) : 64.000000 Channel re-allocation: ( 1 - 16) ( 2 - 2) ( 3 - 3) ( 4 - 4) ( 5 - 5) ( 6 - 6) ( 7 - 7) ( 8 - 8) ( 9 - 9) (10 - 10) (11 - 11) (12 - 12) (13 - 13) (14 - 14) (15 - 15) (16 - 1) ================================================================= Mark5B Data File will be created : ./test.m5b ============================================================================== EXTENDED DATA HH:MM:SS FRAME# I L VER CHS #Bytes C AD TID SID W1 W2 ------------------------------------------------------------------------------ 16:57:30 0 0 0 0 16 1312 0 2 0 00800040 ACABFEED 16:57:31 0 0 0 0 16 1312 0 2 0 00800040 ACABFEED 16:57:32 0 0 0 0 16 1312 0 2 0 00800040 ACABFEED ============================================================================== Mark5B Data File created : ./test.m5b (769228800 bytes) Time elapsed (sec) for One obs process is 67.000000 ~/chkdata/vdif$ |