Save powder diffraction intensity data to different output types

Put enums in type (see comment on ext)