Extract with copy

For @tcolar to check to see if this works ok.

See also the branch extract_with_copy in pickett_samples.

This version is known to not handle the timestamps correctly.