"Colour mapping" - help needed to create RGB value

Andrew, have a look at this post. In the colourise function is some code you can adapt to generate a heat colour.