dim_filter function

Make a dimension filter object