A San Diego man who pulled a gun in Mission Bay Park and was shot by police has been sentenced to 180 days in jail on terms of three years' probation.

Because Lance Marshall Tamyo was given credit for serving 132 days in jail, his projected release date is July 16, according to the sheriff’s department.

Tamyo, 47, had been free on $150,000 bond but was taken to jail June 22 after being sentenced by San Diego Superior Court Judge Timothy Walsh, who fined him $1,374.

The incident took place Aug. 6, 2014 at 11:10 a.m., when Tamyo called 911 from his cellphone in his car, saying he had a gun and wanted to commit “suicide by cop.” He eventually got out of his car and walked around a grassy area while holding a gun.

Tamyo allegedly pointed a gun at several officers and at an overhead police helicopter. He was shot about 12:15 p.m. near De Anza Cove. He dropped his gun, retrieved by an officer. He then was transported to Scripps La Jolla Hospital.

Tamyo pleaded guilty to exhibiting a firearm in the presence of a police officer. There was no preliminary hearing due to his guilty plea.

Walsh suspended a four-year prison term against Tamyo, which he could reimpose if Tamyo violates probation terms. Walsh ordered him to abstain from drinking or possessing alcohol, according to court records.

Walsh also ordered Tamyo to perform 200 hours of volunteer work at a nonprofit organization. He must show proof of that work in March of 2017. He was also ordered to pay $1,433 in probation supervision costs.