DTEC(PHOT) copies the wavelength from BRAY
But LDTC doesn't copy wavelength if their ctype and the targets' type don't match
If you're trying to use ctype to get DTEC to ignore BRAY and only copy wavelength from photons, that's not possible. As for LDTC, check and see if LDTC's tmp2 is 4; LDCT doesn't copy wavelength if it's tmp2 is 4.