def start(repo_dir, output_dir): mkdir_graceful( os.path.join(output_dir, 'raw') ) rig_record = sp.Popen(os.path.join(repo_dir, \ shared.bin_dir, \ bin_name) + \ " " + output_dir, shell=True) return rig_record
def rescale(raw_dir, output_dir, options="-t 3 -w 100 -p ", horizon_file=""): top_dir = os.path.dirname(raw_dir) shared.mkdir_graceful( output_dir ) rescaling_bin = os.path.join(shared.repo_dir, shared.bin_dir, rescaling_name) if horizon_file: options += " -i " + horizon_file cmd = rescaling_command.format(binary=rescaling_bin, input_dir=raw_dir, output_dir=output_dir, opts=options) print cmd os.system( cmd )
def rescale(raw_dir, output_dir, options="-t 3 -w 100 -p ", horizon_file=""): top_dir = os.path.dirname(raw_dir) shared.mkdir_graceful(output_dir) rescaling_bin = os.path.join(shared.repo_dir, shared.bin_dir, rescaling_name) if horizon_file: options += " -i " + horizon_file cmd = rescaling_command.format(binary=rescaling_bin, input_dir=raw_dir, output_dir=output_dir, opts=options) print cmd os.system(cmd)