Capt. Gregory McWherter was removed from his post as executive officer of Naval Base Coronado because of alleged misconduct while he was commanding officer of the Blue Angels precision flying team.

McWherter is accused of allowing and in some cases encouraging "lewd speech, inappropriate comments, and sexually explicit humor" in the workplace, according to a Navy statement released Thursday.

While McWherter was commanding officer of the precision flying team sometimes called the "Blues," officials claim "pornographic images were displayed in the workplace and shared in electronic communications" according to the statement.

The allegations refer specifically to the period when McWherter served as Blue Angels commanding officer, from November 2008 to November 2010 and again from May 2011 to November 2012.

The probe, led by an admiral who the Navy declined to identify, began in March and results from a complaint filed by one person, officials said Friday.

McWherter has been temporarily reassigned to Naval Air Forces in San Diego

An after-hours call from the Associated Press to the media office to leave a message seeking comment from McWherter was not immediately returned.

"All Navy leaders, whether assigned to a highly visible unit like the `Blues,' or to our installations, squadrons, ships and submarines, are held to the highest standards," Vice Admiral David Buss, commander of the Naval Air Forces, said in the statement.

"The Navy expects everyone, from those officers in command positions to sailors on the waterfront, to provide principled and highly ethical leadership, stressing discipline, accountability, and the importance of treating shipmates with dignity and respect."