code to viz terrain data