Heightmap specific measurements

Hi there

Thanks so much for this information.

I’m just wondering how the 512 enters the equation? Where does that value come from?

Cheers