def db_temp_from_wb_rh(wet_bulb, rel_humid, b_press=<NUM_LIT>):
assert rel_humid == <NUM_LIT:0> or rel_humid == <NUM_LIT:100>, '<STR_LIT>''<STR_LIT>'<EOL>humidity_ratio = humid_ratio_from_db_rh(wet_bulb, rel_humid, b_press)<EOL>hr_saturation = humid_ratio_from_db_rh(wet_bulb, <NUM_LIT:100>, b_press)<EOL>db_temp = wet_bulb + (((hr_saturation - humidity_ratio) * <NUM_LIT>) / (<NUM_LIT>))<EOL>return db_temp, humidity_ratio<EOL>
Dry Bulb Temperature (C) and humidity_ratio at at wet_bulb (C),
    rel_humid (%) and Pressure b_press (Pa).

    Formula is only valid for rel_humid == 0 or rel_humid == 100.