get_ref function

Extract the reference component from an mrs_data object.