Updated (emission) scripts from Gilles

History arrays fixed with respect to the division into sectors (iph, ith).