rework of resample
a rework of resample is needed, because this alters the data (index) and also sets flags, which we will not support anymore. , because some parameter may make no sense, at least the docstring needs update..
max_invalid_total_f
and max_invalid_consec_f
and flag_agg_func
need some rethinking