vdifcheck

DESCRIPTION

"datachk" checks VDIF format data.

SYNOPSIS

vdifcheck vdif_file [options]

where

vdif_file VDIF format data file name to check
OPTIONS
-f[ormat] 0|1|2|3|99 set display format
0 automatic according to VDIF format and edv# (default)
1 legacy format
2 same as mode=0, but edv# is not considered
3 set edv# compulsory as that of KASHIMA
99 for debug
-d[mode] 0|1|2set display mode
0 display first and last frame only (default)
1 display every frame
2 display frame on the second besides first and last frames
-n[frame] nmaxset # of frames to read
-l[egacy] set header length 16 bytes compulsory
-s[kip] n skip first n bytes data
-k[ashima] [bytesframe]set header format to Kashima format compulsory and set frame length bytesframe bytes compulsory

EXAMPLE

	$ vdifcheck kas34_2014112035830.3sec.vdif
	***********************************************************
	*    VDIF data check                                      *
	*      Ver 1.11  2014-06-12  by  T.KONDO/NICT             *
	*                                                         *
	***********************************************************

	Data File : kas34_2014112035830.3sec.vdif
	 1st header information is as follows

	========================= VDIF HEADER INFORMATION =========================
	 VDIF header (raw)        : 00928E66 1C000000 000000A4 00000000
	    extended header (raw) : 01800800 ACABFEED 6873616B 00616D69

	 Invalid flag = 0 :       Legacy flag = 0
	 Sec from ref epoch = 9604710 :  Ref epoch = 28   (2014/04/22 03:58:30)
	 Frame # = 0 :  VDIF Ver# = 0 : # Chs(log2) = 0
	 Frame length in 8 byte unit = 164  (= 1312 bytes)
	 Data type = 0 : #bits/sample-1 = 0 : Thread ID = 0
	 Station ID (A2) =       ( = 0 in number)
	 EDV : 1
	 Exteded Data W1 W2 W3 W4 : 800800 ACABFEED 6873616B 00616D69
	 --- in case of NICT Extended Format ---
	  uflag = 1 :  srate = 2048 :  Sync block = ACABFEED
	  DAS/station name (A8) : kashima
	===========================================================================

	 ==============================================================================
	                                                    Sampling
	 HH:MM:SS  FRAME#  I  L  VER  CHS     #Bytes  TID SID  (MHz)    SYNC   DAS/Stat
	 ------------------------------------------------------------------------------
	 03:58:30      0   0  0    0    1       1312    0      2048  ACABFEED  kashima
	    ...............

	 03:58:32 199999   0  0    0    1       1312    0      2048  ACABFEED  kashima
	 ==============================================================================

	========================= SUMMARY =============================
	 File Name   : kas34_2014112035830.3sec.vdif
	      Size   : 787200000 bytes
	 Start Time  : 2014/04/22 03:58:30
	               Thread ID : 0      Frame# : 0
	 Bytes/Frame : 1312 bytes
	 Data type   : Real Data        AD bits : 1    #Channels : 1
	 EDV#        : 1
	 Extended header information (NICT's EDV)
	      Sampling Frequency : 2048 MHz
	      Sync block         : ACABFEED
	      DAS/Station name   : kashima
	 # of frames/sec     : 200000
	 # of total frames   : 600000   (#bad frames : 0)
	 Data period (sec)   : 3.000000
	 Data Rate/thread (Mbps) : 2048.000000
	 Sampling Frequency Estimated (MHz) : 2048.000000
	================================================================


Updated on February 28, 2017