There are 3 sets of IDL procedures, one for each method and each has two variants a) to process GHCN V3C and b) to process Hadcrut4.5 using Crutem4 station files, both using Hadsst3 Ocean temperature data. You can download each one as follows
It should not be too difficult to adapt them to other programming languages.