add half2quarter and basin inputs generate codes