If we express the energy of a photon in KeV and the wavelength in angstroms, then energy of a photon can be calculated from the relation