Design of the first undulator beamline for the Siam Photon Laboratory