Automated analysis for nitrate by hydrazine reduction