develop refined interpolation kappa steps written in srep_toolbox.rb