Code accompanying the paper published in Computers and Geosciences