A multiscale approach to water quality variables in a river ecosystem