working draft of interpolation code for QS data.