make pre-proc only generate k_factor without resampling/interpolation. then this k_factor can be used by original scripts, and this leads to least changing of original scripts