The influences of gas and electron temperatures on electron attachment in gas electrical discharges