The man whose body was discovered on the roof of a California high school has been identified, but authorities are still trying to explain how he ended up there — and how long he may have gone unnoticed.

The Fresno County Coroner’s Office identified the dead man as 30-year-old Daniel Ramirez.

Ramirez was found shortly after 11 a.m. Friday on top of a structure outside the library at Fresno High School.

A school employee reportedly spotted the body and immediately alerted authorities, prompting police officers and emergency crews to race to the campus.

Responders used ladders to climb onto the roof, where they confirmed that a man was dead.

The discovery quickly sparked disturbing questions, especially after preliminary findings suggested Ramirez’s body may have been exposed on the rooftop for several days — or possibly even weeks — before anyone noticed it.

Investigators are now working to determine how Ramirez gained access to the roof and exactly how long he had been there.

Police initially approached the bizarre death as a possible crime scene. However, the Fresno County Sheriff’s Office later said there was no indication that Ramirez’s death involved suspicious circumstances.

That conclusion has only added to the mystery surrounding the case, as authorities have not publicly explained how Ramirez died or why he was on the school roof.

Anyone with information that could help investigators is being urged to contact the Fresno Police Department at 559-621-7000.