posptprocessing for Q-criterion and HDF5 resampling