Applicability of canonical correlation in hydrology