out_dir, stw=mksize(args.stw), sth=mksize(args.sth), stp=stp, clip_width=args.clip_width, clip_height=args.clip_height, log_dir=log_dir) t.threads = args.threads t.verbose = args.verbose t.st_dir = args.st_dir t.force = args.force t.merge = args.merge t.out_extension = args.out_ext t.ignore_errors = args.ignore_errors t.ignore_crop = args.ignore_crop t.st_limit = float(args.st_limit) # TODO: make this more proper? if args.nona_args: t.nona_args = args.nona_args.replace('"', '').split(' ') if args.enblend_args: t.enblend_args = args.enblend_args.replace('"', '').split(' ') if args.super_t_xstep: t.super_t_xstep = args.super_t_xstep if args.super_t_ystep: t.super_t_ystep = args.super_t_ystep if args.clip_width: t.clip_width = args.clip_width if args.clip_height: t.clip_height = args.clip_height
if stp > 2**32/4: # 66 GB max useful as currently written print 'WARNING: reducing to maximum tile size' stp = 2**32/4 t = Tiler(project, out_dir, stw=mksize(args.stw), sth=mksize(args.sth), stp=stp, clip_width=args.clip_width, clip_height=args.clip_height, log_dir=log_dir) t.threads = args.threads t.verbose = args.verbose t.st_dir = args.st_dir t.force = args.force t.merge = args.merge t.out_extension = args.out_ext t.ignore_errors = args.ignore_errors t.ignore_crop = args.ignore_crop t.st_limit = float(args.st_limit) # TODO: make this more proper? if args.nona_args: t.nona_args = args.nona_args.replace('"', '').split(' ') if args.enblend_args: t.enblend_args = args.enblend_args.replace('"', '').split(' ') if args.super_t_xstep: t.super_t_xstep = args.super_t_xstep if args.super_t_ystep: t.super_t_ystep = args.super_t_ystep if args.clip_width: t.clip_width = args.clip_width if args.clip_height: t.clip_height = args.clip_height