This is 57th Street in 1902, painted by Robert Henri, whose Ashcan School work depicted a moody New York in all of its grit and glory.
Could the cross street with the elevated train be Sixth Avenue? It would have been close to the Art Students League, where Henri taught.