Follow CBSDFW.COM: Facebook | Twitter

HOUSTON (AP) — A federal judge has ordered a civil trial of the Texas prison system and its leadership in a civil rights lawsuit arising from the heat-related death of an inmate, saying state prison officials refused to provide air conditioning that could have also kept 21 other inmates alive.

READ MORE: Mesquite Police Identify Officer Killed In Shooting, Vigil To Be Held Sunday

Larry Gene McCollum, a 58-year-old Waco-area taxi driver, was among 22 inmates who have died front the heat in Texas prisons since 1998, including 10 during a 2011 heat wave alone, U.S. District Judge Keith Ellison of Houston wrote.

McCollum was serving a one-year sentence in the Hutchins State Jail near Dallas for writing a bad check when he died of a heat stroke on July 22, 2011, just seven days after he arrived at the jail.

In an 83-page opinion filed Tuesday, Ellison, who visited state prisons during the peak of the summer heat, wrote that prison logs showed that the day before McCollum’s death, the outside air temperature was above 90 degrees for at least nine hours and above 100 degrees for at least six hours, peaking at 107 degrees and staying at 106 degrees at 6:30 p.m., when the last recording of the day was taken. Humidity never fell below 40 percent that day.

Although the log represents that the heat index at 3:30 p.m. was 116 degrees, a chart provided by the University of Texas Medical Branch at Galveston and used by the Texas Department of Criminal Justice computes the heat index was about 150 degrees.

The jail utilizes air handlers for ventilation, which circulate outside air through the facility without changing its temperature, Ellison wrote.

“Larry McCollum’s tragic death was not simply bad luck, but an entirely preventable consequence of inadequate policies. These policies contributed to the deaths of 11 men before McCollum and 10 men after him,” Ellison wrote.

READ MORE: No. 3 Cincinnati Claims AAC Crown, Possible Playoff Spot

The TDCJ will appeal the ruling to the 5th U.S. Circuit Court of Appeal, said spokesman Jason Clark.

“The safety, security, health and overall well-being of offenders is of paramount importance to the TDCJ,” Clark wrote in a statement.

The attorney for McCollum’s family, Jeff Edwards of Austin, said he and his clients are gratified that the facts will finally be heard by a jury and receive a full hearing. Of the 109 prisons in the Texas system, 30 are fully air-conditioned.

State law required all county jails to be air conditioned. Many inmates have trouble acclimating themselves to a prison in the middle of summer where air-conditioning is unavailable, Edwards said.

“All this is going to say is ‘Let’s look at the facts.’ We believe they will speak for themselves” when presented to a jury, he said.

The ruling was sealed Friday and unsealed Tuesday.

MORE NEWS: Pelicans Take Revenge On Mavs And Win 107-91 After Blowout Loss, Luka Out With Ankle Problems

(© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)