simplified ts creation by using nanmean directly
added check for valid range before reading whole array in _get_actual_value