def _dirint_bins(ktp, alt, w, dktp):
it = range(len(ktp))<EOL>ktp_bin = [-<NUM_LIT:1>] * len(ktp)<EOL>ktp_bin = [<NUM_LIT:0> if ktp[i] >= <NUM_LIT:0> and ktp[i] < <NUM_LIT> else ktp_bin[i] for i in it]<EOL>ktp_bin = [<NUM_LIT:1> if ktp[i] >= <NUM_LIT> and ktp[i] < <NUM_LIT> else ktp_bin[i] for i in it]<EOL>ktp_bin = [<NUM_LIT:2> if ktp[i] >= <NUM_LIT> and ktp[i] < <NUM_LIT> else ktp_bin[i] for i in it]<EOL>ktp_bin = [<NUM_LIT:3> if ktp[i] >= <NUM_LIT> and ktp[i] < <NUM_LIT> else ktp_bin[i] for i in it]<EOL>ktp_bin = [<NUM_LIT:4> if ktp[i] >= <NUM_LIT> and ktp[i] < <NUM_LIT> else ktp_bin[i] for i in it]<EOL>ktp_bin = [<NUM_LIT:5> if ktp[i] >= <NUM_LIT> and ktp[i] <= <NUM_LIT:1> else ktp_bin[i] for i in it]<EOL>alt_bin = [-<NUM_LIT:1>] * len(alt)<EOL>alt_bin = [<NUM_LIT:0> if alt[i] <= <NUM_LIT> and alt[i] > <NUM_LIT> else alt_bin[i] for i in it]<EOL>alt_bin = [<NUM_LIT:1> if alt[i] <= <NUM_LIT> and alt[i] > <NUM_LIT:50> else alt_bin[i] for i in it]<EOL>alt_bin = [<NUM_LIT:2> if alt[i] <= <NUM_LIT:50> and alt[i] > <NUM_LIT> else alt_bin[i] for i in it]<EOL>alt_bin = [<NUM_LIT:3> if alt[i] <= <NUM_LIT> and alt[i] > <NUM_LIT:20> else alt_bin[i] for i in it]<EOL>alt_bin = [<NUM_LIT:4> if alt[i] <= <NUM_LIT:20> and alt[i] > <NUM_LIT:10> else alt_bin[i] for i in it]<EOL>alt_bin = [<NUM_LIT:5> if alt[i] <= <NUM_LIT:10> else alt_bin[i] for i in it]<EOL>w_bin = [-<NUM_LIT:1>] * len(w)<EOL>w_bin = [<NUM_LIT:0> if w[i] >= <NUM_LIT:0> and w[i] < <NUM_LIT:1> else w_bin[i] for i in it]<EOL>w_bin = [<NUM_LIT:1> if w[i] >= <NUM_LIT:1> and w[i] < <NUM_LIT:2> else w_bin[i] for i in it]<EOL>w_bin = [<NUM_LIT:2> if w[i] >= <NUM_LIT:2> and w[i] < <NUM_LIT:3> else w_bin[i] for i in it]<EOL>w_bin = [<NUM_LIT:3> if w[i] >= <NUM_LIT:3> else w_bin[i] for i in it]<EOL>w_bin = [<NUM_LIT:4> if w[i] == -<NUM_LIT:1> else w_bin[i] for i in it]<EOL>dktp_bin = [-<NUM_LIT:1>] * len(dktp)<EOL>dktp_bin = [<NUM_LIT:0> if dktp[i] >= <NUM_LIT:0> and dktp[i] < <NUM_LIT> else dktp_bin[i] for i in it]<EOL>dktp_bin = [<NUM_LIT:1> if dktp[i] >= <NUM_LIT> and dktp[i] < <NUM_LIT> else dktp_bin[i] for i in it]<EOL>dktp_bin = [<NUM_LIT:2> if dktp[i] >= <NUM_LIT> and dktp[i] < <NUM_LIT> else dktp_bin[i] for i in it]<EOL>dktp_bin = [<NUM_LIT:3> if dktp[i] >= <NUM_LIT> and dktp[i] < <NUM_LIT> else dktp_bin[i] for i in it]<EOL>dktp_bin = [<NUM_LIT:4> if dktp[i] >= <NUM_LIT> and dktp[i] < <NUM_LIT> else dktp_bin[i] for i in it]<EOL>dktp_bin = [<NUM_LIT:5> if dktp[i] >= <NUM_LIT> and dktp[i] <= <NUM_LIT:1> else dktp_bin[i] for i in it]<EOL>dktp_bin = [<NUM_LIT:6> if dktp[i] == -<NUM_LIT:1> else dktp_bin[i] for i in it]<EOL>return ktp_bin, alt_bin, w_bin, dktp_bin<EOL>
Determine the bins for the DIRINT coefficients.

Args:
    ktp : Altitude-independent clearness index
    alt : Solar altitude angle
    w : precipitable water estimated from surface dew-point temperature
    dktp : stability index

Returns:
    tuple of ktp_bin, alt_bin, w_bin, dktp_bin