mattigan-resample.php