added option to have _peri_event remove chunks containing nan