Fixed but in calculating number of basis functions to keep in red noise
compression