simplify selection of samples and longitudes via call to subset