Save powder diffraction intensity data to different output types

context manager!