Code for NCRN water visualizer