The function getkcorr.pro is a hacked version of Don Groom's IDL function makeleib.pro It has been modified not to write the data into a file but just to hand back the K corrections as result.