Statistics for Detecting marine heatwaves with sub-optimal data