A court ordered SoCal Gas Company to provide temporary housing for thousands of Porter Ranch, Los Angeles, residents made sick from fumes from a massive gas leak. An infrared camera captured the size of the gas plume that's been leaking for two months.

The court order issued on Wednesday will come as a relief to more than 2,500 families in Porter Ranch, a northwest San Fernando Valley community, who have been waiting to be relocated by SoCal Gas since the leak began spewing methane into their homes and schools on October 23.

As of Tuesday, the company had paid for temporary housing for more than 2,000 other households, according to the Los Angeles Times. There are 30,000 residents who live in Porter Ranch, an upscale bedroom community of gated developments where the average 4,000-square-foot home is sold for $1 million.

At entrance of #PorterRanch@socalgas gas facility, protesting against massive methane leak pic.twitter.com/DlKNefvzVI — Bill Kilby (@billkilby_) December 12, 2015

Judge Emilie Elias directed the gas company to relocate the remaining residents within 24 to 72 hours. The court order follows a restraining order sought by the Los Angeles city attorney that would have required the company to relocate residents within 48 hours of their request, and called for a “special master” to oversee the moves.

The gas company is having increasing difficulty finding alternative housing nearby, because most of the available hotel, motel rooms and rental homes have already been snapped up by relocated Porter Ranch families.

The shortage is also sending home rental prices as high as $8,500 a month as landlords, who prefer leases of a year or longer, seek compensation for renting properties for much shorter terms than the three to four months SoCalGas said it needs to cap the damaged well.

New aerial footage of the leak was also released on Wednesday by the Environmental Defense Fund, which captured the intensity of the leak by infrared camera. The video footage shows a steady, thick plume pouring into the air over a densely packed residential area. It is hard to judge the width of the plume from the video, but EDF said it is pumping out 62 million cubic feet of methane into the atmosphere each day. Methane packs 80 times the 20-year warming power of carbon dioxide.

“What you can’t see is easy to ignore. That’s why communities that suffer from pollution from oil and gas development are often dismissed by industry and regulators,” said Earthworks spokesman Alan Septoff in a statement. “Making invisible pollution visible shows the world what people in Porter Ranch have been living with every day for months.”

Trouble began at SoCal gas’ Aliso Canyon, a gas storage field, on October 23, when gas company employees noticed a leak out of the ground near a well called SS-25. Efforts to fix the leak were unsuccessful as gas billowed downhill into Porter Ranch, and customers a mile away began to complain about the smell.

Porter Ranch Methane Leak Doesn’t Bode Well for Climate - LA Progressive https://t.co/LeWZlMKvwhpic.twitter.com/EZKMcmcWkS — Liberalism (@liberalismRR) December 22, 2015

Since then, thousands of complaints of headaches, nausea and nosebleeds have been made to the South Coast Air Quality Management District.

LA Weekly reported that the well was drilled in 1953 and was designed with a sub-surface safety valve 8,451 feet underground. That valve broke and was removed in 1979, but was never replaced. The company says it will take until March for them to drill a relief well to resolve the problem and cap the current well.

“I hate seeing SoCalGas’ pollution billowing over my home and community. Knowing this gas leak has been polluting us since October and won’t stop until March, if then, makes it clear there’s only one way to keep us healthy and safe now and in the future,” said Matt Pakucko, president of Save Porter Ranch in a statement. “[California] Governor [Jerry] Brown needs to shut down the Aliso Canyon facility.”

The Los Angeles Times reported earlier this month that the LA city attorney sued SoCalGas, alleging that the utility failed to prevent the leak and then exacerbated “the effects of that failure by allowing the acute odor and health problems faced by the community to persist for more than one month, to say nothing about the indefinite time it will persist into the future,” according to court papers.

Methane leaks cancel climate benefits of natural gas use, cost taxpayers millions – report http://t.co/WWYNxJDEMFpic.twitter.com/Ab4ezx3GUs — RT America (@RT_America) June 30, 2015

Gas officials could be deposed in that case as soon as January 7, according to the city attorney. The city wants to determine the cause of the leak, the amount of gas released, and the effectiveness of the air infiltration systems being provided by the company, the newspaper reported.

“Events of this size are rare, but major leakage across the oil and gas supply chain is not. There are plenty of mini-Aliso Canyons that add up to a big climate problem – not just in California, but across the country,” said Tim O’Connor, director of Environmental Defense Fund’s California Oil & Gas Program in a statement. “Regardless of what the future holds for the Aliso Canyon storage field, this is one reason why strong rules are needed to require that oil and gas companies closely monitor for and manage methane leaks.”