add function to output hydro information into text format