Altimeter from station pressure and height.

Gembuds . . . I've been looking, but have not had success in finding a single gddiag gfunc for converting station pressure and station height to altimeter setting (to match the ALTI reported via METAR reports). Does anyone know of such a thing - or would this need to be done the nested function way . . . which is really ugly.

Thanks in advance for any tips.

Stonie Cooper