BROOKLYN - A solar installation at the Brooklyn Navy Yard is helping New York City in its effort to go green.

The 3,152-panel rooftop solar installation on the rooftop of building 293 at the Brooklyn Navy Yard is part of the city’s goal to generate 100-megawatts of renewable energy on public buildings by 2025.

The panels, which have enough to power more than 80 homes, will be maintained by ConEdison Solutions.

The project was funded by incentives from the New York State Energy Research Development Authority.

The installation will generate 1.1-million kilowatt hours, which is equivalent to saving 76,000 gallons of gasoline a year.