script to calculate the format of vdif file