generalized NCL routines that could be useful