in_dir = select out_dir = binned base_name = bin_x4 n_bins = 4