First cut at a science api for diffraction and fluorescence