dextract function

Extract a subset of data from a trackdata object