Useful functions for (batch) file conversion and data resampling