Thank you SkyeFire for your immediate Response ,
You have understood my proboem exactly. I shall try the code you have sent me after getting the exact deviations. Nevertheless, what I eventually want to implement is based on the volumetric cmpensation that could interpolate the correction as you have mentioned. Could you please Elaborate a technique for doing so.