Extract function

Extract or replace parts of a hyper2 object