Dear Hamid,
The lines like
excitation_spectrum.ham_map("res/0_Ham_", tmin,tmax,"_re" ,opt,scl1,"spectr1/ave_Ham_re.dat")
Will compute the trajectory-average over the vibronic Hamiltonian matrices (real part of those, that is the energies). The line
excitation_spectrum.ham_map("res/0_Ham_", tmin,tmax,"_im" ,opt,scl1,"spectr1/ave_Ham_im.dat")
will do the same for the imaginary parts, that is for the couplings.
opt = 1
selects an averaging of the absolute values of couplings |d_ij|.
Best,
Alexey