Updated

A federal appeals court on Tuesday ordered the U.S. Navy to lessen the harm its high-power sonar does to whales and other marine life during exercises off the Southern California coast.

The 9th Circuit U.S. Court of Appeals sent the matter to a trial judge in Los Angeles to figure out exactly how to fix the problem it says is apparent with the sonar.

The three-judge panel said the sonar needs to be fixed before the Navy's next planned exercise in January.

The action was taken because the court said it's likely the Natural Resources Defense Council will win its lawsuit to force the Navy to lessen the harm.

• Click here to visit FOXNews.com's Natural Science Center.

The appeals court previously overturned a blanket ban on the naval exercises, ruling that prohibition was too broad.

The council's lawsuit alleges the Navy's sonar causes whales to beach themselves among other environmental harms.

In 2000, naval sonar contributed to 16 whales and two dolphins being beached in the Bahamas, according to a federal study.

"There are simple, proven ways to avoid this problem without compromising the Navy's readiness," said Joel Reynolds, senior attorney and director of the Marine Mammal Protection Project at the NRDC.

The Navy maintains it already minimizes risks to marine life. It has monitored the ocean off Southern California for the 40 years it has employed sonar without seeing any whale injuries, said spokesman Capt. Scott Gureck.

"These integrated sonar training exercises are absolutely vital for our strike groups to conduct before they deploy," Gureck said.

With more nations, including China, acquiring quiet, hard-to-detect submarines, the Navy says training sailors in the use of high intensity sonar is a priority.