extract info from bag. save to npz