Put dimension and data validity checks into functions and collated them into one src file.
Put dimension and data validity checks into functions and collated them into one src file.

percival-detector/cppprocessing,percival-detector/cppprocessing