add automated trimming of datasets to near transits