_parser.add_argument('--model',default='all',type=str,help='Model: static, dynamic or all')
_parser.add_argument('--sky_sigma',default=4.0,type=float,help='Signal sigma level at ADC input')
_parser.add_argument('--wg_enable',default=False,action='store_true',help='Model coherent ADC input using WG sinus or model incoherent ADC input using Gaussian white noise')
_parser.add_argument('--wg_ampl',default=4.0*2**0.5,type=float,help='WG amplitude at ADC input')
_parser.add_argument('--wg_sweep',default=0.0,type=float,help='Number of subbands fsub to sweep with WG in dynamic model')
_parser.add_argument('--nof_periods',default=250,type=int,help='Number of subband periods in dynamic model')
_parser.add_argument('--quantize',default=False,action='store_true',help='Use fixed point rounding or no rounding of weights, gains and internal signals')
_parser.add_argument('--useplot',default=False,action='store_true',help='Use plots or skip plotting')
_parser.add_argument('--sub_weight_adjust',default=1.0,type=float,help='Factor to adjust unit subband weight')
_parser.add_argument('--bf_weight_adjust',default=1.0,type=float,help='Factor to adjust unit BF weight')
args=_parser.parse_args()
ifargs.model=='all':
models=['static','dynamic']
else:
models=[args.model]
skySigma=args.sky_sigma
#skySigma = 16 # 16 for 4 bit noise
#skySigma = 5792 # 5792 * 2**0.5 = 8191 for full scale WG amplitude
wgAmpl=args.wg_ampl
wgSigma=wgAmpl/np.sqrt(2)
wgEnable=args.wg_enable
wgSweep=args.wg_sweep
ifwgSweep!=0:
wgEnable=True# force WG
quantize=args.quantize
useplot=args.useplot
subWeightAdjust=args.sub_weight_adjust
bfWeightAdjust=args.bf_weight_adjust
#subWeightAdjust = 1.0/8 # use <= 1/8 to have no beamlet (8 bit) clipping
# Time series
if'dynamic'inmodels:
# use args.nof_periods for number of subband periods to simulate:
ifwgEnable:
nofTsub=args.nof_periods
#nofTsub = 10 # use >~10 for WG
#nofTsub = 100
else:
nofTsub=args.nof_periods
#nofTsub = 100 # number of subband periods to simulate, use >~ 100 for noise
#nofTsub = 1000 # use >= 1000 for more accuracy
#nofTsub = 250 # use < 1000 to speed up simulation
# also use args.nof_periods for number of Ts, Tsub periods to plot